# Plex on separate vlan than file server. Pfsense rules help

**URL:** <https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473>\
**Category:** pfSense/Opensense\
**Created:** [January 11, 2022, 5:21am UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473 "2022-01-11T05:21:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 5:21am UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/1 "2022-01-11T05:21:14Z")

</div>

I have my Truenas file server on (VL20) 192.168.20.x and my Plex Media Server on (VL70) 192.168.70.x. I am still learning pfsense rules and can’t seem to get Plex the proper permission to the share on VL20. If someone has a similar setup and can help with the pfsense rules, I would appreciate it? Thank you…

---

<div class="post-metadata">

**Author:** ![noja](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/noja/32/1552_2.png) [@noja](https://forums.serverbuilds.net/u/noja)\
**Post date:** [January 11, 2022, 9:34pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/2 "2022-01-11T21:34:40Z")

</div>

Probably need a bit more info first. How are you running Plex? Windows/linux/docker? How is the Plex machine trying to connect to TrueNAS? SAMBA/NFS?

While not exactly the same, I have a backup server (small synology) on one VLAN (172.16.100.0) connected to a few other servers on a second VLAN (172.16.120.0). I put a rule in pfSense on the interface of my servers to allow a single host or alias to connect to the single host or alias IP address of the backup server. Make sure this rule is above any intervlan blocking rule you might have.

The connection type is NFS for me - so on the NFS backup server, I have security set that I have to allow connections from a specific IP address first (I do it for each of my servers - maybe this is inefficient, but I don’t know a better way). Then on my main servers, I connect directly to the IP address of the backup server via the NFS share. Done.

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 10:18pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/3 "2022-01-11T22:18:28Z")

</div>

@noja Thanks for the reply. Here’s the requested information:

I am running Plex on Ubuntu Desktop 20.04. Plex machine try to connect via NFS.

---

<div class="post-metadata">

**Author:** ![JDM\_WAAAT](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jdm_waaat/32/5415_2.png) [@JDM\_WAAAT](https://forums.serverbuilds.net/u/JDM_WAAAT)\
**Post date:** [January 11, 2022, 10:20pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/4 "2022-01-11T22:20:11Z")

</div>

Can I ask… why?

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 10:25pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/5 "2022-01-11T22:25:52Z")

</div>

@JDM_WAAAT

Well, it is a hosted service that I may access outside my home. Or say I would like to share a movie or something with a friend that I give access to plex. So plex is on my DMZ vlan Isolated from my other vlans.

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 10:37pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/6 "2022-01-11T22:37:42Z")

</div>

that’s not how that works..

![Humor Boomer GIF](https://media0.giphy.com/media/2fs2I4ujlBf20/giphy.webp?cid=62fa82bc0mmku8l3q9bhau32uizio1ko1aisawbmscvpuz6l&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 10:39pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/7 "2022-01-11T22:39:17Z")

</div>

@faultline I am listening…

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 10:47pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/8 "2022-01-11T22:47:54Z")

</div>

You only need to forward the one plex port (default 32400),

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 10:51pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/9 "2022-01-11T22:51:29Z")

</div>

@faultline I have forwarded that port. It is not working. I will keep working on it and share afterwards…

---

<div class="post-metadata">

**Author:** ![JDM\_WAAAT](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jdm_waaat/32/5415_2.png) [@JDM\_WAAAT](https://forums.serverbuilds.net/u/JDM_WAAAT)\
**Post date:** [January 11, 2022, 11:00pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/10 "2022-01-11T23:00:48Z")

</div>

You are not port forwarding correctly, then. Can you share with us how you’re doing that?

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 11:01pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/11 "2022-01-11T23:01:13Z")

</div>

That’s literally all it takes. As long as it’s forwarded correctly and you’re not behind CG-NAT.

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 11:14pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/12 "2022-01-11T23:14:33Z")

</div>

@JDM_WAAAT Thank you. I may not be thinking about this correctly. When you say port forwarding, are you thinking that I am having issue accessing from the outside of my home network? In that case I would need port forwarding rule on my WAN in pfsense. I am having issues having Plex Media Server on (VL70) 192.168.70.x. accessing media files on Truenas file server on (VL20) 192.168.20.x.

---

<div class="post-metadata">

**Author:** ![JDM\_WAAAT](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jdm_waaat/32/5415_2.png) [@JDM\_WAAAT](https://forums.serverbuilds.net/u/JDM_WAAAT)\
**Post date:** [January 11, 2022, 11:26pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/13 "2022-01-11T23:26:46Z")

</div>

I don’t see what purpose that is serving aside from unnecessary complexity.

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 11:27pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/14 "2022-01-11T23:27:37Z")

</div>

Why are they on separate VLANs within your internal network?

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 11:41pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/15 "2022-01-11T23:41:53Z")

</div>

@JDM_WAAAT The easy way to do this is to throw my my plex server on vl20 and be done. I get it. I have accomplished that. However, what if for security reasons I do not want it on the same vlan. I just want plex to access an NFS share on that vlan.

My issue here is that for a device that is accessible from the outside, from a security standpoint should be isolated from your other vlans.

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 11:46pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/16 "2022-01-11T23:46:16Z")

</div>

@faultline Just from a security perspective. I know true security would be to have a dedicated NAS just for Plex on the same network.

However, doing it this way provide some security at least…

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 11:46pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/17 "2022-01-11T23:46:56Z")

</div>

You have a fundamental misunderstanding of your network and network security and/or are vastly overestimating the lateral movement of a bad actor.

Also, you don’t need to @ us for individual replies.

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 11:47pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/18 "2022-01-11T23:47:51Z")

</div>

Ok, Thank you.

---

<div class="post-metadata">

**Author:** ![faultline](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/faultline/32/5390_2.png) [@faultline](https://forums.serverbuilds.net/u/faultline)\
**Post date:** [January 11, 2022, 11:51pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/19 "2022-01-11T23:51:51Z")

</div>

Are you using strong passwords locally? Are you using key-based ssh login (no remote root login)? These are going to be the key to stopping a bad actor. On the NFS side, you can also limit it to a read-only share. Enable firewall at your NAS if you want to get really fun and only allow NFS from the plex server IP.

---

<div class="post-metadata">

**Author:** ![jcpingu](https://serverbuilds.b-cdn.net/user_avatar/forums.serverbuilds.net/jcpingu/32/5084_2.png) [@jcpingu](https://forums.serverbuilds.net/u/jcpingu)\
**Post date:** [January 11, 2022, 11:55pm UTC](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473/20 "2022-01-11T23:55:13Z")

</div>

OK cool, I will definitely ensure that I have these in place…

[Next page](https://forums.serverbuilds.net/t/plex-on-separate-vlan-than-file-server-pfsense-rules-help/11473.md?page=2)
