Created
May 5, 2013 18:08
-
-
Save Frodox/5521612 to your computer and use it in GitHub Desktop.
iptables-save
This file contains hidden or 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
# iptables-save | |
# Generated by iptables-save v1.4.12 on Sun May 5 22:05:44 2013 | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [5:224] | |
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 137 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 138 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 139 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 445 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 137 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 138 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 631 -j ACCEPT | |
-A INPUT -d 224.0.0.251/32 -p udp -m state --state NEW -m udp --dport 5353 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 631 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 631 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 69 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 69 -j ACCEPT | |
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT | |
-A INPUT -p udp -m state --state NEW -m udp --dport 80 -j ACCEPT | |
-A INPUT -p tcp -m tcp --sport 3000 -j ACCEPT | |
-A INPUT -p udp -m udp --sport 3000 -j ACCEPT | |
-A INPUT -p tcp -m tcp --sport 3001 -j ACCEPT | |
-A FORWARD -j REJECT --reject-with icmp-host-prohibited | |
-A OUTPUT -p tcp -m tcp --dport 3000 -j ACCEPT | |
-A OUTPUT -p udp -m udp --sport 3000 -j ACCEPT | |
-A OUTPUT -p tcp -m tcp --sport 3001 -j ACCEPT | |
COMMIT | |
# Completed on Sun May 5 22:05:44 2013 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment