How to setup Kill Switch/Reconnect on OpenVPN (Windows)

  1. Home
  2. VPN
  3. Windows
  4. How to setup Kill Switch/Reconnect on OpenVPN (Windows)

1- Right click on the network icon > Open Network and Internet Settings

2- Click on Change connection properties > Private

3. Open up Advanced Firewall settings.  You can search for this in the start menu
4. Backup your current firewall settings.  Click on Action > Export Policies.  Pick a location and save the file
5. Action > Restore Default Policy > Yes

6. Click on Windows Defender/Firewall Properties

7. Under Domain Profile, set Inbound and Outbound to Block (like below)

8. Click on the Private tab, and set Inbound and Outbound to Block (like below)

9. Click on Outbound rules > New Rule > Program > Next

10. Click on browse then browse over to the following path C:\Program Files\OpenVPN\bin and select openvpn-gui.exe

11. Click Allow the connection > Next

11. Uncheck Domain and Private > Next

12. Give the rule a name then Finish

13. Click on Outbound rules > New Rule > Port

14. Select UDP and enter in 53

    

 

15. Select All profiles > Next

16. Give the rule a name > Finish
17. Repeat steps 12 – 14 the for UDP port 1194 and TCP port 443.  Both these ports are required for the connection to be successful.

IMPORTANT NOTE:
If you ever get a firewall popup to add a program, make sure to uncheck “Private networks” and only have “Public networks” checked before clicking Allow access; If you fail to monitor this, the killswitch will be pointless