2017-08-25 59 views
0

我正在尝试配置NRPE 3.2.0,它使用端口5666来运行远程脚本。RHEL 7.2中的防火墙错误:“无链/目标/匹配该名称。”

当我尝试执行下面的命令时,出现此错误。

firewall-cmd --zone=public --add-port=5666/tcp 

Error: COMMAND_FAILED: '/sbin/iptables -w2 -A IN_public_allow -t filter -m tcp -p tcp --dport 5666 -m conntrack --ctstate NEW -j ACCEPT' failed: iptables: No chain/target/match by that name. 
Failed to apply rules. A firewall reload might solve the issue if the firewall has been modified using ip*tables or ebtables. 

我明白,我想追加不存在,但环比我不会有什么这条产业链是什么或如何创建它头绪。

+0

必须尝试重新加载防火墙吗? 'firewall-cmd --reload' –

+0

它的工作!谢谢:) –

+0

@SergioLaRosa你能写你的评论作为答案?我会接受它 –

回答

2

重新加载防火墙:firewall-cmd --reload