Undefinedsubroutinefirewall::iptable_restore_commandcalledat./firewall-lib.plline319.
(2022-03-13 22:48:39)分类: Linux |
启动时激活防火墙,在全新的 Ubuntu 20.04 上安装 Webmin 1.990 会引发此错误:
Undefined subroutine &firewall::iptable_restore_command
called at ./firewall-lib.pl line 319
查看文件 /usr/share/webmin/firewall/firewall-lib.pl 和
/usr/share/webmin/firewall6/firewall-lib.pl 似乎有一个错字。
第 319 行显示:local $res = &iptable_restore_command();
但应该是:local $res = &iptables_restore_command();
手动编辑这些 firewall-lib.pl 文件后,“启动时激活”按钮在 Networking/Linux
Firewall 和 Networking/Linux IPv6 Firewall 下工作。