WhiteTiger wroteHello all,
I followed this tutorial to setup my own VPN so I can access my computer files and route my internet traffic through my computer when I'm in public using my hpone/laptop.
https://community.openvpn.net/openvpn/wiki/Easy_Windows_Guide. I followed the tutorial to a T and I have completed everything to server and client and established a connection from both a windows 10 PC and an android phone to my windows 10 server. However my public IP was still the same as without a VPN connection and no internet traffic was routed through the VPN, nor could I access any files on the LAN which is extremely perplexing for me. My config, client and server files are all identical to the tutorial i linked to, I'm wondering if anyone could help identify why my VPN is connecting but not hving any traffic routed through it. Thanks in advance to everyone commenting, any help will be appreciated 😃
If your client is on the Internet its public IP will not change. Ideally, for the highest level of protection, you would have some sort of firewall configured on your system.
In order to route traffic over the VPN you need to establish some sort of a default route. This can be done from your server config file (simplest) or by setting up a client-config-dir (ccd) with individual configs for each user. I would probably start with just an entry in your config file which looks like this:
push "redirect-gateway def1"
While not as good as a firewall, setting the default route in this manner makes it difficult for remote Internet sites not on the same subnet as your own machine, to connect. Having some sort of firewall on your system (or a seperate firewall) is still the best idea.
Nataraj