[root@localhost~]#iptables -N RH-Firewall-1-INPUT
[root@localhost~]# service iptables save
编辑/etc/sysconfig/iptables,添加
-ARH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
[root@localhost~]#vim /etc/sysconfig/iptables
再重新启动3690端口
[root@localhost~]# service iptables restart
网友评论