Changes

Plex

919 bytes added, 11:20, 28 October 2015
How to
# iptables -A INPUT -p tcp -m multiport --dports 32400,32469 -j ACCEPT
# iptables -A INPUT -p udp -m multiport --dports 1900,32410,32412,32413,32414 -j ACCEPT
 
=== Remote access through vpn ===
==== Requirements ====
 
If you share your libraries with some friends, but want the data to go through your vpn connection, you will need two things:
* A vpn provider that allows static port forwarding
* Remote Access enabled on your [http://127.0.0.1:32400/web/index.html#!/settings/server plex server settings]
 
==== How to ====
# Go to your vpn provider settings and ask for a port. ''(We're going to assume ours gave us the port 11652)''
# Then add the following command to your boot sequence ''(rc.local for example)''
#: <code># iptables -t nat -A PREROUTING -i tun0 -p tcp --dport 11652 -j REDIRECT --to-ports 32400</code>
#: ''(We're going to assume you're using the tun0 interface for openvpn)''
# Finally, go to your plex server settings, enable advanced settings and define the custom port at 11652
 
{{Warning| Don't forget to replace the 11652 example port with yours! }}
=== Troubleshooting ===
11
edits