iptables:应用防火墙规则:ptables-restore: line 2 failed [FAILED]

版权声明:RemainderTime https://blog.csdn.net/qq_39818325/article/details/82830112

[root@localhost~]# service iptables restart

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

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

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

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

解决办法:

[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 6379 -j ACCEPT

再重新启动6379端口

[root@localhost~]# service iptables restart

启动后显示正常

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

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

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

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

猜你喜欢

转载自blog.csdn.net/qq_39818325/article/details/82830112
今日推荐