2011. 12. 8. 09:27
/etc/sysconfig/iptables 내용(메모)
2011. 12. 8. 09:27 in 팁&테크/Linux
# Generated by iptables-save v1.3.5 on Fri Nov 11 10:44:22 2011
*raw
-A PREROUTING -p tcp --dport 80 -j NOTRACK
-A OUTPUT -p tcp --sport 80 -j NOTRACK
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [16:3316]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -s 아이피 -m multiport --dport 20,21,22,873 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -s ???.???.???.0/24 -m multiport --dport 20,21,22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Fri Nov 11 10:44:22 2011