iptables:应用防火墙规则:ptables-restore: line 13 failed   [失败]

时间:2016-01-13 00:53:40   收藏:0   阅读:13120

[root@localhost~]# service iptables restart

iptables:将链设置为政策ACCEPT:filter                           [确定]

iptables:清除防火墙规则:                                        [确定]

iptables:正在卸载模块:                                          [确定]

iptables:应用防火墙规则:ptables-restore:line 13 failed          [失败]

 

解决办法:

[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

 

启动后显示正常

iptables:将链设置为政策ACCEPT:filter                    [确定]

iptables:清除防火墙规则:                                [确定]

iptables:正在卸载模块:                                   [确定]

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


本文出自 “DOSOM” 博客,谢绝转载!

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!