Monday, August 18, 2025

Implementing a killswitch when your VPN connection drops on Ubuntu

Goto https://github.com/lafa/vpn_enforce and follow the instructions.

This assumes you already configured your vpn on gnome network settings.

This script enforces that your VPN needs to be running for the the web traffic to work, even after you disconnect from WIFI or restart the laptop.

to turn it off use

sudo ufw disable  

References:

https://github.com/lafa/vpn_enforce 

 

Implementing a killswitch when your VPN connection drops on Ubuntu

Goto https://github.com/lafa/vpn_enforce and follow the instructions. This assumes you already configured your vpn on gnome network settings...