Plex server + Wireguard + Remote access

Hi,

I have my Plex Media Server setup on my Intel NUC (Ubuntu). The NUC is directly connected to my Wireguard server (remote VPS). My main router is an UDM-PRO. I’m having issues with the remote access : Not available outside your network.

If I disable the remote access and reenable it it works for like 10 secs all green and then it shows again Not available outside your network.

I tried adding these lines on the Wireguard server conf file with no luck:

PostUp = iptables -A FORWARD -i eth0 -o wg0 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 32400 -j DNAT --to-destination 192.168.1.179:32400;iptables -t nat -A POSTROUTING -o wg0 -p tcp --dport 32400 -d 192.168.1.179 -j SNAT --to-source 10.66.66.2

PostDown = iptables -D FORWARD -i eth0 -o wg0 -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 32400 -j DNAT --to-destination 192.168.1.179:32400;iptables -t nat -D POSTROUTING -o wg0 -p tcp --dport 32400 -d 192.168.1.179 -j SNAT --to-source 10.66.66.2

Is there a way to port forward via Wireguard ? or maybe via the UDM-PRO a firewall rule?

Thank you for anything you can do to help.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.