You are here:Home > Best VPN > After connecting to the company VPN, I cannot access the external network

After connecting to the company VPN, I cannot access the external network

Summary:Many companies have set up their own internal VPN networks to provide access for mobile office users within the company. But in most cases, many users…
horizonVPN Official website sandVPN Official website VPNhood Official website hailianVPN Official website
GoduckVPN Official website Fast Wind VPN Official website Fast Orange VPN Official website(Recommend) NetShekanVPN Official website

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 internal VPN networks to provide access for mobile office users within the company. But in most cases, many users find that as long as they connect to the company VPN, normal network browsing, QQ and other communication to access the Internet are cut off, and local area network access (cross network segment) is also not possible.

Da Bu always thought that this malfunction was a common problem caused by VPN network and could not be solved. But on an occasional occasion, Da Bu discovered that after a friend connected to their company's VPN, access to other network segments was also normal.

Da Bu was puzzled, so he 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 picture).

After connecting to a typical VPN, the system will automatically load an "8 zeros" routing entry, pointing the default gateway to the gateway of the VPN network with a Metric of 1. That is, the destination network is 0.0.0.0, and the mask is 0.0.0.0. represents all network addresses, which means that all destination networks that are not specified in the specific routing entry and are not within the same network segment must be forwarded to the specified default gateway, and then the gateway will select the route for forwarding.

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 in the routing entry is the same, 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, which 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. This will reactivate the original local default route and resolve the issue.

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
Share with Friends: