![]() ![]() I wasn't impressed though at the plex media server. So if decides to change their IP address, you just need to re-run the script. The nice thing about this config versus others I've seen, is you don't have to manage a set of plex IP addresses. I was then able to successfully see the server was registered on their site, and connect to it remotely for all my media viewing pleasure. Once this was done, I was able to go to my plex server Settings | Connect and click "Retry" to re-establish the connection. And the third line allows the machine to register/communicate with, again bypassing the VPN. ![]() The second line allows it to receive communications over port 32400 as forwarded from the router, bypassing VPN, either through UPnP or manual port forward config. The first line enables VPN for the machine. Iptables -t mangle -A PREROUTING -i br0 -s -d -j MARK -set-mark 1 ![]() Iptables -t mangle -A PREROUTING -i br0 -s -p tcp -sport 32400 -j MARK -set-mark 1 Iptables -t mangle -A PREROUTING -i br0 -s -j MARK -set-mark 0 Here are the iptables settings I have for my Plex machine (in this case a FreeBSD jail) to put the whole thing behind a VPN, with the exception of a port forward (on the router) and access to the server (for web communication to register the server I think). So I wanted to post this so others may find it. Hey, I know your question is old, but after spending a couple days failing to find a solution, I figured one out for myself. ![]()
0 Comments
Leave a Reply. |