Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Created May 24, 2017 10:25
Show Gist options
  • Select an option

  • Save thbkrkr/11ff26b7a0c9bebdb29aed1ae42e7f74 to your computer and use it in GitHub Desktop.

Select an option

Save thbkrkr/11ff26b7a0c9bebdb29aed1ae42e7f74 to your computer and use it in GitHub Desktop.
Remove all iptables
#!/bin/sh
echo "Stopping firewall and allowing everyone..."
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -t raw -F
iptables -t raw -X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment