[Bug 1949643] Re: iptables-persistent unconditionally drops existing iptables rules
Mauricio Faria de Oliveira
1949643 at bugs.launchpad.net
Mon Dec 13 15:43:01 UTC 2021
The fix has been released in Debian and Ubuntu Jammy.
https://launchpad.net/ubuntu/+source/iptables-persistent/1.0.16
** Also affects: iptables-persistent (Ubuntu Jammy)
Importance: Medium
Assignee: Mauricio Faria de Oliveira (mfo)
Status: Confirmed
** Also affects: iptables-persistent (Ubuntu Hirsute)
Importance: Undecided
Status: New
** Also affects: iptables-persistent (Ubuntu Bionic)
Importance: Undecided
Status: New
** Also affects: iptables-persistent (Ubuntu Impish)
Importance: Undecided
Status: New
** Also affects: iptables-persistent (Ubuntu Focal)
Importance: Undecided
Status: New
** Changed in: iptables-persistent (Ubuntu Impish)
Status: New => In Progress
** Changed in: iptables-persistent (Ubuntu Impish)
Importance: Undecided => Medium
** Changed in: iptables-persistent (Ubuntu Impish)
Assignee: (unassigned) => Jorge Merlino (jorge-merlino)
** Changed in: iptables-persistent (Ubuntu Hirsute)
Status: New => In Progress
** Changed in: iptables-persistent (Ubuntu Hirsute)
Importance: Undecided => Medium
** Changed in: iptables-persistent (Ubuntu Hirsute)
Assignee: (unassigned) => Jorge Merlino (jorge-merlino)
** Changed in: iptables-persistent (Ubuntu Focal)
Status: New => In Progress
** Changed in: iptables-persistent (Ubuntu Focal)
Importance: Undecided => Medium
** Changed in: iptables-persistent (Ubuntu Focal)
Assignee: (unassigned) => Jorge Merlino (jorge-merlino)
** Changed in: iptables-persistent (Ubuntu Bionic)
Status: New => In Progress
** Changed in: iptables-persistent (Ubuntu Bionic)
Importance: Undecided => Medium
** Changed in: iptables-persistent (Ubuntu Bionic)
Assignee: (unassigned) => Jorge Merlino (jorge-merlino)
** Changed in: iptables-persistent (Ubuntu Jammy)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1949643
Title:
iptables-persistent unconditionally drops existing iptables rules
Status in iptables-persistent package in Ubuntu:
Fix Released
Status in iptables-persistent source package in Bionic:
In Progress
Status in iptables-persistent source package in Focal:
In Progress
Status in iptables-persistent source package in Hirsute:
In Progress
Status in iptables-persistent source package in Impish:
In Progress
Status in iptables-persistent source package in Jammy:
Fix Released
Status in iptables-persistent package in Debian:
Fix Released
Bug description:
[Impact]
The iptables-persistent plugins/{15-ip4tables,25-ip6tables}
use ip[6]tables-restore without --noflush unconditionally.
This doesn't play along well with ufw, which starts before
netfilter-persistent typically, and gets its rules flushed.
This makes `ufw status` return that ufw is disabled, which
is misleading, as `ufw.service` is enabled and ufw actually
loaded all its rules correctly (but they were flushed later.)
Some images ship iptables-persistent rules, thus are subject
to this issue if ufw is used.
[Workaround]
Disable the netfilter-persistent.service unit, after rules
have been migrated to ufw.
[Fix]
Proposed in Debian bug #998416 [1], Salsa Merge Request [2].
[Test Steps]
See the Debian bug.
[1] https://bugs.debian.org/998416
[2] https://salsa.debian.org/debian/iptables-persistent/-/merge_requests/3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iptables-persistent/+bug/1949643/+subscriptions
More information about the Ubuntu-sponsors
mailing list