CentOs iptable configuration file address:/etc/sysconfig/ipconfig # Generated by iptables-save v1.3.5 on Mon Apr 2 22:57:22 2012 * filter www.2cto.com: input accept [0: 0]: forward accept [0: 0]: output accept [5958: 3482917]-a input-I lo-j ACCEPT-A INPUT-p icmp-m icmp -- icmp-type any-j ACCEPT-A INPUT-m state -- state RELATED, ESTABLISHED-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8080-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8888-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 8081-j ACCEPT-a input-p tcp-m state -- state NEW- m tcp -- dport 8082-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 9001-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 3306-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 27017-j ACCEPT-a input-p udp-m state -- state NEW-m udp -- dport 27017-j ACCEPT www.2cto.com-a input-p tcp-m state -- state NEW-m tcp -- dport 3306-j ACCEPT-a input-p tcp -m state -- state NEW-m tcp -- dport 3001-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 3690-j ACCEPT-a input- p udp-m state -- state NEW-m udp -- dport 3690-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 22-j ACCEPT- INPUT-p tcp-m state -- state NEW-m tcp -- dport 25-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 81-j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 21- j ACCEPT-a input-p tcp-m state -- state NEW-m tcp -- dport 443-j ACCEPT-a input-j REJECT -- reject-with icmp-host-prohibited COMMIT www.2cto.com # Completed on Mon Apr 2 22:57:22 2012 restart takes effect: service iptables restart author MingliC