Skip to content

Instantly share code, notes, and snippets.

@bastos
Forked from nmaggioni/ufw_plex.md
Created April 18, 2022 15:20
Show Gist options
  • Select an option

  • Save bastos/00cc25f0e48361b81f74ab7cc8278eef to your computer and use it in GitHub Desktop.

Select an option

Save bastos/00cc25f0e48361b81f74ab7cc8278eef 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