Skip to content

Instantly share code, notes, and snippets.

@jgomo3
Created October 20, 2015 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgomo3/ea720f18e492f37c68b4 to your computer and use it in GitHub Desktop.
Save jgomo3/ea720f18e492f37c68b4 to your computer and use it in GitHub Desktop.
Flush all iptables rules
#!/bin/sh
echo "Stopping firewall and allowing everyone..."
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 FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment