Skip to content

garbb/kill.vpn.default.route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I have a VPN client that by default tunnels all traffic through it by creating a default route with a metric of 1 in the TCP routing table. I wanted to have split tunneling instead where only traffic to VPN addresses goes through the VPN adapter and all other traffic goes through the normal default route to the regular internet.

This program will monitor the windows TCP routing table. When it detects a change, it will look for a default route pointing to the adapter that you specifiy in the config.ini file next to VPNDesc= (you can find the name in device manager under network adapters). If it finds one, it will delete this default route and create routes for the destinations and masks that you specify in the config.ini file after dest1/mask1, dest2/mask2, etc... (you can add up to 100). When the program is closed it will delete the routes that it added and restore the default route that it deleted originally.

If you make changes to the config.ini file, you must restart the program in order for them to be applied.

This program must be run as administrator.

This was compiled using Dev-C++ 5.11 and TDM-GCC 4.9.2.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages