What is the easiest way to ensure all traffic goes through the VPN in Windows 10? Are there any built in ways? I'm basically looking for an internet kill switch in the case the VPN fails.
I read that sometimes the OS gets confused and for some random reason just doesn't use the VPN when sending traffic, is this actually a valid concern?
Best Answer
Note:
Be sure you have only one network adapter enabled, example: if you are using ethernet, be sure wireless is disabled. If using wireless be sure no ethernet cable is connected, or disable the adapter in networking and sharing center > change adapter settings.
Open command prompt and do a command:
note the Interface ip address on the 0.0.0.0 line in the "Active Routes" section , lets just say it is 192.168.0.1
Connect to your VPN
Do another
netstat /r
Note you will see a new ip route for the vpn (second 0.0.0.0. line), note that Interface new route ip
Now kill the original non vpn route with this command
then do another
netstat /r
you will only see your vpn route now, and if your VPN line drops, you lose that route, so there are no more 0.0.0.0 routes and your external connection will be immediately cut off. If you want to access the internet you'll need to add the original route back with this command:
The "IF 8" means "interface 8". The number 8 may be different on your computer, look at the output of netstat -r to get the correct number of your interface in the Interface List
All that being said I would disable ipv6, I have done this with no issues after doing so.
disable ipv6 command:
Enable ipv6 command: