Custom website diversion method for Mac VPN, also supports Ubuntu
Summary:Previously, we introduced a Mac VPN intelligent diversion method that can effectively solve the problem of slow access to domestic websites on VPN con…
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
Previously, we introduced a Mac VPN intelligent diversion method that can effectively solve the problem of slow access to domestic websites on VPN connections. Today, we will add a more customized gameplay where specific websites can be designated to use VPN, while other websites default to using the local network. The principle is also implemented by modifying the routing table, and the specific method is as follows.
1. Firstly, download the automatic VPN diversion script, open and modify it using a text editor, and add the website domain name that needs to use VPN. Google and Facebook are added inside, just modify according to this format.
2. Set up a PPTP or L2TP VPN connection, and be careful not to select the "Send all communication through VPN connection" option after setting it up.
3. Enter sudo./autovpnconf to run the pre-set diversion script, but note that it needs to be run every time you connect to the VPN.
If your system is Ubuntu, the operation method is the same. However, since Ubuntu uses VPN gateway by default when connecting to VPN, it needs to be set to local gateway. The command is as follows:
sudo route del default
sudo route add default gw xxx.xxx.xxx.xxx dev eth0
Xxx.xxx.xxx.xxx is the local gateway IP address
Eth0 is the name of the wired network card device, and if using wireless, it is wlan0
If it is a Windows system, you can refer to the similar method tutorial we introduced before.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

