Debain 12, Firewalld (nftables) and Docker in 2024

Hi,

has someone found a clean and simple solution to manage the network connection of Docker-Containers via the Firewalld-Firewall (nftables) on a Debian 12 (nftables)?

I try since days to find something usefull, but there seem to be only workarounds or “hacks”. I guess everything of this is working, but I am worried that with any update or little change everything breaks.

The best I found is this: https://dev.to/soerenmetje/how-to-secure-a-docker-host-using-firewalld-2joo … it’s close to what I think it should be, but I am missing the possibility to controll the network of every container.

Thanks,
Christian.

1 Like