Skip to content

Instantly share code, notes, and snippets.

@andrey-str
Last active December 18, 2020 22:57
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save andrey-str/990b27d06e2f0a43ae71 to your computer and use it in GitHub Desktop.
Save andrey-str/990b27d06e2f0a43ae71 to your computer and use it in GitHub Desktop.
Plex Media Server UFW rule
[plexmediaserver]
title=Plex Media Server
description=The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple
ports=32400/tcp|1900/udp|32469/udp|5353/udp

Once you have defined your application file, put it in /etc/ufw/applications.d, then tell ufw to reload the application definitions with

ufw app update plexmediaserver
ufw app info plexmediaserver

Use it with something like:

ufw allow from 192.168.1.10 to any app plexmediaserver
ufw allow plexmediaserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment