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
Copyright © 2013-2023 . All Rights Reserved. 宵云 版权所有 南通宵云网络科技有限公司
工信部备案:苏ICP备18049042号-2 公安部备案:苏公网安备 32060102320703号
《中华人民共和国增值电信业务经营许可证》经营性ICP/ISP/IDC三证:苏B1.B2-20210805