Hello,

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.

This looks to me that you're using three different software projects that manage your firewall rules: ferm, debops, and docker. I really don't want to support that setup, it looks like it's impossible to test.

From the ferm point of view I think that it's best to assume that ferm owns the "main" firewall chains like INPUT, OUTPUT, and FORWARD, and to try to keep the other software from writing to INPUT, OUTPUT, and FORWARD. I do not know anything about debops. Docker, as far as I know, is pretty well-behaved and puts its rules into docker rule chains with well-defined names, so you could:

- make sure that ferm's main systemd unit is started before anything else that might touch iptables - in your ferm main rule set, create the rules that docker wants to populate and - establich the respective --jump docker-FOO rules in the INPUT/OUTPUT/FORWARD chains

If you have any other ideas, for example giving ferm an option to not clear out the INPUT/OUTPUT/FORARD chains before establishing ferm's ruleset, and probably optionally disabling the early ruleset, I am all open for that.

I am also open to reading debug output generated by ferm to find out what is actually happening. ferm has grown new debug code this summer, feel free to use it.

Just please don't expect me to install debops and/or docker in combination with ferm to figure out the interoperability myself.

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

Reply via email to