Skip to content

Instantly share code, notes, and snippets.

@nmaggioni
Forked from andrey-str/ufw plexmediaserver app profile.md
Last active March 11, 2024 04:30
Show Gist options
  • Star 85 You must be signed in to star a gist
  • Fork 22 You must be signed in to fork a gist
  • Save nmaggioni/45dcca7695d37e6109276b1a6ad8c9c9 to your computer and use it in GitHub Desktop.
Save nmaggioni/45dcca7695d37e6109276b1a6ad8c9c9 to your computer and use it in GitHub Desktop.
Plex Media Server UFW rule

/etc/ufw/applications.d/plexmediaserver

[plexmediaserver]
title=Plex Media Server (Standard)
description=The Plex Media Server
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp

[plexmediaserver-dlna]
title=Plex Media Server (DLNA)
description=The Plex Media Server (additional DLNA capability only)
ports=1900/udp|32469/tcp

[plexmediaserver-all]
title=Plex Media Server (Standard + DLNA)
description=The Plex Media Server (with additional DLNA capability)
ports=32400/tcp|3005/tcp|5353/udp|8324/tcp|32410:32414/udp|1900/udp|32469/tcp

Once you have defined your application file tell ufw to reload the application definitions with:

ufw app update plexmediaserver

Use it with:

ufw allow plexmediaserver-all
@jonathan-dejong
Copy link

Works well for me as well :)
Remember that if you're not a root user (usually you should not be) you'll need sudo before each command.

@Baledin
Copy link

Baledin commented Jun 4, 2020

Fantastic, ty

@x-limitless-x
Copy link

Thank you!

@BNolet
Copy link

BNolet commented Apr 3, 2022

You are a gentleman and a scholar, hats off to you!

@naxels
Copy link

naxels commented Apr 24, 2022

Awesome, thanks!

@notHappyonlyDumb
Copy link

noice

@Lueton
Copy link

Lueton commented Sep 6, 2022

thanks a lot!

@rcland12
Copy link

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment