首页 > 代码库 > 防火墙设置
防火墙设置
防火墙设置:/etc/sysconfig/iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [30150:24398950]
-A INPUT -s 172.16.7.106/32 -p tcp -m tcp --dport 1000 -j ACCEPT
-A INPUT -s 192.168.28.190/32 -p tcp -m tcp --dport 1000 -j ACCEPT
-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 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 8089 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 60001 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10050 -j ACCEPT
-A INPUT -s 192.168.28.121/32 -p tcp -m tcp --dport 1000 -j ACCEPT
-A INPUT -s 192.168.28.61/32 -p tcp -m tcp --dport 1000 -j ACCEPT
-A INPUT -s 172.16.7.60/32 -p tcp -m tcp --dport 1000 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
防火墙设置