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.

How to assign a docker to a VLAN

Featured Replies

I’m in the early stages of setting up a security camera network in my home with frigate docker running on unRAID and 3 or 4 IP cameras. Planning to setup a camera VLAN on my pfsense hardware just for the cameras (blocked from WAN).

 

Would like to also have the frigate docker running on that same VLAN to limit traffic through the firewall. My unRAID server has 2 10/100 ports that aren’t being used currently. Is it possible to configure one of these ports in unRAID so that only the frigate docker is using that port which would be connected to the camera VLAN?

Edited by wgstarks

  • Author

I have found lots of how-tos for setting all dockers to a custom network but no info for setting a single docker to a vlan. The lack of information makes me believe that what I want isn’t possible for some reason???

  • wgstarks changed the title to How to assign a docker to a VLAN
  • Author

With a lot of help from an unraid user on reddit I was able to figure this out and am posting here for anyone else tryin to do this.

 

Prerequisites-

Router and network switches must support VLANs. You will need to research the configuration of these for your particular brand.

Docker service and VM Manager must both be disabled in settings (set enabled to "No").

 

In Settings>Network Settings set Enable VLANs to "Yes" for your desired ethernet port (eth1 in the pic) and click "Apply". This will add several new settings. Enter your desired VLAN number, set Network protocol (optional) and set address assignment(s) (optional). Click "Apply" once again.

 

1349865611_ScreenShot2022-01-21at8_32_27PM.thumb.png.95281868982bc6f31f9fec20bdffcc7c.png

 

In Settings>Docker enable Advanced View. Check the box next to the new network you have just added (eth1 in the pic) and enter the proper subnet and CIDR. Gateway will be the address of your router. Once you have finished, set Docker Enable to "Yes" and click "Apply"

 

1426775599_ScreenShot2022-01-21at8_31_56PM.thumb.png.c630b089625efaa27a2caea8908e90a3.png

 

Finally, in the configuration settings for your docker container set Network Type to your newly added custom network (Custom:eth1 in the pic) and click "Apply".

 

53787474_ScreenShot2022-01-21at8_38_02PM.thumb.png.94913866a3918dfa5becaf1d102691b5.png

 

 

 

Note: I am not an expert on networking by a long shot. It took me quite a lot of digging through various forums to piece this together. Some of it may be wrong. If anyone sees any errors please let me know and I'll make the appropriate edits.

 

 

 

Screen Shot 2022-01-21 at 8.32.27 PM.png

50 minutes ago, wgstarks said:

I was able to figure this out and am posting here for anyone else tryin to do this.

And there is also this guide from Bonienl which has been around for a while.  I followed it to set up a Docker VLAN in version 6.7 or 6.8 of unRAID.  This one is a bit more comprehensive but may be too complex depending on what you are trying to accomplish.

 

Just another point of reference in addition to @wgstarks guide.

  • 2 years later...

Whelp, maybe 2 years later, but still wanted to say thank you, this was super useful :)

  • 1 year later...

  

Checking in from 2025, thank you @wgstarks for answering your own question as a follow-up ❤️ 

  • 1 year later...

Greetings from 2026, thank you @wgstarks ! Your post helped me the most!

For anyone finding this, also make sure to disable IP Address Assignment for the VLAN and set the Docker Custom Network Type to ipvlan.

Edited by Bastian

  • Author
21 minutes ago, Bastian said:

Greetings from 2026, thank you @wgstarks ! Your post helped me the most!

For anyone finding this, also make sure to disable IP Address Assignment for the VLAN and set the Docker Custom Network Type to ipvlan.

That’s not supposed to be an issue anymore according to LT but I recently had a bunch of unexplained (nothing in the logs) system freezes that totally disappeared after changing MACVLAN to IPVLAN so I would have to agree with you. It’s possible that whatever is causing this issue may be hardware dependent I suppose.

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.