Setting Up Plex Remote Access with Ubuntu, OpenVPN and Kill Switch Firewall.

I set it all up on Ubuntu last night and there seemed to be a lot of confusion about how to do it.  Here's the solution.
This set up assumes that both Plex and OpenVPN runs on the same box.  You can do it on a router with some modification. 

Add this to your OpenVPN config file: (192.168.1.1 is your router gateway with port 32400 forwarded to your plex server).

route plex.tv 255.255.255.255 192.168.1.1

restart OpenVPN (If you have no kill switch firewall, plex remote access should work now.)


If you have a ufw kill switch firewall:

ufw allow from 52.214.33.245 port 32400 proto tcp

ufw allow from 34.252.160.54 port 32400 proto tcp

ufw allow from 52.30.134.235 port 32400 proto tcp

ufw allow from 54.77.197.74 port 32400 proto tcp

ufw allow from 54.171.208.164 port 32400 proto tcp

ufw allow from 52.18.158.203 port 32400 proto tcp

If/when Plex adds/removes/changes ip's for plex.tv this will stop working so you'll have to look there if it suddenly doesn't work anymore.





Tagged:
Sign In or Register to comment.