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

来源:互联网 发布:淘宝app流量软件 编辑:程序博客网 时间:2024/06/11 17:25

[root@localhost~]# service iptables restart

iptables将链设置为政策ACCEPTfilter                           [确定]

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

iptables正在卸载模块                                          [确定]

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

 

解决办法

[root@localhost~]#iptables -N RH-Firewall-1-INPUT

[root@localhost~]# service iptables save

[root@localhost~]#vim /etc/sysconfig/iptables

编辑/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应用防火墙规则                                [确定]

原创粉丝点击