SAL-e Posted March 12, 2019 Share Posted March 12, 2019 Hi, I'm running containers (Docker) on all three docker networks: br0 (macvlan), host or bridge. The containers running on host or bridge docker network use port-mapping and the host's ip (10.1.1.99 for example). Those containers can 'talk' to each other and they can 'talk' to the host as expected. But the containers running on br0 (macvlan) network are isolated from the host or containers running on host or bridge networks. THIS IS NOT A BUG, BUT SECURITY FEATURE. That said in some cases you might want to able to communicate between br0 and the host. There are two possible solutions: 1. Using "Macvlan 802.1q Trunk Bridge Mode" where the host and br0 use different VLANs and routing is provided by external router and your switch should support VLANs. This is the preferred method because provides the best security controls, but setting it up correctly is not as easy. 2. Creating Macvlan interface on the host itself. This is quite simple. Here is an example: http://blog.oddbit.com/2018/03/12/using-docker-macvlan-networks/ I have not tested it under Unraid, but I don't see any reason why should not work. The 'difficult' part would be to make the new Macvlan host interface and routing persistent. My questions are: 1. Is it possible to create persistent Macvlan interface for Unraid host? 2. Are there other Unraid users interested in 'feature' like this? (build-in, plug-in or user-script?) Thank you, SAL-e PS. Currently running Unraid 6.6.7. 1 Quote Link to comment
hobbyistlobbyist Posted March 12, 2019 Share Posted March 12, 2019 Very much interested in this ability. mprasil's Bitwarden container, for example, requires both a reverse proxy and to be on the bridge network, yet my letsencrypt container and all others need to be on br0. I've been trying to use my 2nd NIC as a workaround, so far unsuccessfully. Quote Link to comment
maciekish Posted February 21, 2020 Share Posted February 21, 2020 Any news on this please? I need it also. Quote Link to comment
Magicmissle Posted February 22, 2020 Share Posted February 22, 2020 This should be taken care of within the rules try this maybe? https://www.reddit.com/r/unRAID/comments/83ngly/docker_container_network_setting/ Quote Link to comment
bonienl Posted February 22, 2020 Share Posted February 22, 2020 On 2/21/2020 at 2:21 PM, maciekish said: Any news on this please? I need it also. Available in Unraid 6.8.2 Quote Link to comment
maciekish Posted February 22, 2020 Share Posted February 22, 2020 I can confirm the new setting to allow custom networks to communicate with host fixes the issue. Quote Link to comment
Moose_Flunky Posted April 2, 2020 Share Posted April 2, 2020 On 2/22/2020 at 7:41 AM, maciekish said: I can confirm the new setting to allow custom networks to communicate with host fixes the issue. Can someone please tell me where this new setting is in Unraid 6.8.2? I appear to be missing a step (or several) in having br0 communicate to bridge and host Quote Link to comment
tjb_altf4 Posted April 2, 2020 Share Posted April 2, 2020 7 minutes ago, Moose_Flunky said: Can someone please tell me where this new setting is in Unraid 6.8.2? I appear to be missing a step (or several) in having br0 communicate to bridge and host Settings > Docker Docker service must be stopped to make changes, Advanced View toggle (top right) must be enabled for setting to be visible. 3 Quote Link to comment
Moose_Flunky Posted April 2, 2020 Share Posted April 2, 2020 18 hours ago, tjb_altf4 said: Settings > Docker Docker service must be stopped to make changes, Advanced View toggle (top right) must be enabled for setting to be visible. Thank you! Worked like a charm! 1 Quote Link to comment
NeoMatrixJR Posted October 14, 2022 Share Posted October 14, 2022 On 2/22/2020 at 7:52 AM, Magicmissle said: This should be taken care of within the rules try this maybe? https://www.reddit.com/r/unRAID/comments/83ngly/docker_container_network_setting/ The content of this is deleted...does anyone know what setting to change? I also cannot get a br0 container to talk to a bridge container. I had it working and now can't remember the fix Quote Link to comment
SAL-e Posted October 15, 2022 Author Share Posted October 15, 2022 On 10/13/2022 at 6:34 PM, NeoMatrixJR said: The content of this is deleted...does anyone know what setting to change? I also cannot get a br0 container to talk to a bridge container. I had it working and now can't remember the fix Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.