标签:
vi etc/iptable/sysconfig/iptables
linux 开放固定端口
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1113 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 55151 -j ACCEPT
重启防火墙:service iptables restart
关闭防火墙:service iptables stop
开启防火墙:service iptables start
保存 service iptables save
标签:
原文地址:http://www.cnblogs.com/jackylee92/p/5559653.html