iptables-persistent unconditionally drops existing iptables rules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iptables-persistent (Debian) |
Fix Released
|
Unknown
|
|||
iptables-persistent (Ubuntu) |
Fix Released
|
Medium
|
Mauricio Faria de Oliveira | ||
Bionic |
Fix Released
|
Medium
|
Jorge Merlino | ||
Focal |
Fix Released
|
Medium
|
Jorge Merlino | ||
Hirsute |
Fix Released
|
Medium
|
Jorge Merlino | ||
Impish |
Fix Released
|
Medium
|
Jorge Merlino | ||
Jammy |
Fix Released
|
Medium
|
Mauricio Faria de Oliveira |
Bug Description
[Impact]
The iptables-persistent plugins/
use ip[6]tables-restore without --noflush unconditionally.
This doesn't play along well with ufw, which starts before
netfilter-
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-
have been migrated to ufw.
[Fix]
Add options IP[6]TABLES_
to `/etc/default/
existing ip[6]tables rules.
Proposed in Debian bug #998416 [1], Salsa Merge Request [2].
[Test Steps]
See commment #14 (based on the Debian bug.)
[Regression Potential]
Regressions would manifest when netfilter-
starts/loads rules, probably in the form of failures to run
ip[6]tables-restore or incorrectly (not) flushing rules.
Note: there is _no_ behavior change is by default, so users
have to opt-in, which should reduce the chances/numbers of
potential regressions.
[Links]
[1] https:/
[2] https:/
Changed in iptables-persistent (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Mauricio Faria de Oliveira (mfo) |
Changed in iptables-persistent (Debian): | |
status: | Unknown → New |
Changed in iptables-persistent (Debian): | |
status: | New → Fix Released |
tags: | added: sts-sponsor-mfo |
tags: | added: sts |
description: | updated |
https:/ /salsa. debian. org/debian/ iptables- persistent/ -/merge_ requests/ 3