Solution to VPN connection failure to access internal network
Summary:One common issue when connecting to a VPN on a company's network is that the VPN connection is global and can change the local IP address, resulti…
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
One common issue when connecting to a VPN on a company's network is that the VPN connection is global and can change the local IP address, resulting in inability to access the company's internal network. It's not difficult to solve this problem. By modifying the routing table, we can redirect access to the internal network through the local gateway. Here are the operation methods, taking the Windows system as an example.
Open the notepad program and save the following content as a bypass. bat file. Modify the code appropriately by changing 192.168.1.0 to your own gateway. Note that the last one must be 0. For example, if your gateway is 192.168.1.1, write 192.168.1.0 (gateway information can be seen in the network connection status or queried using the ipconfig command in cmd).
@echo off
for /F "tokens=3" %%* in ('route print ^| findstr "\<0.0.0.0\>"') do set "gw=%%*"
ipconfig /flushdns
route add 192.168.1.0 mask 255.255.255.0 %gw% metric 25
Run this batch file to set up the routing table before connecting to the VPN. If you need to delete the routing table modification, save the following content as a relocation.bat file and run it (change the gateway IP you previously set below).
@echo off
route delete 192.168.1.0
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

