Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Allow containers on br0 to comunicate with the host

Featured Replies

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.

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.

  • 11 months later...

Any news on this please? I need it also. 

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

I can confirm the new setting to allow custom networks to communicate with host fixes the issue. 

  • 1 month later...
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

  • Community Expert
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.

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!

  • 2 years later...
  • Author
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 :(

 

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.