on windows 7, vpn'ing to work, how to force all traffic to use VPN?

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.

Method 1

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.

Method 2

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
route add mask

Replacing with the gateway IP for the VPN. Just keep in mind that (obviously) your work can see all your traffic if you do that.

Method 3

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.

Method 4

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 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply