关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

debian或ubuntu安装firewalld错误解决方法

发布时间:2021-01-07 12:22:33

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



/template/Home/Zkeys2/PC/Static