Search the Community
Showing results for tags 'openvpn lan wan'.
Found 1 result
-
I have an Ubuntu Virtual Machine running inside my lan where I have configured openvpn to start with the machine and connect automatically. Everything works as expected. I also host various other services on this machine that should be available through the LAN. In this case I'm hosting an nginx server on port 443 for an ssl website on the same machine where the openvpn client is connected. The nginx service on port 443 is perfectly reachable from inside the lan (192.168.1.x) while openvpn on the same machine is also connected and I have various other services doing their thing through the VPN. When I want to expose this nginx instance to the outside world through my home ip (NOT VPN) I simply add a port forward on my router for port 443 to the virtual machine. The problem is as follows: If openvpn is connected on the VM: the nginx service is reachable from inside the LAN. Not reachable from WAN (port forwarded to machine) If openvpn is disconnected (sudo killall openvpn): the nginx service is reachable from LAN and WAN Tests are done through yougetsignal.com port checker. It seems that as soon as openvpn is connected that the machine that is connected does not accept connections from outside (using the port forward on the router) but keeps accepting connections from the LAN normally! iptables -L on the connected machine shows empty chains with ACCEPT policies on all. I hope someone can help me with this.