Network Access Type
Hi all, I recently setup and started using a VPN for some work I am doing. After some headaches, I got that working finally, but I have another problem. I connect to my VPN over my internet connection, NOT dial-up. In the Network and Sharing Center, I have my Wireless connection with an Access Type of Internet, and my VPN also has a type of Internet. The problem is, while using the VPN, some of my internet requests seem to be going through my VPN instead of directly through my wireless. These requests do work, but they are much slower. Is there any way to convince/force Windows 7 to see my VPN connection as an Intranet or Local connection only?
February 8th, 2011 12:14am

You may want to try disabing use default gateway on remote network. This search result may help. routing issues on vpn Resolution: When establishing VPN to the office A, the routing table changes. To fix this issue, disable the "Use default gateway on remote network"" on the ... www.chicagotech.net/routingissuesonvpn.htm Please post back with the result. Bob Lin, MS-MVP Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net How to Setup Windows, Network, VPN & Remote Access on http://www.howtonetworking.com
Free Windows Admin Tool Kit Click here and download it now
February 8th, 2011 9:34am

I have exactly the same setup. You need to do as chicagotech suggests and disable the "Use default gateway on remote network" option. It is in the properties of your VPN connection -> Networking -> Internet Protocol Version 4 (TCP/IPv4) -> Properties -> Advanced -> IP Settings. If your work network contains more than one subnet (or the VPN server is on it's own subnet) you will need to establish routes to those networks with "route add ..." I have created a script to do this. It uses cygwin, though - if anyone that is familiar with powershell cares to improve on this, please do so and post it for us, or if someone cares to let us all know how to enable a routing protocol (RIP/BGP/etc...) on the VPN connection, it would also be appreciated! #!/bin/bash -x # Figure out which ip address is the VPN connection. Ignores 192.168.*.* and 10.*.*.*, which can possibly be your home network, and the loopback interface 127.0.0.1 vpn=`route print | awk "/[ ]+[1-2]?[0-9]?[0-9]\.[1-2]?[0-9]?[0-9]\.[1-2]?[0-9]?[0-9]/ {print \\$4}" | grep -v "192\.168\." | grep -v "10\." | grep -v "127\.0\.0\.1" | grep "^[0-9]" | sort -u` # Replace the below route adds with your work subnets (make sure that the mask matches the subnet specification - the below are fake) if test ! -z "$vpn" ; then route -4 add 1.2.0.0 MASK 255.255.0.0 $vpn METRIC 128; route -4 add 3.4.0.0 MASK 255.255.0.0 $vpn METRIC 128; fi Dan
February 8th, 2011 10:30pm

I have exactly the same setup. You need to do as chicagotech suggests and disable the "Use default gateway on remote network" option. It is in the properties of your VPN connection -> Networking -> Internet Protocol Version 4 (TCP/IPv4) -> Properties -> Advanced -> IP Settings. If your work network contains more than one subnet (or the VPN server is on it's own subnet) you will need to establish routes to those networks with "route add ..." I have created a script to do this. It uses cygwin, though - if anyone that is familiar with powershell cares to improve on this, please do so and post it for us, or if someone cares to let us all know how to enable a routing protocol (RIP/BGP/etc...) on the VPN connection, it would also be appreciated! #!/bin/bash -x # Figure out which ip address is the VPN connection. Ignores 192.168.*.* and 10.*.*.*, which can possibly be your home network, and the loopback interface 127.0.0.1 vpn=`route print | awk "/[ ]+[1-2]?[0-9]?[0-9]\.[1-2]?[0-9]?[0-9]\.[1-2]?[0-9]?[0-9]/ {print \\$4}" | grep -v "192\.168\." | grep -v "10\." | grep -v "127\.0\.0\.1" | grep "^[0-9]" | sort -u` # Replace the below route adds with your work subnets (make sure that the mask matches the subnet specification - the below are fake) if test ! -z "$vpn" ; then route -4 add 1.2.0.0 MASK 255.255.0.0 $vpn METRIC 128; route -4 add 3.4.0.0 MASK 255.255.0.0 $vpn METRIC 128; fi Dan
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2011 6:21am

Finally got this working. I unchecked the "Use default gateway on remote network", added an entry to my host file (because i connect to ssh by a hostname), and added a route for that resource, forcing it to use the proper interface. The only problem is that i have to re-add the route each time :( Oh well... guess i'll write a batch file to do that for me. Thanks guys :)
February 9th, 2011 12:49pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics