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.

Unraid in Unifi

Featured Replies

Hello All,

I would like to know if this is possible. I am trying to run all my containers a specific VLAN in unifi. I have Eth03 set to BR03 and I place NGINX Proxy Manager and also Jellyfin. I also tried without BR03 and just straight ETH03 but nothing. I see the two containers in Unifi controller but using the url for Jellyfin it does not work. However, when I place both containers back to a custom network in Unraid, I now am able to go to the domain. When both containers are placed in either Eth03 or BR03 the port in Unraid is set to ALL instead of the ip address and the port that are setup on the container.

I have change the port forwarding in Unifi to the new IP Address given by DHCP. I also changed the forward address to the new one in NGINX Proxy Manager and nothing. Does anyone have any ideas on what I am missing. I change the ip addresses in both containers for the new one given by the Unifi controller. I also went from IPVLAN to Macvlan on the docket container settings and nothing works. Any help or guide is greatly appreciated.

Thank you.

  • Replies 70
  • Views 4.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • bmartino1
    bmartino1

    with all dockers off i need the output of ip a I need to know the vlan IDs that you have setup (so I can give you the corect comands and docker network on how to get it working... I need to know wha

  • Tucubanito07
    Tucubanito07

    The VLAN id is 60. The NPM and JellyFin are both in the same network 10.10.60.0/26.

  • Tucubanito07
    Tucubanito07

    I ran it and this is what I got.

Posted Images

  • Author

Anyone have any ideas?

I'm not sure if this is what you're asking, but i've had many containers setup like this and they'll just get an IP address on the network/VLAN and then setting up the port forwarding is just like any other IP on the network.

I solved this by enabling vlans in the network settings on the interface, and then in the docker settings i enabled the network. Then when chose the VLAN network when creating the docker container.

image.png

  • Author

I don’t recall if I tried that or not. I will check later and see if I can get it to work.

21 minutes ago, cparman said:

I solved this by enabling vlans in the network settings on the interface, and then in the docker settings i enabled the network. Then when chose the VLAN network when creating the docker container.

Exactly what I did. I created a Docker VLAN in Unraid (br0.3) and a Docker VLAN in Unifi network. I assigned docker containers an ip address manually in the range of 192.168.3.100 - 192.168.3.150. I did not use DHCP in Unraid VLAN.

For setting things up I followed this old post

image.png

  • Author

I tried it again but it did not work. Here is my configuration in Unifi for port forwarding. What I'm I missing?

image.png

This is the setting in NGINX Proxy Manager for the host domain.

image.png

NGINX Proxy manager Docker template. IP Address 10.10.60.2

image.png

JellyFin Docker Template. IP Address 10.10.60.3

image.png

Network Settings.

image.png

Docker settings.

image.png

image.png

  • Community Expert

I run unifi i run unraid, and run nginx as a docker, lxc, vm and other all are usable with unraid and vlans....
what are you trying to accomplish?

a single docker via NPM? over a vlan to xyz network...

???


I can only assume network misconfiguration and docker network misconfigurations...

nginx is in what docker network as this is possible...

Would need unraid vlan network layout and unriad network setting layout to further assist...

Since Vlan.. I would suggest making your own custom vlan docker network at br0.vlanID# and assigning nginx a custom ip via the docker network vlan creation...

not enoth info to assist. can only give generic info then...

  • Community Expert

this is becasue your npn docker netowrk is sill using vlan 1 as you passed br3 to the continer

when you need to make a docker netowrk (preferable macvlan...) and use the bridge interface and valn id nubmer

npm shoudl be using something like br3.2 whcih uses vlan 2 as example...

  • Author
2 minutes ago, bmartino1 said:

I run unifi i run unraid, and run nginx as a docker, lxc, vm and other all are usable with unraid and vlans....
what are you trying to accomplish?

a single docker via NPM? over a vlan to xyz network...

???


I can only assume network misconfiguration and docker network misconfigurations...

nginx is in what docker network as this is possible...

Would need unraid vlan network layout and unriad network setting layout to further assist...

Since Vlan.. I would suggest making your own custom vlan docker network at br0.vlanID# and assigning nginx a custom ip via the docker network vlan creation...

not enoth info to assist. can only give generic info then...

All I want to do is have my containers in a vlan in UniFi so I can control the traffic. I want nginx proxy manager so I can deploy services out on the internet. I hope that makes sense.

  • Community Expert

with all dockers off i need the output of ip a

I need to know the vlan IDs that you have setup (so I can give you the corect comands and docker network on how to get it working...

I need to know what vlan and IP npm needs to be set too

then I will glady infomr you where and what settings where broke and how to fix

  • Author
11 minutes ago, bmartino1 said:

with all dockers off i need the output of ip a

I need to know the vlan IDs that you have setup (so I can give you the corect comands and docker network on how to get it working...

I need to know what vlan and IP npm needs to be set too

then I will glady infomr you where and what settings where broke and how to fix

NPM needs to be in 10.10.60.0/26 network.

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000

link/ipip 0.0.0.0 brd 0.0.0.0

7: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000

link/ether 48:f1:7f:9f:ff:8d brd ff:ff:ff:ff:ff:ff

8: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

9: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

link/ether 70:85:c2:bf:38:08 brd ff:ff:ff:ff:ff:ff

inet 10.10.80.4/24 metric 1 scope global eth1

valid_lft forever preferred_lft forever

10: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br3 state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

11: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5e brd ff:ff:ff:ff:ff:ff

inet 10.10.50.10/28 brd 10.10.50.15 scope global dynamic noprefixroute eth2

valid_lft 85692sec preferred_lft 71247sec

12: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

13: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

inet 10.10.1.43/24 brd 10.10.1.255 scope global dynamic noprefixroute br0

valid_lft 53606sec preferred_lft 40295sec

14: vhost1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP group default qlen 500

link/ether 02:31:e6:8a:b7:d7 brd ff:ff:ff:ff:ff:ff

15: vhost2@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP group default qlen 500

link/ether 02:36:b6:e0:a5:57 brd ff:ff:ff:ff:ff:ff

17: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000

link/none

inet 10.253.0.1/32 scope global wg0

valid_lft forever preferred_lft forever

19: br-afd014fe03db: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default

link/ether 02:42:d3:3b:7b:39 brd ff:ff:ff:ff:ff:ff

inet 172.20.0.1/16 brd 172.20.255.255 scope global br-afd014fe03db

valid_lft forever preferred_lft forever

inet6 fe80::42:d3ff:fe3b:7b39/64 scope link proto kernel_ll

valid_lft forever preferred_lft forever

138: eth3.60@eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br3.60 state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

139: br3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

inet 10.10.60.11/26 brd 10.10.60.63 scope global dynamic noprefixroute br3

valid_lft 71300sec preferred_lft 59343sec

140: br3.60: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

Edited by Tucubanito07

  • Community Expert
6 minutes ago, Tucubanito07 said:

NPM needs to be in 10.10.60.0/26 network.

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000

link/ipip 0.0.0.0 brd 0.0.0.0

7: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000

link/ether 48:f1:7f:9f:ff:8d brd ff:ff:ff:ff:ff:ff

8: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

9: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

link/ether 70:85:c2:bf:38:08 brd ff:ff:ff:ff:ff:ff

inet 10.10.80.4/24 metric 1 scope global eth1

valid_lft forever preferred_lft forever

10: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br3 state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

11: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5e brd ff:ff:ff:ff:ff:ff

inet 10.10.50.10/28 brd 10.10.50.15 scope global dynamic noprefixroute eth2

valid_lft 85692sec preferred_lft 71247sec

12: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue master br0 state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

13: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether 70:85:c2:bf:38:06 brd ff:ff:ff:ff:ff:ff

inet 10.10.1.43/24 brd 10.10.1.255 scope global dynamic noprefixroute br0

valid_lft 53606sec preferred_lft 40295sec

14: vhost1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP group default qlen 500

link/ether 02:31:e6:8a:b7:d7 brd ff:ff:ff:ff:ff:ff

15: vhost2@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP group default qlen 500

link/ether 02:36:b6:e0:a5:57 brd ff:ff:ff:ff:ff:ff

17: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000

link/none

inet 10.253.0.1/32 scope global wg0

valid_lft forever preferred_lft forever

19: br-afd014fe03db: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default

link/ether 02:42:d3:3b:7b:39 brd ff:ff:ff:ff:ff:ff

inet 172.20.0.1/16 brd 172.20.255.255 scope global br-afd014fe03db

valid_lft forever preferred_lft forever

inet6 fe80::42:d3ff:fe3b:7b39/64 scope link proto kernel_ll

valid_lft forever preferred_lft forever

138: eth3.60@eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br3.60 state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

139: br3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

inet 10.10.60.11/26 brd 10.10.60.63 scope global dynamic noprefixroute br3

valid_lft 71300sec preferred_lft 59343sec

140: br3.60: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000

link/ether a0:36:9f:89:2c:5c brd ff:ff:ff:ff:ff:ff

Thank you.

example pulled form unifi settigns overview I need to knwo the vlan ID and subnet

image.png

-As you can see I use the subnet to also help inform the valn so vlan 42 will be 192.168.42.x

In your case, I need the VLAN ID that is subnet 10.10.60.0/26

ok and what ip of the docker that npm can also access to be a Reverse prxy in what vlan ID that in unraid.

as npm will need to be able to talk to xyz dockers on unraid or on lan to be a RP over the vlan.


This will dictate docker nework setting for nginx and others.

  • Author
1 minute ago, bmartino1 said:

Thank you.

example pulled form unifi settigns overview I need to knwo the vlan ID and subnet

image.png

-As you can see I use the subnet to also help inform the valn so vlan 42 will be 192.168.42.x

In your case, I need the VLAN ID that is subnet 10.10.60.0/26

ok and what ip of the docker that npm can also access to be a Reverse prxy in what vlan ID that in unraid.

as npm will need to be able to talk to xyz dockers on unraid or on lan to be a RP over the vlan.


This will dictate docker nework setting for nginx and others.

The VLAN id is 60. The NPM and JellyFin are both in the same network 10.10.60.0/26.

  • Author

Does this setting needs to be setup to Automatic?

image.png

  • Community Expert
Just now, Tucubanito07 said:

Does this setting needs to be setup to Automatic?

image.png

It can I would to allow unifi the abilty to assgin a dhcp ip over that vlan on unraid. no not techanly necessary.

What unraid version are you running?

general basic guide setup. Pre-setup instructions...

Docker settings are

Docker network > macvlan

host enable access to custom enabled

preserver custom networks enable:

image.png

Macvlan is needed for mac address latter... due to vlan intreractions.

-while posbble I ahve issues with ipvlan docker netowrk and teh use of vlan them selves...

in VM settings make sure it is not virbr0 this adjust are docker vhost0 / shim-brdge network that we will be using...

image.png

and under Unriad network setting you have enabled vlans.

image.png

Please make sure these settings are set I now have enother info to generate teh needed infor for termainl comands to make the necessary docker netowrs to use with npm

image.png

  • Author
8 minutes ago, bmartino1 said:

It can I would to allow unifi the abilty to assgin a dhcp ip over that vlan on unraid. no not techanly necessary.

What unraid version are you running?

general basic guide setup. Pre-setup instructions...

Docker settings are

Docker network > macvlan

host enable access to custom enabled

preserver custom networks enable:

image.png

Macvlan is needed for mac address latter... due to vlan intreractions.

-while posbble I ahve issues with ipvlan docker netowrk and teh use of vlan them selves...

in VM settings make sure it is not virbr0 this adjust are docker vhost0 / shim-brdge network that we will be using...

image.png

and under Unriad network setting you have enabled vlans.

image.png

Please make sure these settings are set I now have enother info to generate teh needed infor for termainl comands to make the necessary docker netowrs to use with npm

image.png

I changed the settings to MacVLAN and host access to enable and also the preserve was set to yes. Now I see that br3.60 is getting the 169.254 ip address.

image.png

  • Community Expert

OK Here is what I understand form the post overall interactions:

Goal Summary:

  • VLAN 60 is on interface br3.60 (associated with eth3.60)

  • Subnet: 10.10.60.0/26 (range: 10.10.60.1 to 10.10.60.62)

  • br3 already has IP 10.10.60.11 in that range

  • You want NPM and Jellyfin to be accessible within that VLAN (ideally NPM reverse-proxies Jellyfin)

  • Containers need to be attached to a macvlan network on br3.60

What is your current docker networks?

docker network ls

We need a vlan60 Docker macvlan network creation command:

This will make docker netwrok vlan60_macvlan

docker network create -d macvlan \

--subnet=10.10.60.0/26 \

--gateway=10.10.60.1 \

-o parent=br3.60 \

--ip-range=10.10.60.32/27 \

vlan60_macvlan

I will use compose. docker unraid teamptle is fine just somethgin to review for easy setting explinatiaons... Guide

Update/Deploy Jellyfin & NPM on this network

When setting up Jellyfin and NPM containers (via Unraid's Docker GUI or a Docker Compose stack), assign them to vlan60_macvlan and assign static IPs if desired:

Example for docker-compose.yml:

compose reference to explain network settigns latter. you will make theses edits to your pre existing docker tempatles

version: '3.8'

networks:

vlan60_macvlan:

external: true

services:

jellyfin:

image: jellyfin/jellyfin

container_name: jellyfin

networks:

vlan60_macvlan:

ipv4_address: 10.10.60.20

volumes:

- /path/to/config:/config

- /path/to/media:/media

restart: unless-stopped

npm:

image: jc21/nginx-proxy-manager:latest

container_name: npm

networks:

vlan60_macvlan:

ipv4_address: 10.10.60.21

volumes:

- /path/to/npm/data:/data

- /path/to/npm/letsencrypt:/etc/letsencrypt

ports:

- "80:80"

- "443:443"

- "81:81" # NPM UI

restart: unless-stopped

This means with the unraid setings pre set, and a docker network exist you need to edit npm docekr network and set it to macvlan60
the same for jelly fin!

*Should be good per pictures above Guide notes:

Double check and Configure NPM to Reverse Proxy Jellyfin:

Once NPM is up:

  • Go to http://10.10.60.21:81 (NPM UI)

  • Log in → “Proxy Hosts” → “Add Proxy Host”

  • Set:

    • Domain Names: (e.g. jellyfin.local or real FQDN)

    • Forward Hostname/IP: 10.10.60.20

    • Forward Port: 8096 (Jellyfin default)

    • Enable SSL (if needed)

    • Optionally add access lists or cache settings

4 double check unraid ip routes:

Make Sure Routes Are Reachable

Ensure:

  • The 10.10.60.1 gateway (your router or Unifi/managed switch?) knows how to route to these container IPs.

  • If needed, add a static route to your network so you can reach Jellyfin/NPM from outside Unraid.

secondary notes for unraid:

Optional: Disable Host-Network Conflicts

Unraid sometimes blocks communication between the host and macvlan containers. To work around this:

  1. Create a macvlan bridge instead of macvlan:

    docker network create -d macvlan \

    --subnet=10.10.60.0/26 \

    --gateway=10.10.60.1 \

    -o parent=br3.60 \

    --ip-range=10.10.60.32/27 \

    --aux-address="host=10.10.60.2" \

    vlan60_macvlan

  2. Add a "macvlan workaround" interface to Unraid

ip link add mac0 link br3.60 type macvlan mode bridge

ip addr add 10.10.60.2/26 dev mac0

ip link set mac0 up

-This lets the host (Unraid) talk to containers on the macvlan. Making or own netowrtk brdige for cross talk...

you should now see jellyfin and npm on vlan 60 of your unraid...

  • Author

Here is my docker network.

root@Tower:~# docker network ls

NETWORK ID NAME DRIVER SCOPE

ed036bb9b6d1 br0 macvlan local

6323836f8922 br3 macvlan local

065a67fd4699 bridge bridge local

4a0546e90094 eth1 macvlan local

bfa58ee9ccb5 host host local

e2b5c5604762 none null local

afd014fe03db proxy-network bridge local

Edited by Tucubanito07

  • Author

This is what I get when I tried to create the mtacvlan command from above.

root@Tower:~# docker network create -d macvlan \

--subnet=10.10.60.0/26 \

--gateway=10.10.60.1 \

-o parent=br3.60 \

--ip-range=10.10.60.32/27 \

vlan60_macvlan

Error response from daemon: failed to allocate gateway (10.10.60.1): Address already in use

  • Community Expert
Just now, Tucubanito07 said:

This is what I get when I tried to create the mtacvlan command from above.

root@Tower:~# docker network create -d macvlan \

--subnet=10.10.60.0/26 \

--gateway=10.10.60.1 \

-o parent=br3.60 \

--ip-range=10.10.60.32/27 \

vlan60_macvlan

Error response from daemon: failed to allocate gateway (10.10.60.1): Address already in use

this was expected as it already exist as br3

we need to delete the br3 docker network first

this will permenatly delete vr3 docker netwrok

docker network rm br3

  • Author
1 minute ago, bmartino1 said:

this was expected as it already exist as br3

we need to delete the br3 docker network first

this will permenatly delete vr3 docker netwrok

docker network rm br3

Okay now I got this.

root@Tower:~# docker network ls

NETWORK ID NAME DRIVER SCOPE

ed036bb9b6d1 br0 macvlan local

065a67fd4699 bridge bridge local

4a0546e90094 eth1 macvlan local

bfa58ee9ccb5 host host local

e2b5c5604762 none null local

afd014fe03db proxy-network bridge local

2c0d737c23b6 vlan60_macvlan macvlan local

  • Community Expert

perfect this tells me that you have a unraid docker network that is using and on vlan 60

Assuming you ran:

docker network create -d macvlan \

--subnet=10.10.60.0/26 \

--gateway=10.10.60.1 \

-o parent=br3.60 \

--ip-range=10.10.60.32/27 \

vlan60_macvlan

Now its on to editing the dockers tempalte to the new docker network in the drop-down list.

Please edit npm and select custom vlan60_maclan

you will need to set a ip statical here as well

you will need to set the same for jellyfin

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.