Stop VPN being used on internet traffic on Win 7 [duplicate]
Possible Duplicate:
How can I make the Windows VPN route selective traffic (by destination network)?
How To Use Local Internet Connection To Access Internet While Still Connected with VPN
I am using the built in Windows 7 VPN to connect to my work network however when I browse the internet its going through the VPN. How do I stop this?
Solution 1:
- Open Network Connections
- Select VPN connection
- Properties
- TCP/IP - properties
- Advanced
- On General tab uncheck "Use default gateway..."
- OK-OK-OK
Solution 2:
You need to remove the default gateway that's being set by your VPN (you might have to ask your work's IT support guy, as it might be a setting that's pushed out from the VPN server). A temporary fix can be obtained as follows:
- Start a command prompt as administrator.
-
Check your current gateways with
route print
(There will be a lot more, but this is the part you're looking for):IPv4 Route Table =========================================================================== Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 XX.YY.48.1 XX.YY.50.199 20 0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.107 4000 10.254.254.252 255.255.255.252 On-link 10.254.254.253 286
(Your Metrics might be different, and your IPs will likely be different, but you can see I have two default gateways here (the
0.0.0.0
entries) One of them will correspond to your internet, and one will correspond to your VPN.) - Delete the appropriate gateway with
route delete 0.0.0.0 <gateway>
. In this example, to delete the192.168.0.1
gateway, we'd useroute delete 192.168.0.1
Don't worry too much about making a mistake here; the routing table is regenerated every time you reboot the machine, or connect/disconnect from a network. If you get the wrong gateway and take down all of your internet, just reboot and reconnect.
This is only a temporary fix. Ideally, you'd contact your tech support at your work and ask him how to make the VPN stop pushing a default gateway. Another alternative is to adjust the metric of the VPN gateway, so that the system prefers the non-VPN connection (as you can see in the example, while I have two gateways, one is set with a really high metric (think "cost") to use it, and so the system only uses it if it has no other choice).