报错:
Error: RUNNING_BUT_FAILED: Changing permanent configuration is not allowed while firewalld is in FAILED state. The permanent configuration must be fixed and then firewalld restarted. Try
. 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/error/fix-debian-firewalld/
0 firewall-offline-cmd --check-config
修复方法:
|
0 1 2 3 4 5 6 7 8 |
$ systemctl stop firewalld $ cp -r /etc/firewalld /etc/firewalld.backup.$(date +%Y%m%d_%H%M%S) $ rm -rf /etc/firewalld/* $ rm -rf /etc/firewalld/.* # 恢复默认配置 $ firewall-cmd --runtime-to-permanent 2>/dev/null || true $ cp /etc/firewalld.backup.20251023_214602/firewalld.conf /etc/firewalld/ $ mkdir /etc/firewalld/{icmptypes,ipsets,policies,services} $ systemctl start firewalld |
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
