Public bug reported:
The COMMANDS map in /usr/lib/python3/dist-
packages/firewall/config/__init__.py contains the following paths:
"ipv4": "/usr/sbin/iptables",
"ipv4-restore": "/usr/sbin/iptables-restore",
"ipv6": "/usr/sbin/ip6tables",
"ipv6-restore": "/usr/sbin/ip6tables-restore",
However, the referenced commands do not exist under these paths.
Instead, __init__.py should reference the following paths:
"ipv4": "/sbin/iptables",
"ipv4-restore": "/sbin/iptables-restore",
"ipv6": "/sbin/ip6tables",
"ipv6-restore": "/sbin/ip6tables-restore",
Without this change, firewalld will fail to start up when using the
iptables backend. syslog will contain the following:
firewalld[xxxx]: WARNING: iptables-restore and iptables are missing, disabling
IPv4 firewall.
firewalld[xxxx]: WARNING: ip6tables-restore and ip6tables are missing,
disabling IPv6 firewall.
firewalld[xxxx]: FATAL ERROR: No IPv4 and IPv6 firewall.
firewalld[xxxx]: ERROR: Raising SystemExit in run_server
Observed on Kubuntu 19.04, firewalld 0.6.3-5ubuntu4
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: firewalld 0.6.3-5ubuntu4 [modified:
usr/lib/python3/dist-packages/firewall/config/__init__.py]
ProcVersionSignature: Ubuntu 5.0.0-13.14-generic 5.0.6
Uname: Linux 5.0.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: KDE
Date: Wed May 1 00:13:40 2019
InstallationDate: Installed on 2017-05-21 (709 days ago)
InstallationMedia: Kubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitecture: all
SourcePackage: firewalld
UpgradeStatus: Upgraded to disco on 2019-04-30 (0 days ago)
modified.conffile..etc.firewalld.firewalld.conf: [deleted]
modified.conffile..etc.firewalld.lockdown-whitelist.xml: [deleted]
** Affects: firewalld (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug disco
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1827144
Title:
firewalld uses wrong path of iptables and iptables-restore
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firewalld/+bug/1827144/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs