Using Anonymous VPN’s provide excellent privacy on the web, however this can all be in jeopardy when you step away from your computer. To prevent accidental IP address leaks, TorGuard suggests using a quick kill switch script that automatically disconnects any application of choice in the event of a VPN disconnect. To setup the VPN kill switch in Windows just follow the simple steps below:
This tutorial will show how to setup a VPN “Kill switch” that terminates a specified application upon VPN disconnect. This process is automatic and can prevent accidental IP leaks when you are away from the computer.
1.) First, download our KillSwitch script here.
By default, the script will terminate “notepad.exe”, however this can be changed to any applications like firefox.exe or utorrent.exe.
To select which app you wish to close, open Killswitch.bat with a text editor like NotePad. Replace “notepad.exe” with the desired application you wish to terminate on disconnect. Select Save.
2.) In the TorGuard Pro VPN software (Viscosity) click the VPN server you wish to setup this Killswitch rule on.
Click the settings button and select Duplicate Connection.
3.) On the new duplicate connection right click and select Edit.
4.) Rename the connection by adding KILLSWITCH to identify it in your server line-up. This will also prevent it from being overwritten by new server updates.
5.) Click the Advanced tab. Under Disconnect Script, click the select button and locate the killswitch.bat file from step 1.
That is it! You have now setup this VPN connection to auto terminate any application of choice whenever that VPN connection disconnects.