Locks all outbound & inbound traffic to be through a specific IP address (IE, from your VPN) so in the case of a disconnection from it, all traffic will stop and not fail-over to your ISP's IP address.
You can not hold me accountable for any DMCA notice you might get while using this script. Pirating is bad, mmkaayyyy These are scripts I use on my own behalf that I find work very well, your mileage may vary. Always make a backup of any existing firewall rules prior to running these scripts, they will DELETE all existing rules.
-
cd iptables-vpn-kill
-
chmod +x up.sh && chmod +x down.sh
-
connect to your vpn provider as usual
-
run ./up.sh
- run ./down.sh