How can I make the Windows VPN route selective traffic (by destination network)?
Problem
I want to use a Windows VPN but only for a particular network, so that it doesn't take over my entire network connection. e.g., Instead of the VPN becoming the default route, make it only the route for 192.168.123.0/24 (I can see that there is a solution for this for Ubuntu in this question, but sometimes I have to do this on Windows too) Can this be automated so that whenever I connect to the VPN it does this?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How can I make the Windows VPN route selective traffic (by destination network)?
You can turn off taking over your entire connection by going to the properties of the VPN, tab, properties, , untick . This may or may not leave a route to depending on the VPN server's setup. If it doesn't, you'll have to manually add the route each time, although you could put it in a batch file. In order to manually add the route, run (as administrator): This example will make a persistent (it's not necessary to run the command after a reboot) route to the IP through the VPN gateway . More a…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix