Minimal UFW firewall rules to allow for DHCP?


My containers aren’t getting IPV4s , which I have determined be due to the firewall (I’m using UFW).

Without getting bogged down in my specific rules, I was wondering:

With the default ~lxdbr0~ network setup, what is the minimum firewall rules required for containers to get IPs, given that the default policy for both in and out is “deny”?

I would’ve thought (and maybe this is my lack of networking knowledge on show!) that you wouldn’t need any rules at all, since the DHCP request never leaves the ~lxdbr0~ interface, but that appears to not be the case for me.

Any help is appreciated, cheers.

This should help you:

1 Like

Thanks a lot Thomas! That did the trick :slight_smile:

1 Like