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.

Running dockers in isolated VLANs on the same NIC

Featured Replies

I've been trying for a few days now to isolate my docker containers into groups on different VLANs so that I don't have a bunch of security cameras, monitoring dockers, home automation, etc. all on my main LAN. However, but have ran into a number of problems.

  1. Dockers with br1:VLAN networks will not grab an IP address from the Pfsense DHCP server
    1. I can manually assign IPs, and would likely do so for most Dockers. However, this is a bit annoying...
  2. Dockers with br1:VLAN networks with Fixed IP addresses do not show up in Pfsense DHCP leases (though I can see the IPs traffic)
    1. This isn't a huge problem right now, but it does make managing static IP assignments more difficult.
  3. Dockers with br1:VLAN networks can be pinged by devices outside of Unraid, but can not ping to devices outside of unraid
    1. This isn't causing me a problem right now, but might shed some light on what exactly is going on.
  4. Dockers with br1:VLAN networks will attempt to use the br0:LAN's default gateway to resolve DNS
    1. This prevents VLAN dockers from accessing the internet

 

My setup is as follows:

  • Pfsense box with the following VLANs:
    • LAN: Access to all VLANs
    • IOT: Access to internet, but not other VLANs
    • Security: No access to internet or other VLANs
    • Guest: Access to internet, but not other VLANs
  • Unifi managed switch and AP. The port connected to Unraid is a trunk port with all tagged VLANs
  • Unraid box
    • br0: Currently configured to be LAN, with the static IP of the server for SMB/management
    • br1: No IP address, but all VLANs added with no IP address assignment

 

Thanks for any help! Let me know if there is any additional information I can provide.

 

5 hours ago, mtfinny said:

Dockers with br1:VLAN networks will not grab an IP address from the Pfsense DHCP server

  1. I can manually assign IPs, and would likely do so for most Dockers. However, this is a bit annoying...

This normal, docker won't get IP from your DHCP, in docker setting page, you can enable DHCP but the aim seems to be control IP range only to avoid conflict with your DHCP.

 

5 hours ago, mtfinny said:

Dockers with br1:VLAN networks with Fixed IP addresses do not show up in Pfsense DHCP leases (though I can see the IPs traffic)

  1. This isn't a huge problem right now, but it does make managing static IP assignments more difficult.

When docker access internet or other subnet, you will see the traffic.

 

5 hours ago, mtfinny said:

Dockers with br1:VLAN networks can be pinged by devices outside of Unraid, but can not ping to devices outside of unraid

  1. This isn't causing me a problem right now, but might shed some light on what exactly is going on.

Both way pingable, you should review VLAN network / Pfsense setting.

 

5 hours ago, mtfinny said:

Dockers with br1:VLAN networks will attempt to use the br0:LAN's default gateway to resolve DNS

  1. This prevents VLAN dockers from accessing the internet

Unraid's DNS setting is use for all interface, for docker use other DNS or not, will depends on docker itself.

  • Author
On 7/13/2022 at 9:19 PM, Vr2Io said:

Unraid's DNS setting is use for all interface, for docker use other DNS or not, will depends on docker itself.

Can you expand on this? I don't understand why a docker using br1.<VLAN x> would use the br0 gateway for DNS when in the Docker settings the br1.<VLAN x>'s gateway is defined. This is especially confusing because I configured br1 to not have an IP address or default gateway defined.

5 hours ago, mtfinny said:

Can you expand on this ?

I mean Docker app can hardcode use any public DNS instead Unraid DNS setting.

 

5 hours ago, mtfinny said:

I configured br1 to not have an IP address or default gateway defined.

Sorry, I also confuse about this.

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.