Containers can't access other hosts in the LAN or Internet also running docker

Ah you’re also running docker, this is well known on these forums for breaking LXD’s bridging by modifying the firewall rules (outside of ufw).

See Lxd and Docker Firewall Redux - How to deal with FORWARD policy set to drop - #3 by tomp