How to troubleshoot the issue of Microsoft's built-in VPN function
Summary:Many companies have set up their own VPN networks to provide access for mobile office users within the company. However, in most cases, many users fin…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
Many companies have set up their own VPN networks to provide access for mobile office users within the company. However, in most cases, many users find that as long as they connect to VPN, normal network browsing, QQ and other communication to access the Internet are disconnected, and local area network access (cross network segment) is also not possible.
For a long time, I thought this malfunction was a common problem with VPN networks and could not be resolved. Once a friend from another province came to our company for business. Their company used Tianrongxin's VPN software, and it was found that his access to other network segments was also normal after connecting.
I was puzzled, so I carefully studied and finally discovered the difference when displaying the routing table (type "route print" in the command prompt window, and the routing table connected to the VPN is shown in the figure).
After connecting to a typical VPN, the system will automatically load an "8 zeros" routing entry, directing the default gateway to the gateway of the VPN network with a metric of 1. Destination network: 0.0.0.0, mask: 0.0.0.0. Represents all network addresses, which means that all destination networks that are not specified in specific routing entries and are not within the same network segment must be forwarded to the designated default gateway, and then forwarded by the gateway.
And Metric is the metric value of routing entries, which is inversely proportional to priority. It can be seen that all non local network access is forwarded to the VPN gateway instead of the original local gateway. The metric of the default route with 8 zeros has been changed to 2. In the case where the destination address is the same in the routing entry, the smaller the metric value, the higher the corresponding priority. In this case, only the previous route with a metric of 1 is valid, while the local gateway is invalid. This naturally makes it difficult to access the Internet.
In the figure, it can be seen that the first route with Gateway 172.16.1.1 is the default route of the local network, and Metric has been changed to 2. And adding a second default route with 8 zeros is the VPN connection route, with a Metric value of 1. At this point, we only need to modify the second route so that only packets destined for the 192.168.0.0/24 network segment are sent to the VPN gateway, while other accesses still go through the local gateway.
So we need to delete the second route first. The command is: route delete 0.0.0.0 mask 0.0.0.0 192.168.0.3; Then add a new route entry with the command: route add 192.168.1.0 mask 255.255.255.0 192.168.0.3. In this way, the original local default route will be reactivated, and the fault will be resolved.
Note: The route command is used to manage the system routing table. A routing entry typically consists of "Destination", "Netmask", and "Gateway". The command to display the routing table is route print; Adding a static route command is route add destination mask gateway. In addition, if the - p parameter is not added, the newly created route will not be saved and will disappear after restarting. The command to delete a route entry is' route add destination mask gateway '; The command to change a route is' route change destination mask gateway '.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

