ERROR: ‘/usr/sbin/iptables-restore -w -n‘ failed: iptables-restore v1.8.2 (nf_tables)

The firewall port has been configured recently, but the firewall-cmd --reload operation is invalid and
the following error is always reported.

ERROR: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.8.2 (nf_tables): 
                                                          line 4: RULE_REPLACE failed (No such file or directory): rule in chain INPUT
                                                          line 4: RULE_REPLACE failed (No such file or directory): rule in chain OUTPUT

Solution

vim /etc/firewalld/firewalld.conf

turn up

IndividualCalls=no
#把no改为yes

Insert image description here
Press esc, enter to :wqsave and exit
and then restart the firewalld service

systemctl restart firewalld.service

After restarting, you can execute firewall-cmd --reload normally.

Guess you like

Origin blog.csdn.net/u014292402/article/details/127016182