You can make a app profile for PMS by putting this file in /etc/ufw/applications.d/
Then
ufw allow PlexMediaServer
ufw allow Samba
[PlexMediaServer]
title=Plex Media Server
description=This opens up PlexMediaServer for http (32400), upnp, and autodiscovery.
ports=32469/tcp,32413/udp,1900/udp,32400/tcp,32412/udp,32410/udp,32414/udp
Thanks, that helped me as well. One note: on my system the syntax was slightly different: [PlexMediaServer] title=Plex Media Server description=This opens up PlexMediaServer for http (32400), upnp, and autodiscovery. ports=32469/tcp|32413/udp|1900/udp|32400/tcp|32412/udp|32410/udp|32414/udp
@msylw said:
Thanks, that helped me as well. One note: on my system the syntax was slightly different: [PlexMediaServer] title=Plex Media Server description=This opens up PlexMediaServer for http (32400), upnp, and autodiscovery. ports=32469/tcp|32413/udp|1900/udp|32400/tcp|32412/udp|32410/udp|32414/udp
This worked for me on Ubuntu 15.10, thanks
Added the above snippet to a new file called “plexmediaserver” in /etc/ufw/applications.d/ then did “sudo ufw allow plexmediaserver” and it all seems to be working.
@msylw said:
Thanks, that helped me as well. One note: on my system the syntax was slightly different: [PlexMediaServer] title=Plex Media Server description=This opens up PlexMediaServer for http (32400), upnp, and autodiscovery. ports=32469/tcp|32413/udp|1900/udp|32400/tcp|32412/udp|32410/udp|32414/udp
I had to create the profile file using this syntax as well. Then Plex worked fine when ufw was enabled on the server. Thanks everyone.
This worked for me on Ubuntu 18.04 server. Thanks!
root@system: cat PlexMediaServer
[PlexMediaServer]
title=Plex Media Server
description=This opens up PlexMediaServer for http (32400), upnp, and autodiscovery.
ports=32469/tcp|32413/udp|1900/udp|32400/tcp|32412/udp|32410/udp|32414/udp
root@system: ufw app list
Available applications:
OpenSSH
PlexMediaServer
root@system: ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
PlexMediaServer ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
PlexMediaServer (v6) ALLOW Anywhere (v6)