I’ve spent hours on this, thinking I was doing something wrong, but looks like I’m just missing some info.
I use the OpenVPN connection on my router (OpenWrt) and I have the routes set up in the OpenVPN config for:
route my.plexapp.com 255.255.255.255 [wan-ip]
route plexapp.com 255.255.255.255 [wan-ip]
route plex.tv 255.255.255.255 [wan-ip]
route app.plex.tv 255.255.255.255 [wan-ip]
route canyouseeme.org 255.255.255.255 [wan-ip]
I also have a static port forward set up which takes a port from my router and brings it to 32400 on my Plex Server. The static port forwarding works just fine until I start the openvpn service.
Now after I start the openvpn service, Plex is no longer “accessible outside my network”. My plex connects to the plex infrastructure correctly thru my ISP and not VPN and canyouseeme.org still sees the port open which leads me to believe that I’m missing another route – maybe check for the open port happens from a different IP/domain.
If I add the whole Amazon AWS IP range into routes (~550 entries), plex works, but I do not want:
so many extra routes in the config file
so many extra routes in the system
so many extra IP addresses which will bypass VPN
Can you guys find out from developers (or maybe you already know) the CIDR or ip address ranges, better yet – domain names which plex infrastructure checks for open ports from to make the server “accessible from outside the network”?
By trial and error I figured the below is enough:
route 52.0.0.0 255.0.0.0 [wan-ip]
route 54.0.0.0 255.0.0.0 [wan-ip]
route 50.18.0.0 255.255.0.0 [wan-ip]
Ideally I’d like to shorten the ranges. Can devs please comment?
@stangri said:
Jason, thanks for your reply. I’ve modified your DD-WRT script slightly and here’s what I ended up doing on OpenWrt:
Hope it works for you!
As a side note, and TOTALLY unrelated to the script at hand, it appears that routing netflix.com is still not ‘enough’ to utilize the service as it still complains about being behind a proxy. It would seem that netflix.com ip’s are not enough to route around the vpn, as the ‘check’ for proxies/vpn’ still complain.