All we need is an easy explanation of the problem, so here it is.
right now when I connect to my VPN, my internet is served from my home router, but any requests for xxx.xxx.xxx.xxx i.e. my works ip range are served via the vpn connection I believe.
How can I force all traffic to the vpn?
How to solve :
I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.
On Windows XP (not what you’re asking, but no 7 here), there’s an option “Use default gateway on remote network” (see the settings of your VPN network, tab “Networking”, “Internet Protocol (TCP/IP)”, “Properties” again, and finally “Advanced”).
Enabling that (which is the default) will make all traffic go through the VPN.
Each time you connect you’d need to change your default route to the route to the VPN. You’d use the
route command to do this:
route delete 0.0.0.0 route add 0.0.0.0 mask 0.0.0.0 18.104.22.168
22.214.171.124 with the gateway IP for the VPN. Just keep in mind that (obviously) your work can see all your traffic if you do that.
That’s not how VPNs work. Once you connect to the VPN, all Internet traffic goes through the VPN. The only exception is local traffic like 10.x.x.x.
It sounds like you are seeing symptoms that make you suspect otherwise. Perhaps someone can help you more if you explain those symptoms.
The purpose of a VPN is so that you are on a remote network securely from a remote location. What type of VPN are you using? (IPSec, L2TP, SSLVPN, etc.)
Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂