Finston Pickle
Mon Oct 21, 2019 3:56:05 pm
I recently worked on allowing plex to work in ufw by creating a plex media server file in:
/etc/ufw/applications.d
I then used the terminal to input:
ufw app update plexmediaserver (might have needed root permission)
and to use it with:
ufw allow plexmediaserver-all (one of the options to allow both Plex and DLNA to work)
For a while Plex seemed to work fine and be able to see the outside world. Then I shut down my laptop and restarted. Unfortunately Plex no longer saw the outside world. Was it a one time fix?
As suggested by Swarf, I went to https://www.reddit.com/r/PleX/comments/ ... lex_sever/ looking for inspiration.
In terminal, I tried
sudo ufw allow plexmediaserver (one of the options which allows only Plex to work)
sudo ufw reload
(and saw)
$ sudo ufw allow plexmediaserver
[sudo] password for ubuntu:
Rule added
Rule added (v6)
$ sudo ufw reload
Firewall reloaded
I looked to see what was happening in ufw by opening gufw:
$ sudo gufw gufw opens
I went to see what Plex made of this
sudo service plexmediaserver stop
sudo service plexmediaserver restart
I was about to see if my local and remote Plex apps were working again.
BUT looking through gufw rules I only saw rules for plex. Before, I'm sure I saw rules for both SAMBA and CUPS previously. Was it the reload which lost the previous rules?
What have I done? Do I need to allow both samba and cups again? - they both had entries in /etc/ufw/applications.d and fortunately they are still there.
Is the answer as simple as:
sudo ufw allow samba
and
sudo ufw allow cups
/etc/ufw/applications.d
I then used the terminal to input:
ufw app update plexmediaserver (might have needed root permission)
and to use it with:
ufw allow plexmediaserver-all (one of the options to allow both Plex and DLNA to work)
For a while Plex seemed to work fine and be able to see the outside world. Then I shut down my laptop and restarted. Unfortunately Plex no longer saw the outside world. Was it a one time fix?
As suggested by Swarf, I went to https://www.reddit.com/r/PleX/comments/ ... lex_sever/ looking for inspiration.
In terminal, I tried
sudo ufw allow plexmediaserver (one of the options which allows only Plex to work)
sudo ufw reload
(and saw)
$ sudo ufw allow plexmediaserver
[sudo] password for ubuntu:
Rule added
Rule added (v6)
$ sudo ufw reload
Firewall reloaded
I looked to see what was happening in ufw by opening gufw:
$ sudo gufw gufw opens
I went to see what Plex made of this
sudo service plexmediaserver stop
sudo service plexmediaserver restart
I was about to see if my local and remote Plex apps were working again.
BUT looking through gufw rules I only saw rules for plex. Before, I'm sure I saw rules for both SAMBA and CUPS previously. Was it the reload which lost the previous rules?
What have I done? Do I need to allow both samba and cups again? - they both had entries in /etc/ufw/applications.d and fortunately they are still there.
Is the answer as simple as:
sudo ufw allow samba
and
sudo ufw allow cups