firewalld防火墙Debian10(更新规则报错iptables-restore -w -n’ failed: iptables-restore v1.8.2 (nf_tables):)

报错:

 


 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


最后面

 

 

FirewallBackend # Selects the firewall backend implementation. # Choices are: # - nftables (default) # - iptables (iptables, ip6tables, ebtables and ipset) FirewallBackend=iptables

解决:文件 vim /etc/firewalld/firewalld.conf

FirewallBackend=iptables

FirewallBackend=nftables

 

 

 

发表评论