[root@localhost ~]# service iptables restart
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:清除防火墙规则:                                 [确定]
iptables:正在卸载模块:                                   [确定]
iptables:应用防火墙规则:iptables-restore v1.4.7: Couldn't load match `-udp':/lib64/xtables/libipt_-udp.so: cannot open shared object file: No such file or directory

Error occurred at line: 14
Try `iptables-restore -h' or 'iptables-restore --help' for more information.               [失败]
解决办法
[root@localhost~]#iptables -N RH-Firewall-1-INPUT

[root@localhost~]# service iptables save

编辑/etc/sysconfig/iptables
[root@localhost~]#vim /etc/sysconfig/iptables
添加   -ARH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
再重新启动3690端口
[root@localhost~]# service iptables restart
 
启动后显示正常
iptables将链设置为政策ACCEPTfilter                    [确定]
iptables清除防火墙规则                                        [确定]
iptables正在卸载模块                                            [确定]

iptables应用防火墙规则                                        [确定]


Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐