entire day I’m attempting to make all site visitors redirection by means of VPN work, however unfortunelly it nonetheless would not work perfecly.
- VPN server operating on my router (OpenVPN), it has public IP (“myPubIP”)
# Server Mode server 192.168.10.0 255.255.255.0 duplicate-cn push "route 192.168.1.0 255.255.255.Zero vpn_gateway 500" push "redirect-gateway def1" push "dhcp-option DNS 192.168.1.1"
- internet server is behind router, ports 80, 443 is redirected from “myPubIP” to native adress of internet server
- OpenVPN variations: laptop computer (2.4.2), cell (3.1.1)
If I take advantage of cell phone to entry my internet server by way of cell knowledge by means of VPN every thing works high-quality. Hint route reveals direct entry from “myPubIP” (1st hop). Once I attempt it on laptop computer (Home windows 10) that’s linked by way of wi-fi adapter (linked to hotspoted community of cell – simply web connection) by means of OpenVPN redirecting works for all widespread domains high-quality (first hop on tracert is 192.168.10.1 – VPN gateway). But when I attempt tracert my webserver by “myPubIP”, site visitors goes by means of the web, not VPN.
I attempted add static routes to routing desk, it would not assist. Once I join VPN it creates energetic path to “myPubIP” by means of cell hotspot gateway. My purpose is to entry my weberver solely by means of VPN tunnel by way of “myPubIP”.