#Need help with Firewalld and docker on Ubuntu 22.04.2 LTS

1 messages · Page 1 of 1 (latest)

torn sigil
#

Ok I disabled iptables using /etc/docker/daemon.json cause I was wondering if docker modifying iptables directly would cause trouble for Firewalld
And now there are some connection problems with containers, Is it wrong to disable iptables in /etc/docker/daemon.json? And I know that Docker documents discourage disabling that but still trying to figure out what's better to do actually

junior mountain
#

Disabling firewall doesn't do what you think it does. All disabling firewall does is it just blanks firewall's filtering entries, firewall is still running inside that instance, as it is part of Linux kernel.

What you should be ideally doing is running packet dumpers and seeing if the endpoints show any activity, be it sending or receiving. Then work out what to do from there. Read up on how docker instances interact with the host machine, etc. Disabling firewalls can do more harm than good.

torn sigil
junior mountain
torn sigil
#

oh so docker modifying iptables doesn't effect firewalld

junior mountain
#

Uh, it might, check it on both endpoints, from within that instance and from host machine. firewalld is a frontend, it's not a completely seperate firewalling solution that doesn't rely on things like iptables.