debian安装firewalld错误如何解决

2023-06-15 10:26:32 错误 安装 如何解决

这篇文章主要讲解了“debian安装firewalld错误如何解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“debian安装firewalld错误如何解决”吧!

debian或ubuntu安装firewalld

apt remove --purge ufw
apt install firewalld -y
systemctl daemon-reload
systemctl restart firewalld
systemctl enable firewalld

添加端口时会出现以下错误,

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

把/etc/firewalld/firewalld.conf文件中的IndividualCalls=no改成IndividualCalls=yes

sed -i "s/IndividualCalls=no/IndividualCalls=yes/g" /etc/firewalld/firewalld.conf

重启就可以了

systemctl restart firewalld

相关文章