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.

The Plex / OpnSense / Docker forwarding nightmare

Featured Replies

Hi guys,

I've been banging my head against the walls trying to figure out what the hell might be making Plex's remote access unhappy.

I have a static IP, and normally my ISP shouldn't be doing CGNAT, but for some reason, things aren't working.

Now that I figured out that by default, Wireguard on UnRaid means "everyone gets wireguard", Plex's connection checker is correctly reporting my external IP.

canyouseeme.org reports the port as closed.

The OpnSense rule is copied from another sever I have running on another port. That one reports as open, no problem, which would point to the issue being with UnRaid. I've checked the rules multiple times. I've edited the source rule with the IP to the UnRaid server, and swapped ports around inside of Plex: port closed from canyouseeme.

Here's iptables on the UnRaid box:

root@Tower:~# iptables -L -n

Chain INPUT (policy ACCEPT)

target prot opt source destination

Chain FORWARD (policy ACCEPT)

target prot opt source destination

DOCKER-USER all -- 0.0.0.0/0 0.0.0.0/0

DOCKER-ISOLATION-STAGE-1 all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED

DOCKER all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED

DOCKER all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

ACCEPT all -- 0.0.0.0/0 0.0.0.0/0

WIREGUARD all -- 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

Chain DOCKER (2 references)

target prot opt source destination

ACCEPT tcp -- 0.0.0.0/0 172.31.200.2 tcp dpt:8989

ACCEPT tcp -- 0.0.0.0/0 172.31.200.2 tcp dpt:9897

ACCEPT tcp -- 0.0.0.0/0 172.17.0.2 tcp dpt:9696

ACCEPT tcp -- 0.0.0.0/0 172.17.0.3 tcp dpt:5055

ACCEPT tcp -- 0.0.0.0/0 172.31.200.3 tcp dpt:6789

ACCEPT tcp -- 0.0.0.0/0 172.31.200.4 tcp dpt:7878

ACCEPT tcp -- 0.0.0.0/0 172.31.200.5 tcp dpt:8989

Chain DOCKER-ISOLATION-STAGE-1 (1 references)

target prot opt source destination

DOCKER-ISOLATION-STAGE-2 all -- 0.0.0.0/0 0.0.0.0/0

DOCKER-ISOLATION-STAGE-2 all -- 0.0.0.0/0 0.0.0.0/0

RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain DOCKER-ISOLATION-STAGE-2 (2 references)

target prot opt source destination

DROP all -- 0.0.0.0/0 0.0.0.0/0

DROP all -- 0.0.0.0/0 0.0.0.0/0

RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain DOCKER-USER (1 references)

target prot opt source destination

RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain WIREGUARD (1 references)

target prot opt source destination

Here's ss on the UnRaid box:

root@Tower:~# ss -tuln | grep 32400

tcp LISTEN 0 1024 0.0.0.0:32400 0.0.0.0:*

Here's from inside the docker:

# awk 'NR>1 && $4=="0A" && toupper(substr($2,10,4))=="7E90"{print "LISTEN on port 32400 (row:",$0,")"}' /proc/net/tcp

LISTEN on port 32400 (row: 19: 00000000:7E90 00000000:0000 0A 00000000:00000000 00:00000000 00000000 99 0 27804597 1 000000001f001745 100 0 0 10 0 )

Anyone got a clue as to what I might be missing here ?

Edited by batscarfacehypernova

What docker network is the plex container assign to? You should use host or macvlan/ipvlan.

  • Author
20 minutes ago, pkoci said:

What docker network is the plex container assign to? You should use host or macvlan/ipvlan.

It's assigned to host. I've tried the others as well, as well as assigning it directly to the network interface and giving it its own ip.

  • 1 month later...

I have this same issue and it's something with OPNsense. My OPNsense router cannot ping any container when it's using br0/ipvlan, but when set to host, it can. Any physical box on my network can ping the containers. It's something in OPNsense and I can't figure it out.

Did you ever solve this? The only thing that is solving it right now for me is to use host but I'd rather use br0/ipvlan.

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.