Allowing a port for Plex with Wireguard VPN

Hi all, I am trying to setup my openwrt router to allow remote access for my Plex server when I am not home.

I have a port forward setup under the firewall (using port 32400 and the correct IP address for my synology NAS).

This setup used to work and I had remote access, but now all my traffic goes through a Surfshark wireguard connection (I live in Romania and VPN server is UK if that is relevant) and remote access stopped working. I believe I need to do something to exclude port 32400 from the VPN?

I am leaving for Christmas break soon and would like remote access to work if possible so trying to do this but not sure what I need to do next to get it working. thanks!

either exclude the port, but I'm not sure WG allows this, try to reroute the port in the firewall or use PBR.

2 Likes

To elaborate on what @frollic stated you can use PBR.

PBR has a paragraph about plex

3 Likes

In addition to what @frollic and @egc said -- for some reason with the recent PMS versions I couldn't make it work with the firewall redirect like it used to, I've had to install miniupnpd and restrict it to just allowing Plex to open the port.

1 Like

thanks for the replies! so I installed PBR and set up policies for the port, and now Plex is showing remote access is fully accessible outside your network, however when I go to the Plex app on a device not on the network, the NAS Movies, etc are all greyed out, so I'm assuming this is now a Plex issue I need to fix not an Openwrt.

For the domain-based policies (plex.tv, plexapp.com, etc) to work, you need dnsmasq-full. If you've installed that (and properly set resolver_set to either dnsmasq.ipset or dnsmasq.nftset), you've done all you can on the OpenWrt side.

For the remote client, try killing an app/rebooting the client to make sure it picks up your newly accessible PMS. But otherwise, yeah, you may want to post on plex forums for support.

oh I didn't know that thanks so much, I just got DNSmasq uninstalled and installed full. What would I need to do next? I'm assuming that's the problem

My previous message has instructions. For more details there's README.