Port Forwarding with Plex not working.

Started by cclloyd, September 13, 2018, 12:08:13 PM

Previous topic - Next topic
I'm trying to allow plex to access outside my home network, but it says it can't connect.

Plex is running in a docker container in `network_mode: host`, so no docker subnet.

I have a NAT rule :

Source port: 32400
Source IP: any
Destination port: 32400
Destination host: 10.0.1.11
Redirect target port: 32400
Redirect target IP: 10.0.1.11

But when I try to allow plex access outside my network, it fails to connect.

If I'm not wrong, the help text on "Source port" should state that you mostly don't need to set it.

Try to set it to 'any'

September 13, 2018, 05:36:01 PM #2 Last Edit: September 13, 2018, 05:40:39 PM by jclendineng
The correct format is:

Interface: WAN
TCP/IP: IPv4
Protocol: TCP
Destination: This Firewall (This is a must)
Destination Port Range: The port you are hitting from outside the network
Redirect Target IP: IP of the host within the network
Redirect Target Port: Port you are accessing on the host within your network

Set it up like this under NAT > Port Forwarding

I would highly recommend using firewall aliases, an alias for your host and an alias for the port.  Makes things much easier to read and understand down the road when you ask yourself why you needed the port forward.  And of course a good description :D

Edit: Leave everything else default, I would delete your previous rule and add one like this

Quote from: cclloyd on September 13, 2018, 12:08:13 PM
I'm trying to allow plex to access outside my home network, but it says it can't connect.

Plex is running in a docker container in `network_mode: host`, so no docker subnet.

I have a NAT rule :

Source port: 32400
Source IP: any
Destination port: 32400
Destination host: 10.0.1.11
Redirect target port: 32400
Redirect target IP: 10.0.1.11

But when I try to allow plex access outside my network, it fails to connect.

I am using the uPNP plugin in OPNsense and tell Plex to to talk to uPNP. this allows for rotating/randomized external ports.

Turn off UPNP and do a manual port forward as described and you'll get working.