OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: cclloyd on September 13, 2018, 12:08:13 pm

Title: Port Forwarding with Plex not working.
Post by: 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.
Title: Re: Port Forwarding with Plex not working.
Post by: Evil_Sense on September 13, 2018, 12:48:31 pm
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'
Title: Re: Port Forwarding with Plex not working.
Post by: jclendineng on September 13, 2018, 05:36:01 pm
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
Title: Re: Port Forwarding with Plex not working.
Post by: cbb09 on September 13, 2018, 06:07:40 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.
Title: Re: Port Forwarding with Plex not working.
Post by: guest15389 on September 14, 2018, 12:19:37 am
Turn off UPNP and do a manual port forward as described and you'll get working.