Bug#1144431: ferm: seems ferm early prevents ferm from starting
Control: retitle -1 Cannot preserve default rules due to the newer kernel legacy ipt replacement being more strict with jumps to missing -early rules Control: severity -1 normal Le 12 septembre 2026 10:06:12 GMT+02:00, Marc Haber a écrit : > >Would you mind me downgrading this bug to normal and retitling it to something >along "startup order issues with ferm and docker"? Done via control headers in this email. I title it to convey that the issue is only with newer kernels being more strict, but maybe I should have written what you suggested that is to tell that the issue is with preserving docker rules. By the way I believe you have the same issue that the Debops ferm rules try to fix that is preserve docker rules on restart/reload. >Greetings >Marc Thanks Alban
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Hi Alban, On Sat, Sep 12, 2026 at 05:55:28AM +0200, Alban Browaeys wrote: I use Debops which preserves a set of previous RULES (for one FORWARD rules) but this preserves the jump to FORWARD-early even though FORWARD-early itself is not defined in my ferm rules set. This preserves is mainly there to keep docker rules on restart and such. Debian default /etc/ferm/ferm.conf is not affected because it empties the FORWARD rule. But thus it purges docker rules on restart I believe. Can you try start order so that docker networking doesn't start before ferm is finished? If that needs cooperation from the ferm systemd units, you can try that with an override and then submit the requeste changes, I'll include them when it is feasible. Either you can interlock docker with ferm the same way as ferm-early is interlocked with ferm, or ferm could write a marker file when it's finished. ferm should be as compatible as possble with things like docker and libvirt as those software packages are the common cause for not migrating to nft. Once the system startup issue was solved, the next challenge will be what happens with the docker chains and the rules that invoke them when you rebuild ferm's rules. Would you mind me downgrading this bug to normal and retitling it to something along "startup order issues with ferm and docker"? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Bug#1144431: ferm: seems ferm early prevents ferm from starting
ER-ISOLATION-STAGE-1 (1 references)
pkts bytes target prot opt in out source destination
0 0 DOCKER-ISOLATION-STAGE-2 all -- br-27afa3a73960
!br-27afa3a73960 0.0.0.0/0 0.0.0.0/0
0 0 DOCKER-ISOLATION-STAGE-2 all -- docker0 !docker0
0.0.0.0/0 0.0.0.0/0
Chain DOCKER-ISOLATION-STAGE-2 (2 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * docker0 0.0.0.0/0 0.0.0.0/0
0 0 DROP all -- * br-27afa3a73960 0.0.0.0/0
0.0.0.0/0
Chain DOCKER-USER (1 references)
pkts bytes target prot opt in out source destination
Chain FORWARD-early (1 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
state INVALID
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED
Chain INPUT-early (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT udp -- lo * 0.0.0.0/0 0.0.0.0/0
udp spt:54321
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
state INVALID
36 6425 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0
udp dpt:500
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0
tcp dpt:22
Chain OUTPUT-early (1 references)
pkts bytes target prot opt in out source destination
37 6115 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0
state RELATED,ESTABLISHED
"
"
cat /etc/ferm/ferm.conf
# Ansible managed
# Load configuration from parts
@include 'rules.d/';
"
"
for i in /etc/ferm/rules.d/* ; do echo $i; cat $i; echo "";done
/etc/ferm/rules.d/000_rule_docker_preserve.conf
# Ansible managed
# # Docker support.
# # cf
https://github.com/MaxKellermann/ferm/issues/58#issuecomment-588600252
table nat chain (PREROUTING OUTPUT POSTROUTING DOCKER) @preserve;
table filter chain (FORWARD DOCKER DOCKER-ISOLATION-STAGE-1
DOCKER-ISOLATION-STAGE-2 DOCKER-FORWARD DOCKER-CT DOCKER-BRIDGE) @preserve;
table filter chain (DOCKER-USER) { RETURN; }
/etc/ferm/rules.d/000_rule_firewall_hooks.conf
# Ansible managed
# Run custom hooks at various firewall stages
@hook pre "run-parts /etc/ferm/hooks/pre.d";
@hook post "run-parts /etc/ferm/hooks/post.d";
@hook flush "run-parts /etc/ferm/hooks/flush.d";
/etc/ferm/rules.d/000_rule_firewall_log.conf
# Ansible managed
# Custom log function used by other rules
@def &log($msg) = {
mod limit limit 2/min
limit-burst 5
LOG log-ip-options log-prefix "$msg";
}
/etc/ferm/rules.d/000_rule_firewall_variables.conf
# Ansible managed
# Define custom variables available in the firewall
@def $domains = (ip ip6);
@def $ipv4_enabled = 1;
@def $ipv6_enabled = 1;
/etc/ferm/rules.d/001_rule_accept_loopback.conf
# Ansible managed
domain (ip ip6) table filter chain INPUT {
interface lo {
ACCEPT;
}
}
/etc/ferm/rules.d/005_rule_accept_ansible_controller.conf
# Ansible managed
# Accept SSH connections from Ansible Controllers
domain (ip ip6) table filter chain INPUT {
protocol tcp dport ssh {
# Connections from any IP address not allowed
}
}
/etc/ferm/rules.d/005_rule_policy_filter_forward.conf
# Ansible managed
domain (ip ip6) table filter chain FORWARD {
policy DROP;
}
/etc/ferm/rules.d/005_rule_policy_filter_input.conf
# Ansible managed
domain (ip ip6) table filter chain INPUT {
policy DROP;
}
/etc/ferm/rules.d/005_rule_policy_filter_output.conf
# Ansible managed
domain (ip ip6) table filter chain OUTPUT {
policy ACCEPT;
}
(...)
"
On Sat, 29 Aug 2026 15:29:23 +0200 Marc Haber
wrote:
> Hi Alban,
>
> I have uploaded a new version of ferm to unstable that allows the
> ferm-systemd script to save more debug information. Can you try this
> please, and if it still fails (which is likely), set DEBUGLOG_DIR to a
> directory that is read-write available early and survives the system
> startup (like /var/cache/ferm, for example). Then feel free to send me a
> tarball.
>
> Greetings
> Marc
>
> On Sat, Aug 15, 2026 at 01:45:52PM +0200, Marc Haber wrote:
> >From: Marc Haber
> >Subject: Bug#1144431: ferm: seems ferm early prevents ferm from starting
> >To: Alban Browaeys
> >Cc: Alban
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Hi Alban, I have uploaded a new version of ferm to unstable that allows the ferm-systemd script to save more debug information. Can you try this please, and if it still fails (which is likely), set DEBUGLOG_DIR to a directory that is read-write available early and survives the system startup (like /var/cache/ferm, for example). Then feel free to send me a tarball. Greetings Marc On Sat, Aug 15, 2026 at 01:45:52PM +0200, Marc Haber wrote: From: Marc Haber Subject: Bug#1144431: ferm: seems ferm early prevents ferm from starting To: Alban Browaeys Cc: Alban Browaeys , [email protected] Reply-To: Marc Haber , [email protected] Date: Sat, 15 Aug 2026 13:45:52 +0200 X-Debian-PR-Package: ferm User-Agent: Mutt/2.2.13 (2024-03-09) List-Id: X-PTS-Package: ferm X-Spam-Score: () -4.5 X-Spam-Report: torres.zugschlus.de Content analysis details: (-4.5 points, 5.0 required) pts rule name description -- --- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [2001:648:2ffc:deb:216:61ff:fe9d:958d listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.5 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager Hi Alban, thanks for giving this helpful information. I won't have time to look into this until somewhen next week though. Do you have a workaround in place that still allows you to work or do you need something quicker? Greetings Marc On Sat, Aug 15, 2026 at 12:10:20PM +0200, Alban Browaeys wrote: From: Alban Browaeys Subject: Re: Bug#1144431: ferm: seems ferm early prevents ferm from starting To: Marc Haber , Alban Browaeys , [email protected] Date: Sat, 15 Aug 2026 12:10:20 +0200 User-Agent: Mozilla Thunderbird X-Spam-Score: (--) -2.1 X-Spam-Report: torres.zugschlus.de Content analysis details: (-2.1 points, 5.0 required) pts rule name description -- --- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:334 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [alban.browaeys(at)gmail.com] Le 15/08/2026 à 09:55, Marc Haber a écrit : Hi, On Sat, Aug 15, 2026 at 04:20:58AM +0200, Alban Browaeys wrote: sudo systemctl status ferm-early [sudo] Mot de passe de prahal : ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 2min 21s ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Process: 2072 ExecStart=/usr/libexec/ferm/ferm-systemd activate_early (code=exited, status=0/SUCCESS) Main PID: 2072 (code=exited, status=0/SUCCESS) Mem peak: 10M CPU: 123ms août 15 04:13:43 hermes ferm-systemd[2072]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm-early.conf août 15 04:13:44 hermes ferm-systemd[2072]: Early Firewall rules activated successfully prahal ~ sudo systemctl status ferm × ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2026-08-15 04:13:52 CEST; 2min 16s ago Invocation: 8755fafd7aff4c03966f34de2b382782 Docs: man:ferm(1) Process: 2876 ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early (code=exited, status=0/SUCCESS) Process: 2891 ExecStart=/usr/libexec/ferm/ferm-systemd activate (code=exited, status=1/FAILURE) Main PID: 2891 (code=exited, status
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Le 15/08/2026 à 13:45, Marc Haber a écrit : Hi Alban, thanks for giving this helpful information. I won't have time to look into this until somewhen next week though. Do you have a workaround in place that still allows you to work or do you need something quicker? Well ... my main issue with this ferm breakage is that I cannot connect to gnome shell via RDP without cleaning iptables and restarting ferm manually but yesterday I discovered that with current Debian testing, gnome-shell crashes when I connect to it via RDP... so for now this ferm issue is hidden behind a more critical one. But I preferred to report it sooner. But my current workaround is to ssh to the box, iptables -F, iptables -X, sudo systemctl restart ferm. Could well be the issue is local to this box, ie a leftover corrupt iptables state file or such, but I don't know iptables/nft save/restore well enough. Best Regards, Alban
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Hi Alban, thanks for giving this helpful information. I won't have time to look into this until somewhen next week though. Do you have a workaround in place that still allows you to work or do you need something quicker? Greetings Marc On Sat, Aug 15, 2026 at 12:10:20PM +0200, Alban Browaeys wrote: From: Alban Browaeys Subject: Re: Bug#1144431: ferm: seems ferm early prevents ferm from starting To: Marc Haber , Alban Browaeys , [email protected] Date: Sat, 15 Aug 2026 12:10:20 +0200 User-Agent: Mozilla Thunderbird X-Spam-Score: (--) -2.1 X-Spam-Report: torres.zugschlus.de Content analysis details: (-2.1 points, 5.0 required) pts rule name description -- --- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:334 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [alban.browaeys(at)gmail.com] Le 15/08/2026 à 09:55, Marc Haber a écrit : Hi, On Sat, Aug 15, 2026 at 04:20:58AM +0200, Alban Browaeys wrote: sudo systemctl status ferm-early [sudo] Mot de passe de prahal : ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 2min 21s ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Process: 2072 ExecStart=/usr/libexec/ferm/ferm-systemd activate_early (code=exited, status=0/SUCCESS) Main PID: 2072 (code=exited, status=0/SUCCESS) Mem peak: 10M CPU: 123ms août 15 04:13:43 hermes ferm-systemd[2072]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm-early.conf août 15 04:13:44 hermes ferm-systemd[2072]: Early Firewall rules activated successfully prahal ~ sudo systemctl status ferm × ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2026-08-15 04:13:52 CEST; 2min 16s ago Invocation: 8755fafd7aff4c03966f34de2b382782 Docs: man:ferm(1) Process: 2876 ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early (code=exited, status=0/SUCCESS) Process: 2891 ExecStart=/usr/libexec/ferm/ferm-systemd activate (code=exited, status=1/FAILURE) Main PID: 2891 (code=exited, status=1/FAILURE) Mem peak: 9.3M CPU: 183ms août 15 04:13:52 hermes ferm-systemd[2891]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm.conf août 15 04:13:52 hermes ferm-systemd[2956]: iptables-restore v1.8.13 (nf_tables): Chain 'FORWARD-early' does not exist août 15 04:13:52 hermes ferm-systemd[2956]: Error occurred at line: 102 août 15 04:13:52 hermes ferm-systemd[2956]: Try `iptables-restore -h' or 'iptables-restore --help' for more information. août 15 04:13:52 hermes ferm-systemd[2903]: Failed to run /usr/sbin/iptables-restore août 15 04:13:52 hermes ferm-systemd[2903]: Firewall rules rolled back. prahal ~ 3 ls -l /etc/alternatives/iptables* lrwxrwxrwx 1 root root 22 15 août 03:49 /etc/alternatives/iptables -> /usr/sbin/iptables-nft lrwxrwxrwx 1 root root 30 15 août 03:49 /etc/alternatives/iptables-restore -> /usr/sbin/iptables-nft-restore lrwxrwxrwx 1 root root 27 15 août 03:49 /etc/alternatives/iptables-save -> /usr/sbin/iptables-nft-save prahal ~ ls -l /etc/alternatives/ip6tables* lrwxrwxrwx 1 root root 23 15 août 04:09 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-nft lrwxrwxrwx 1 root root 31 15 août 04:09 /etc/alternatives/ip6tables-restore -> /usr/sbin/ip6tables-nft-restore lrwxrwxrwx 1 root root 28 15 août 04:09 /etc/alternatives/ip6tables-save -> /usr/sbin/ip6tables-nft-save ^ the alternatives links are above mind I had iptables set to iptables-legacy beforehand, I switched to iptables-nft while debugging this issue. Note I don't have a vanilly Debian ferm setup but a debops one (ie /etc/ferm/ferm.conf is not Debian vanilla). But it seems unrelated to cur
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Le 15/08/2026 à 09:55, Marc Haber a écrit : Hi, On Sat, Aug 15, 2026 at 04:20:58AM +0200, Alban Browaeys wrote: sudo systemctl status ferm-early [sudo] Mot de passe de prahal : ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 2min 21s ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Process: 2072 ExecStart=/usr/libexec/ferm/ferm-systemd activate_early (code=exited, status=0/SUCCESS) Main PID: 2072 (code=exited, status=0/SUCCESS) Mem peak: 10M CPU: 123ms août 15 04:13:43 hermes ferm-systemd[2072]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm-early.conf août 15 04:13:44 hermes ferm-systemd[2072]: Early Firewall rules activated successfully prahal ~ sudo systemctl status ferm × ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2026-08-15 04:13:52 CEST; 2min 16s ago Invocation: 8755fafd7aff4c03966f34de2b382782 Docs: man:ferm(1) Process: 2876 ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early (code=exited, status=0/SUCCESS) Process: 2891 ExecStart=/usr/libexec/ferm/ferm-systemd activate (code=exited, status=1/FAILURE) Main PID: 2891 (code=exited, status=1/FAILURE) Mem peak: 9.3M CPU: 183ms août 15 04:13:52 hermes ferm-systemd[2891]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm.conf août 15 04:13:52 hermes ferm-systemd[2956]: iptables-restore v1.8.13 (nf_tables): Chain 'FORWARD-early' does not exist août 15 04:13:52 hermes ferm-systemd[2956]: Error occurred at line: 102 août 15 04:13:52 hermes ferm-systemd[2956]: Try `iptables-restore -h' or 'iptables-restore --help' for more information. août 15 04:13:52 hermes ferm-systemd[2903]: Failed to run /usr/sbin/iptables-restore août 15 04:13:52 hermes ferm-systemd[2903]: Firewall rules rolled back. prahal ~ 3 ls -l /etc/alternatives/iptables* lrwxrwxrwx 1 root root 22 15 août 03:49 /etc/alternatives/iptables -> /usr/sbin/iptables-nft lrwxrwxrwx 1 root root 30 15 août 03:49 /etc/alternatives/iptables-restore -> /usr/sbin/iptables-nft-restore lrwxrwxrwx 1 root root 27 15 août 03:49 /etc/alternatives/iptables-save -> /usr/sbin/iptables-nft-save prahal ~ ls -l /etc/alternatives/ip6tables* lrwxrwxrwx 1 root root 23 15 août 04:09 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-nft lrwxrwxrwx 1 root root 31 15 août 04:09 /etc/alternatives/ip6tables-restore -> /usr/sbin/ip6tables-nft-restore lrwxrwxrwx 1 root root 28 15 août 04:09 /etc/alternatives/ip6tables-save -> /usr/sbin/ip6tables-nft-save ^ the alternatives links are above mind I had iptables set to iptables-legacy beforehand, I switched to iptables-nft while debugging this issue. Note I don't have a vanilly Debian ferm setup but a debops one (ie /etc/ferm/ferm.conf is not Debian vanilla). But it seems unrelated to current issue. Can you reproduce this with a Debian vanilla ferm.conf? If not, can you show the configuration that fails? What is your /etc/alternatives/iptables* pointing to? Can you reproduce the issues by emptying out all tables and manually going through the same motions that the ferm-early and the ferm services do? Especially, what rules does ferm-early install? I doubt my /etc/ferm/ferm.conf is the issue, here it is: " cat /etc/ferm/ferm.conf # Ansible managed # Load configuration from parts @include 'rules.d/'; " my ferm-early.service and ferm.service are vanilla Debian but I cannot reproduce by starting by hand instead of during the boot " sudo iptables -F prahal ~ sudo iptables -X prahal ~ sudo systemctl start ferm-early prahal ~ sudo systemctl start ferm prahal ~ sudo systemctl status ferm ● ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:27:19 CEST; 7h ago Invocation: 74cdbf8e52ca45468d95bf505d1067d8 Docs: man:ferm(1) Main PID: 11194 (code=exited, status=0/SUCCESS) Mem peak: 9.5M CPU: 142ms août 15 04:27:19 hermes ferm-systemd[11194]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm.conf août 15 04:27:19 hermes ferm-systemd[11194]: Firewall rules activated successfully prahal ~ sudo systemctl status ferm-early ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 7h ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Main PID: 2072 (code=exited,
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Hi, On Sat, Aug 15, 2026 at 04:20:58AM +0200, Alban Browaeys wrote: sudo systemctl status ferm-early [sudo] Mot de passe de prahal : ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 2min 21s ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Process: 2072 ExecStart=/usr/libexec/ferm/ferm-systemd activate_early (code=exited, status=0/SUCCESS) Main PID: 2072 (code=exited, status=0/SUCCESS) Mem peak: 10M CPU: 123ms août 15 04:13:43 hermes ferm-systemd[2072]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm-early.conf août 15 04:13:44 hermes ferm-systemd[2072]: Early Firewall rules activated successfully prahal ~ sudo systemctl status ferm × ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2026-08-15 04:13:52 CEST; 2min 16s ago Invocation: 8755fafd7aff4c03966f34de2b382782 Docs: man:ferm(1) Process: 2876 ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early (code=exited, status=0/SUCCESS) Process: 2891 ExecStart=/usr/libexec/ferm/ferm-systemd activate (code=exited, status=1/FAILURE) Main PID: 2891 (code=exited, status=1/FAILURE) Mem peak: 9.3M CPU: 183ms août 15 04:13:52 hermes ferm-systemd[2891]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm.conf août 15 04:13:52 hermes ferm-systemd[2956]: iptables-restore v1.8.13 (nf_tables): Chain 'FORWARD-early' does not exist août 15 04:13:52 hermes ferm-systemd[2956]: Error occurred at line: 102 août 15 04:13:52 hermes ferm-systemd[2956]: Try `iptables-restore -h' or 'iptables-restore --help' for more information. août 15 04:13:52 hermes ferm-systemd[2903]: Failed to run /usr/sbin/iptables-restore août 15 04:13:52 hermes ferm-systemd[2903]: Firewall rules rolled back. prahal ~ 3 ls -l /etc/alternatives/iptables* lrwxrwxrwx 1 root root 22 15 août 03:49 /etc/alternatives/iptables -> /usr/sbin/iptables-nft lrwxrwxrwx 1 root root 30 15 août 03:49 /etc/alternatives/iptables-restore -> /usr/sbin/iptables-nft-restore lrwxrwxrwx 1 root root 27 15 août 03:49 /etc/alternatives/iptables-save -> /usr/sbin/iptables-nft-save prahal ~ ls -l /etc/alternatives/ip6tables* lrwxrwxrwx 1 root root 23 15 août 04:09 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-nft lrwxrwxrwx 1 root root 31 15 août 04:09 /etc/alternatives/ip6tables-restore -> /usr/sbin/ip6tables-nft-restore lrwxrwxrwx 1 root root 28 15 août 04:09 /etc/alternatives/ip6tables-save -> /usr/sbin/ip6tables-nft-save Note I don't have a vanilly Debian ferm setup but a debops one (ie /etc/ferm/ferm.conf is not Debian vanilla). But it seems unrelated to current issue. Can you reproduce this with a Debian vanilla ferm.conf? If not, can you show the configuration that fails? What is your /etc/alternatives/iptables* pointing to? Can you reproduce the issues by emptying out all tables and manually going through the same motions that the ferm-early and the ferm services do? Especially, what rules does ferm-early install? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Bug#1144431: ferm: seems ferm early prevents ferm from starting
Package: ferm Version: 2.7-8 Severity: normal Dear Maintainer, At boot ferm fails. sudo systemctl status ferm-early [sudo] Mot de passe de prahal : ● ferm-early.service - Early Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm-early.service; enabled; preset: enabled) Active: active (exited) since Sat 2026-08-15 04:13:44 CEST; 2min 21s ago Invocation: 0a3fb74a9c0749fdbbd990231f0aed49 Docs: man:ferm(1) https://systemd.io/NETWORK_ONLINE/ Process: 2072 ExecStart=/usr/libexec/ferm/ferm-systemd activate_early (code=exited, status=0/SUCCESS) Main PID: 2072 (code=exited, status=0/SUCCESS) Mem peak: 10M CPU: 123ms août 15 04:13:43 hermes ferm-systemd[2072]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm-early.conf août 15 04:13:44 hermes ferm-systemd[2072]: Early Firewall rules activated successfully prahal ~ sudo systemctl status ferm × ferm.service - Firewall configuration with ferm Loaded: loaded (/usr/lib/systemd/system/ferm.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Sat 2026-08-15 04:13:52 CEST; 2min 16s ago Invocation: 8755fafd7aff4c03966f34de2b382782 Docs: man:ferm(1) Process: 2876 ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early (code=exited, status=0/SUCCESS) Process: 2891 ExecStart=/usr/libexec/ferm/ferm-systemd activate (code=exited, status=1/FAILURE) Main PID: 2891 (code=exited, status=1/FAILURE) Mem peak: 9.3M CPU: 183ms août 15 04:13:52 hermes ferm-systemd[2891]: Activating firewall rules: /usr/sbin/ferm /etc/ferm/ferm.conf août 15 04:13:52 hermes ferm-systemd[2956]: iptables-restore v1.8.13 (nf_tables): Chain 'FORWARD-early' does not exist août 15 04:13:52 hermes ferm-systemd[2956]: Error occurred at line: 102 août 15 04:13:52 hermes ferm-systemd[2956]: Try `iptables-restore -h' or 'iptables-restore --help' for more information. août 15 04:13:52 hermes ferm-systemd[2903]: Failed to run /usr/sbin/iptables-restore août 15 04:13:52 hermes ferm-systemd[2903]: Firewall rules rolled back. prahal ~ 3 ls -l /etc/alternatives/iptables* lrwxrwxrwx 1 root root 22 15 août 03:49 /etc/alternatives/iptables -> /usr/sbin/iptables-nft lrwxrwxrwx 1 root root 30 15 août 03:49 /etc/alternatives/iptables-restore -> /usr/sbin/iptables-nft-restore lrwxrwxrwx 1 root root 27 15 août 03:49 /etc/alternatives/iptables-save -> /usr/sbin/iptables-nft-save prahal ~ ls -l /etc/alternatives/ip6tables* lrwxrwxrwx 1 root root 23 15 août 04:09 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-nft lrwxrwxrwx 1 root root 31 15 août 04:09 /etc/alternatives/ip6tables-restore -> /usr/sbin/ip6tables-nft-restore lrwxrwxrwx 1 root root 28 15 août 04:09 /etc/alternatives/ip6tables-save -> /usr/sbin/ip6tables-nft-save Note I don't have a vanilly Debian ferm setup but a debops one (ie /etc/ferm/ferm.conf is not Debian vanilla). But it seems unrelated to current issue. Best Regards, Alban -- System Information: Debian Release: forky/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'stable-debug'), (500, 'oldstable-debug'), (500, 'testing'), (500, 'stable'), (90, 'unstable-debug'), (90, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 7.1.7+deb14-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ferm depends on: ii iptables1.8.13-1 ii perl5.42.2-3 ii systemd [systemd-tmpfiles] 261.2-1 Versions of packages ferm recommends: pn libnet-dns-perl ferm suggests no packages. -- Configuration Files: /etc/default/ferm changed: FAST=yes CACHE=no OPTIONS= ENABLED="yes" /etc/ferm/ferm.conf changed: @include 'rules.d/'; -- debconf information: * ferm/enable: yes -- debsums errors found: debsums: changed file /usr/libexec/ferm/ferm-systemd (from ferm package)

