# Plex over TUN adapter

**URL:** <https://forums.plex.tv/t/plex-over-tun-adapter/500615>\
**Category:** Remote Access\
**Tags:** server-linux-arm\
**Created:** [December 2, 2019, 9:11pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615 "2019-12-02T21:11:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![5e7mEHnBWUhoJYa](https://avatars.discourse-cdn.com/v4/letter/5/96bed5/32.png) [@5e7mEHnBWUhoJYa](https://forums.plex.tv/u/5e7mEHnBWUhoJYa)\
**Post date:** [December 2, 2019, 9:11pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/1 "2019-12-02T21:11:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![helphand](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/helphand/32/92259_2.png) [@helphand](https://forums.plex.tv/u/helphand)\
**Post date:** [December 3, 2019, 3:59am UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/2 "2019-12-03T03:59:05Z")

</div>

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

```auto
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](https://serverfault.com/questions/571801/tunneling-traffic-from-eth0-to-tun0-openvpn-ububtu-12-04)

---

<div class="post-metadata">

**Author:** ![5e7mEHnBWUhoJYa](https://avatars.discourse-cdn.com/v4/letter/5/96bed5/32.png) [@5e7mEHnBWUhoJYa](https://forums.plex.tv/u/5e7mEHnBWUhoJYa)\
**Post date:** [December 3, 2019, 3:28pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/3 "2019-12-03T15:28:34Z")

</div>

> [@helphand](#):
>
> iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o tun0 -j MASQUERADE

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

---

<div class="post-metadata">

**Author:** ![helphand](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/helphand/32/92259_2.png) [@helphand](https://forums.plex.tv/u/helphand)\
**Post date:** [December 3, 2019, 4:09pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/4 "2019-12-03T16:09:13Z")

</div>

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/](https://www.cactusvpn.com/beginners-guide-to-vpn/vpn-port-forwarding/)

---

<div class="post-metadata">

**Author:** ![5e7mEHnBWUhoJYa](https://avatars.discourse-cdn.com/v4/letter/5/96bed5/32.png) [@5e7mEHnBWUhoJYa](https://forums.plex.tv/u/5e7mEHnBWUhoJYa)\
**Post date:** [December 3, 2019, 4:59pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/6 "2019-12-03T16:59:24Z")

</div>

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

 ![](https://global.discourse-cdn.com/plex/original/3X/8/f/8fa9a73858fff9b813106bcfff802a0e4f479ee6.png)

And here’s what Plex shows:

 ![](https://global.discourse-cdn.com/plex/original/3X/1/9/1923d5e0a99f21e0b4bf81dcc9e4f41bc05570f4.png)

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

---

<div class="post-metadata">

**Author:** ![helphand](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/helphand/32/92259_2.png) [@helphand](https://forums.plex.tv/u/helphand)\
**Post date:** [December 3, 2019, 11:55pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/7 "2019-12-03T23:55:35Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![5e7mEHnBWUhoJYa](https://avatars.discourse-cdn.com/v4/letter/5/96bed5/32.png) [@5e7mEHnBWUhoJYa](https://forums.plex.tv/u/5e7mEHnBWUhoJYa)\
**Post date:** [December 4, 2019, 12:32pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/8 "2019-12-04T12:32:58Z")

</div>

Thanks for trying 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [March 1, 2020, 9:11pm UTC](https://forums.plex.tv/t/plex-over-tun-adapter/500615/9 "2020-03-01T21:11:50Z")

</div>

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