RHEL 7.2 中的防火墙错误:"No chain/target/match by that name."

Firewall error in RHEL 7.2: "No chain/target/match by that name."

我正在尝试配置 NRPE 3.2.0 并且它使用端口 5666 到 运行 远程脚本。

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

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.

我知道我要添加的链不存在,但我不知道这个链是什么或如何创建它。

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