CentOS_5x防火墙模板

# Generated by iptables-save v1.3.5 on Tue Jun 23 22:13:01 2014

*filter

:INPUT ACCEPT [0:0]

:FORWARD ACCEPT [0:0]

:OUTPUT ACCEPT [746940:73098378]

:RH-Firewall-1-INPUT - [0:0]

-A INPUT -j RH-Firewall-1-INPUT 

-A FORWARD -j RH-Firewall-1-INPUT 

-A RH-Firewall-1-INPUT -i lo -j ACCEPT 

-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT 

-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT 

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 8090 -j ACCEPT

-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT

-A RH-Firewall-1-INPUT -s 10.161.45.211 -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT

-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited 

COMMIT

# Completed on Tue Jun 23 22:13:01 2014

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

centos下/etc/sysconfig/下找不到iptables文件的解决

http://www.centoscn.com/CentosBug/osbug/2014/0919/3779.html


你可能感兴趣的:(防火墙,filter,2014)