Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save maurodelazeri/37c9965b9892ad0648fddb42ba73253e to your computer and use it in GitHub Desktop.

Select an option

Save maurodelazeri/37c9965b9892ad0648fddb42ba73253e to your computer and use it in GitHub Desktop.
iptables flush
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