Created
November 18, 2011 18:36
-
-
Save jhelwig/1377312 to your computer and use it in GitHub Desktop.
Clear iptables to accept everything
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 | |
# IPv4 | |
IPT=/sbin/iptables | |
# Reset iptables | |
$IPT -P INPUT ACCEPT | |
$IPT -P OUTPUT ACCEPT | |
$IPT -P FORWARD ACCEPT | |
$IPT -F | |
$IPT -X |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment