I have tried to setup a small openvpn network but I ran into one big problem. I have a server and a machine at home. So I created a openvpn server on my machine and a configured the client on the other machine.
Ping and anything else work fine. But now I am trying to setup an openvpn client on the server which connects to itself. The server uses tun0 and the client tun1. If I check ifconfig, anything is setup correctly and the server interface has the ip 10.0.0.1 and the client on the server 10.0.0.10.
My other machine (10.0.0.13) can only ping the service instance and not the client instance on the server.
Why I want this: This network should contain 10-15 machines which use vpn for different services. When I move the vpn server, I have to change the ips on every machine because 10.0.0.1 is only for servers.
Question 1:
May I able to give the server instance an additional ip, so I have not to run a seperate client? (Server has 10.0.0.1 and 10.0.0.10 as ip)?
Question 2: May I use DNS for this? So I only use hostnames which are looked up. Then the ip can change. How can I do this
Thank you!