日期:2014-05-16 浏览次数:20709 次
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT
service iptables restart
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited而
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited