I'm using OpenVPN via command line to connect to my VPN on my current Linux distro since there is no GUI available (which had a killswitch checkbox).
My problem is, I can't find any way to add a killswitch or prevent fallback to my default connection when the VPN goes out.
Here is the command I currently use to connect:
openvpn --config /etc/openvpn/gateway.conf
Basically, I want to find a simple method to prevent my VPN to fallback to default connection if it goes out. I just want my connection to be dead until the VPN connection is restored.
client dev tun proto udp remote us-california.privateinternetaccess.com 1194 resolv-retry infinite nobind persist-key persist-tun ca /etc/openvpn/ca.crt tls-client remote-cert-tls server auth-user-pass /etc/openvpn/login.conf comp-lzo verb 1 reneg-sec 0 crl-verify /etc/openvpn/crl.pem auth-nocache script-security 2 up /etc/openvpn/update-resolv-conf.sh down /etc/openvpn/update-resolv-conf.sh