iptables  -  리눅스  2015. 7. 28. 12:26

공유하기

# Generated by iptables-save v1.4.7 on Tue Jul 28 12:25:27 2015

*filter

:INPUT ACCEPT [0:0]

:FORWARD ACCEPT [0:0]

:OUTPUT ACCEPT [1170089:394646139]

-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 -m tcp --dport 22 -j ACCEPT

-A INPUT -p tcp -m state --state NEW -m tcp --dport 7224 -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 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 udp --dport 1900 -m comment --comment "Serviio" -j ACCEPT

-A INPUT -p tcp -m tcp --dport 8895 -m comment --comment "Serviio" -j ACCEPT

-A INPUT -p tcp -m tcp --dport 23423 -m comment --comment "Serviio" -j ACCEPT

-A INPUT -p tcp -m tcp --dport 23424 -m comment --comment "Serviio" -j ACCEPT

-A INPUT -j REJECT --reject-with icmp-host-prohibited

-A FORWARD -j REJECT --reject-with icmp-host-prohibited

COMMIT

# Completed on Tue Jul 28 12:25:27 2015



Share to Facebook Share to Twitter Share to MySpace 다음구독 한rss구독