Created
November 5, 2014 17:06
-
-
Save vnugent/3f3db05ce2d8abfffd85 to your computer and use it in GitHub Desktop.
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/bash | |
iptables -F | |
iptables -X | |
while read type; | |
do | |
iptables -t $type -F | |
iptables -t $type -X | |
done </proc/net/ip_tables_names | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
service iptables save | |
service iptables restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment