Split Tunneling in OpenVPN Client on Windows
The official OpenVPN client for Windows offers per-IP split tunneling. Some proprietary clients also offer per-app split tunneling.
To look up IP addresses, open a Windows terminal (Command Prompt or Windows PowerShell) and issue the command:
1 | nslookup whatismyipaddress.com |
Sample response:
1 | Non-authoritative answer: |
To send only two IP addresses through the VPN tunnel:
- Disconnect the client from the server
- Edit the client configuration file
- Add these lines at the end before reconnecting
1 | route 104.16.154.36 255.255.255.255 vpn_gateway |
To send everything except two IP addresses through the VPN tunnel:
1 | route 104.16.154.36 255.255.255.255 net_gateway |