I believe if it has its own subnet other than 172.17.0.0/24 or what is reflected in dockerman it is a hosted one.
This means if you go in luci into the network tab->interfaces and then click on devices tab.
You see a bridge with a weird name, you can make a unmanaged interface which then holds this bridge device and then assign a firewall zone to it.
Also on dockerman if you go into networks the bridge name is the same as what it shows there
A other way is to recreate the container as non host then it falls under the docker firewall zone.
Also if you want to continue using the bridge and get errors in the log that a veth device cannot be added, this is because the bridge was down, the checkbox keep up bridge would solve it, if after all there is no internet after the bridge configuration, then you may need to restart (this is something I observed myself with a lancache docker image on a Mochabin)
If luci-app-dockerman doesn’t show containers sometimes it takes some time or a restart eventually it will show up, it was also reported as a bug I believe.
You can also see the network names with command docker network list then the bridge is just br-<networkid>
For the docker0 you can leave this one alone, this is only for containers on the main subnet, only docker containers with their own network generate these bridge devices.
Now you can create a new interface with protocol unmanaged and select br-3f50… then you only have to assign a new firewall zone, and then edit the firewall zone to forward to wan.
Also its wise to check the checkbox keep up bridge/bring up empty bridge in your screenshot.
this veth device gets automaticly generated and hooks into the bridge, but docker is unaware that the bridge can also go down and fails adding it, this solves the issue because docker expects it to be forever up.
If all is right configurated and no internet, you may need to reboot the full device.
I created a docker network called lsio. Now it’s ID is f070ecbfda20.
# docker network ls
NETWORK ID NAME DRIVER SCOPE
8a79f496469d bridge bridge local
e716af459012 host host local
f070ecbfda20 lsio bridge local
86a23bc102b6 none null local
Your setup is good, but your firewall zone is probably not, the input rule needs to be set to accept, it is because global settings have input to reject which is fine but new zones automaticly reflect those rules.
You might need a device restart after but maybe not, for me if I play to much with the bridge there is some bug it doesn’t want to connect.
Hi, yes it is. Installation is easy. You just have to use the package manager.
Configuration of the network part without breaking security is more complicated.