Created
April 6, 2016 19:02
-
-
Save jabedude/ea97709d5088d835cfc9a3473bc243d3 to your computer and use it in GitHub Desktop.
flushes iptables rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment