正在加载...
1. 编辑vi /etc/sysconfig/iptables文件,如:
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 8080 -j ACCEPT
……
2. 重启iptalbes服务:/etc/init.d/iptables restart

: http://www.ha97.com/181.html

本文相关评论 - 才一条评论
huage
2011-07-09 18:41:13
Google Chrome 12.0.742.91 Google Chrome 12.0.742.91 Windows 7 Windows 7

-p tcp已经指定了协议TCP,为什么前面还加个-m tcp?