Create a ufw application profile for plexmediaserver:
sudo nano /etc/ufw/applications.d/plexmediaserver
/etc/ufw/applications.d/plexmediaserver
[plexmediaserver]
title=Plex Media Server
| ace, | |
| ant, | |
| arm, | |
| ash, | |
| axe, | |
| bad, | |
| bag, | |
| bar, | |
| bat, | |
| bed, |
| ^+p:: | |
| SendInput {Media_Play_Pause} | |
| return | |
| ^+[:: | |
| SendInput {Media_Prev} | |
| return | |
| ^+]:: | |
| SendInput {Media_Next} |
| #IfWinActive, DayZ | |
| Sendmode, Input | |
| *`:: | |
| toggle := !toggle | |
| If toggle { | |
| Send {w down} | |
| Send {lshift down} | |
| } | |
| else { |
| set ip=%1 | |
| netsh advfirewall firewall add rule name="BLOCK IP ADDRESS - %ip%" dir=in action=block remoteip=%ip% | |
| netsh advfirewall firewall add rule name="BLOCK IP ADDRESS - %ip%" dir=out action=block remoteip=%ip% |
Create a ufw application profile for plexmediaserver:
sudo nano /etc/ufw/applications.d/plexmediaserver
/etc/ufw/applications.d/plexmediaserver
[plexmediaserver]
title=Plex Media Server