Le 15/08/2026 à 09:55, Marc Haber a écrit :
^
the alternatives links are above
mind I had iptables set to iptables-legacy beforehand, I switched to
iptables-nft while debugging this issue.
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, 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
same with removing the /run/ferm/inhibit-early file beforehand:
sudo rm /run/ferm/inhibit-early
prahal ~ sudo iptables -F
prahal ~ sudo iptables -X
prahal ~ sudo systemctl start ferm-early
prahal ~ sudo systemctl cat ferm
# /usr/lib/systemd/system/ferm.service
[Unit]
Description=Firewall configuration with ferm
Documentation=man:ferm(1)
After=network-online.target nss-lookup.target
Wants=network-online.target
ConditionFileIsExecutable=/usr/sbin/ferm
ConditionPathExists=/etc/ferm/ferm.conf
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=-/etc/default/ferm
# Set defaults for variables not in environment file
# (EnvironmentFile takes precedence, see systemd.exec(5)
Environment="CACHE=no"
Environment="OPTIONS="
# Execute wrapper
ExecStartPre=/usr/bin/touch /run/ferm/inhibit-early
ExecStart=/usr/libexec/ferm/ferm-systemd activate
ExecReload=/usr/libexec/ferm/ferm-systemd activate
ExecStop=/usr/libexec/ferm/ferm-systemd deactivate
UMask=0077
# Security hardening
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=yes
ReadWritePaths=/var/cache/ferm /run
NoNewPrivileges=no
# Required capabilities for firewall management
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_SYS_MODULE
[Install]
WantedBy=multi-user.target
prahal ~ sudo systemctl start ferm
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, 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: 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
"
Best Regards
Alban