Skip to content

Instantly share code, notes, and snippets.

@adrelanos
Created April 13, 2014 02:07
Show Gist options
  • Save adrelanos/10565852 to your computer and use it in GitHub Desktop.
Save adrelanos/10565852 to your computer and use it in GitHub Desktop.
deactivate vpn firewall
#!/bin/bash
set -x
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
@adrelanos
Copy link
Author

Create a file ~/home/user/deactivate_vpn_firewall.

Make it executable.

chmod +x /home/user/deactivate_vpn_firewall

Run it.

/home/user/deactivate_vpn_firewall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment