# Locking down plex

**URL:** <https://forums.plex.tv/t/locking-down-plex/628947>\
**Category:** General Discussions\
**Created:** [August 30, 2020, 11:17pm UTC](https://forums.plex.tv/t/locking-down-plex/628947 "2020-08-30T23:17:48Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:17pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/1 "2020-08-30T23:17:49Z")

</div>

Hey Everyone,

I’m super confused. I have a personal plex server behind a firewall. Originally I setup WAN access to LAN access Nat’d to the particular device that hosts plex on port 32400. This worked but today I blocked this rule and checked with family members, they could still access content. I checked things weren’t cached, logged in / out, restarted the plex server and they continue to have access. The only way to prevent access is to disable remote access in the settings.

Anyone know why it acts like this? Does any data get stored in the plex cloud? It doesn’t make sense that if I completely block people out from the firewall that they can still see content?

Edit: I forgot to mention the server has complete web access out but restricted access in.

Regards,  
Richie

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 30, 2020, 11:22pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/2 "2020-08-30T23:22:34Z")

</div>

Plex does not store any of your server data / media – that’s all on your server.  
Plex’ remote access is based on UPnP or a manual port forward – so if it’s still working that suggests your router is still allowing Plex to open that automated port mapping or you still have a manual port forward of some kind on that router of yours.

---

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:29pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/3 "2020-08-30T23:29:00Z")

</div>

Thanks Tom, you see my setup is kinda different.

Router \> Host \> Virtual Firewall \> Virtual Machine \> Plex

The Virtual Machine hosting Plex has the firewall as its default gateway.

But somehow, strangely Plex still gets through. I checked the firewall and upnp is disabled. I’m probably missing something really obvious. If you have any ideas it would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [August 30, 2020, 11:30pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/4 "2020-08-30T23:30:46Z")

</div>

> [@Risteard](#):
>
> The only way to prevent access is to disable remote access in the settings.

If you want to disable remote access to your Plex Server, then you should disable remote access in Plex. 🙂

If remote access is enabled, Plex wants a port mapped in. You can configure one manually in your router/firewall, or you can let Plex try to establish one with UPnP. Plex tries hard to establish one with UPnP.

If Plex can’t get a port, it will still try to connect using the [Plex Relay](https://support.plex.tv/articles/216766168-accessing-a-server-through-relay/). That makes an outbound connection from the Plex Server to the Plex Cloud/Mothership. It’s like a bandwidth-limited VPN.

Settings → Network → Enable Relay

> [https://support.plex.tv/articles/216766168-accessing-a-server-through-relay/](https://support.plex.tv/articles/216766168-accessing-a-server-through-relay/)

But … are you trying to allow specific access?

---

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:33pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/5 "2020-08-30T23:33:41Z")

</div>

Thanks Volts I appreciate the reply.

I would normally disable remote access from the Plex Server but I want to have control of the access from the Firewall just in case on a zero day attack on an outdated plex server for example.

If I specify a port will this over ride Plex trying to use UPnP?

I have now disabled relay as per settings above. Do you think this might fix the problem and will require the firewall to NAT a particular port to the vm?

Regards,  
Richie

---

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:39pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/6 "2020-08-30T23:39:51Z")

</div>

In Summary what I’m trying to do:

- Allow remote access within Plex
- Manage particular access from the Firewall by nat’n to a particular Plex port

In theory I could just go in and disable the Firewall rule to restrict access from the servers content instead of removing any Plex access / services from the user.

Edit: I have disable all WAN access from the firewall to the Plex VM, disabled relay in Plex. Plex server still has web access and users can still access content.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [August 30, 2020, 11:44pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/7 "2020-08-30T23:44:00Z")

</div>

If you specify a port, Plex will use that port when it makes UPnP requests. I am not aware of a setting to fully disable UPnP messages when Remote Access is enabled.

If you disable the Plex Relay, have no port mapped to Plex, and aren’t running UPnP on your network, I believe that will “isolate” Plex.

---

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:45pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/8 "2020-08-30T23:45:50Z")

</div>

Hmm Plex does say ‘Not available outside your network’ now but users still have access which is very strange.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [August 30, 2020, 11:48pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/9 "2020-08-30T23:48:34Z")

</div>

> [@Risteard](#):
>
> Edit: I have disable all WAN access from the firewall to the Plex VM, disabled relay in Plex. Plex server still has web access and users can still access content.

Prove it. 🙂

I mean that friendly and gently.

My first guess is that perhaps the Relay setting doesn’t change immediately, and a PMS server reboot might be in order.

My next long-shot guess is that existing firewall rules may not have been deleted, even if new ones are now blocked. I think that’s less likely.

If you play something from a client, what do you see in the Plex Dashboard now?

---

<div class="post-metadata">

**Author:** ![Risteard](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Risteard](https://forums.plex.tv/u/Risteard)\
**Post date:** [August 30, 2020, 11:52pm UTC](https://forums.plex.tv/t/locking-down-plex/628947/10 "2020-08-30T23:52:53Z")

</div>

Thanks Volts

Resolution:  
Disable Plex Relay, have a specific port mapped, make sure UPnP is disabled on the firewall

And the final important step that delayed me - restart the Plex server 🙂

I can now enable / disable the firewall rule nat’d to that server which restricts access. No settings need to be amended within Plex now.

Thank for your help Volts and Tom. Tested several times and it looks to be resolved.

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [August 31, 2020, 12:00am UTC](https://forums.plex.tv/t/locking-down-plex/628947/11 "2020-08-31T00:00:45Z")

</div>

Rebooting is offensive, I agree. 🙂

> **[Reset](https://xkcd.com/363/)**
>
> Clearance for this Sign: 11 Feet

---

<div class="post-metadata">

**Author:** ![jp2558](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jp2558](https://forums.plex.tv/u/jp2558)\
**Post date:** [August 31, 2020, 1:58am UTC](https://forums.plex.tv/t/locking-down-plex/628947/12 "2020-08-31T01:58:32Z")

</div>

Your family. members may be seeing cached data on their computers. But instead of blocking at the firewall, how about blocking the users instead?

---

<div class="post-metadata">

**Author:** ![xInsertx](https://avatars.discourse-cdn.com/v4/letter/x/d78d45/32.png) [@xInsertx](https://forums.plex.tv/u/xInsertx)\
**Post date:** [August 31, 2020, 2:12am UTC](https://forums.plex.tv/t/locking-down-plex/628947/13 "2020-08-31T02:12:43Z")

</div>

@ChuckPA might be worth asking the devs to add a restart is required note next to the relay tickbox in webui

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 31, 2020, 3:58am UTC](https://forums.plex.tv/t/locking-down-plex/628947/14 "2020-08-31T03:58:35Z")

</div>

Please clarify, in detail, what goes where, what it should do, and why this is needed?

( I need supporting information to write up a request for engineering so please help me out. )

---

<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:** [November 29, 2020, 3:58am UTC](https://forums.plex.tv/t/locking-down-plex/628947/15 "2020-11-29T03:58:36Z")

</div>

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