I would like to request that a “WAN Networks” input be added into Network settings next to the “LAN Networks” input. The goal of having this feature would notify PMS of which network interface / subnet it is allowed to route Remote Access requests through and to stop UPnP requests being sent to all interfaces. As stated by team member sa2000: “Plex Media Server has no option for the user to specify which LAN interface is used for remote access and having more than one network interface active could lead to indeterminate outcomes” (uPNP not disabled when manually specifying public port. - #23 by sa2000). With this new setting configured (to a single network) along with a “Manually specified public port”, there should be no need for PMS to send out UPnP requests through any of the network interfaces.
That would be lovely. Plex do be a chatty app.
Would you mind elaborating the particular use case you have in mind?
Reading this linked post it seems your server has multiple network interfaces and you want UPnP to be limited to a subset of those or only use certain of those to determine your network’s public IP address?!
To elaborate, I would like for PMS to stop attempting to request UPnP connections. According to the documentation, the way to do this is to manually configure a public port, which I have done. However, this did not stop my particular configuration from attempting UPnP connections. Reading the linked post, it seems to be because the behavior of a PMS with multiple interfaces has indeterminate outcomes. My server does happen to have multiple interfaces. Here are some of the key points of my configuration:
Operating System: Ubuntu LTS 20.04
Network interfaces:
- Storage Network (10.20.30.0/24)
- WAN Network (10.10.10.0/24)
- LAN Network (192.168.1.0/24)
UFW is configured to block all traffic inbound and outbound that is not explicitly required. This leads to the Plex Media Server log files being filled with UPnP failures every ten seconds, which makes troubleshooting real issues a bit difficult. Here is an example:
NetworkServiceBrowser: Error sending out discover packet from 10.20.30.254 to 239.255.255.250: Operation not permitted
While I understand that this is a very niche case and I could just remedy the logging issue by allowing the traffic through UFW, I feel like this dovetails into a larger issue that a few more users are having with wanting to disable UPnP requests entirely from PMS. I hope this helps to illustrate the use case and issue. Please let me know if I can help clarify in any way and thank you for the prompt response.
Additionally, the syslog is only logging an entry every twenty seconds and only on the WAN interface, where the console logs are once every ten seconds on all three interfaces. Example:
<Date> plex kernel: [<timestamp>] [UFW BLOCK] IN= OUT=ens254 SRC=10.20.30.254 DST=239.255.255.250 LEN=129 TOS=0x00 PREC=0x00 TTL=1 ID=<varies> DF PROTO=UDP SPT=43697 DPT=1900 LEN=109
So, perhaps UFW is only blocking UPnP on one of the interfaces instead of all three like I initially thought.