Skip to content

Instantly share code, notes, and snippets.

@bloodyburger
Forked from nmaggioni/ufw_plex.md
Created January 1, 2021 18:01
Show Gist options
  • Save bloodyburger/80a94b0889893664ed6541df411c8a9e to your computer and use it in GitHub Desktop.
Save bloodyburger/80a94b0889893664ed6541df411c8a9e 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment