I have been meaning to work on this, but I do not have the time right now. I am going to post the source for killswitch-core which is a better version of this program written in .NET Core
Download The Precompiled binary here
VPN Kill switch which used a listener to detect disconnections
See the change log for changes and road map.
- download the source and compile, or go to releases and download the precompiled binary
- turn on your vpn
- run KillSwitch
- select the interface that your vpn runs on
- if you are disconnected from the vpn
- close all programs that could expose your (once you turn your internet traffic back on)
- close KillSwitch
- restart KillSwitch, and close it after you see that your internet has been enabled.
- connect to your vpn again and run the program
Once your vpn is connect, and you have selected the proper interface, KillSwitch will begin listening for a change of connection on that interface, and once it does, it will quickly check if your vpn is down, and if it is, KillSwitch will use ipconfig to disable outgoing traffic to stop yourself from leaking your IP.
This is for the people who use a VPN that does not come with a premade kill switch.
If you wanna help or wanna know what is going to be added in the coming releases, here is a list of things that need to be done.
- create linux version
- There is a bug with re-enabling the interface (quick fix by reoping and closing the program)
- Give the option to close all programs with internet traffic besides the vpn
- Auto detect interface
- use multithreading