🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Marc Haber Mon, 16 Nov 2026 15:40
Bug#1144431: ferm: seems ferm early prevents ferm from starting
#4741
Author: Marc Haber
Date: Mon, 16 Nov 2026 15:40
51 lines
4745 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads