Skip to content

Instantly share code, notes, and snippets.

@tomkimberlin
Forked from nmaggioni/ufw_plex.md
Last active April 27, 2022 23:34
Show Gist options
  • Save tomkimberlin/76aa7a6e17b1b1f847a8e73859e27bb0 to your computer and use it in GitHub Desktop.
Save tomkimberlin/76aa7a6e17b1b1f847a8e73859e27bb0 to your computer and use it in GitHub Desktop.
Plex Media Server UFW rule

Create a ufw application profile for plexmediaserver:

sudo nano /etc/ufw/applications.d/plexmediaserver

/etc/ufw/applications.d/plexmediaserver

[plexmediaserver]
title=Plex Media Server
description=All ports used by Plex, including DLNA
ports=32400/tcp|1900/udp|5353/udp|8324/tcp|32410/udp|32412:32414/udp|32469/tcp

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

sudo ufw app update plexmediaserver

Use it with:

sudo ufw allow plexmediaserver

Ports from: https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/

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