Plex over TUN adapter

Server Version#: 1.18.2.2058
Player Version#: N/A

Hello
I recently decided to setup my spare raspberry pi as a Plex server but I can’t get remote access to see my forwarded port when I run it through an OpenVPN tunnel, where I confirmed port forwarding works. but I noticed that Plex uses the wrong interface, it’s supposed to use tun0 and not eth0, and when I go in to the network tab I can’t select tun0 and the interface Plex should run on which results in Plex seeing a class c network(my home network) instead of the VPNs internal class b network, any ideas how I can make this work?
I already tried everything I could find on google but nothing worked.

If I start a listener on the PI via netcat I can get plex to recognize the connection for 2 seconds until the socket is closed.

EDIT: I should also say that running the VPN on my router is not an option atm.

Did you try routing traffic from your local subnet to the tun0 interface:

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o tun0 -j MASQUERADE

More information here https://serverfault.com/questions/571801/tunneling-traffic-from-eth0-to-tun0-openvpn-ububtu-12-04

Hello,
Thanks for the reply, I already tried that but it didn’t work either. Any other suggestions?

Does your VPN provider even support port forwarding? From what I’ve googled, many don’t and those that do require configuration settings on their end.

Interesting article here https://www.cactusvpn.com/beginners-guide-to-vpn/vpn-port-forwarding/

Yup, they do. Used them for years without any problems but here’s proof that it indeed does work:

And here’s what Plex shows:

I still wonder why Plex won’t show the tun0 adapter, is it because of it’s POINTTOPOINT attribute?

I’ve reached the limits of my slim knowledge on the subject. Hopefully a plex tech will step in and have some useful advise. Good luck to you!

Thanks for trying :slight_smile:

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