Skip to content

Instantly share code, notes, and snippets.

@guddl
Last active June 29, 2016 19:27
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 guddl/e4d8a65e921190e937b2cbb4b8dca741 to your computer and use it in GitHub Desktop.
Save guddl/e4d8a65e921190e937b2cbb4b8dca741 to your computer and use it in GitHub Desktop.
Flushed all iptables rules on a Linux system
#!/bin/bash
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