# pfsense and plex

**URL:** <https://forums.plex.tv/t/pfsense-and-plex/229344>\
**Category:** General Discussions\
**Created:** [March 17, 2018, 7:12pm UTC](https://forums.plex.tv/t/pfsense-and-plex/229344 "2018-03-17T19:12:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rccypher](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rccypher](https://forums.plex.tv/u/rccypher)\
**Post date:** [March 17, 2018, 7:12pm UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/1 "2018-03-17T19:12:16Z")

</div>

I’ve been having some issues setting up PFsense and Plex.  
I have created the FW rules and Port forward rule as outlined here [https://www.linuxserver.io/2017/05/01/how-to-run-pfsense-with-pia-vpn-but-still-use-plex-remote-access/](https://www.linuxserver.io/2017/05/01/how-to-run-pfsense-with-pia-vpn-but-still-use-plex-remote-access/)

What is odd is that when I click retry on the connection in the plex remote access settings the setting turns green for just a second then flips to red again. This leads me to believe there is a clue in the plex logs. I looked, but I do not really know what I am looking for, if someone could take a look at the log data and let me know what I’m missing or what i causing the failure I would appreciate it.

Thank you,  
RcCypher

---

<div class="post-metadata">

**Author:** ![afmiller](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@afmiller](https://forums.plex.tv/u/afmiller)\
**Post date:** [March 17, 2018, 7:49pm UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/2 "2018-03-17T19:49:00Z")

</div>

> @rccypher said:  
> I’ve been having some issues setting up PFsense and Plex.  
> I have created the FW rules and Port forward rule as outlined here [How To Run Pfsense with PIA VPN, but still use Plex Remote Access... | LinuxServer.io](https://www.linuxserver.io/2017/05/01/how-to-run-pfsense-with-pia-vpn-but-still-use-plex-remote-access/)
> 
> What is odd is that when I click retry on the connection in the plex remote access settings the setting turns green for just a second then flips to red again. This leads me to believe there is a clue in the plex logs. I looked, but I do not really know what I am looking for, if someone could take a look at the log data and let me know what I’m missing or what i causing the failure I would appreciate it.
> 
> Thank you,  
> RcCypher

Reboot plex. I have the same issues, rebooting Plex fixes everytime. I’ve had to reinstall plex several times and this fixes it everytime so you wont have the issue again

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 17, 2018, 7:49pm UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/3 "2018-03-17T19:49:17Z")

</div>

[https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/](https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/)

scroll down to the bottom

Also, try a different DNS server. (Google or OpenDNS for instance)  
Many ISP-provided DNS services fail to correctly resolve the `.direct` TLD.

---

<div class="post-metadata">

**Author:** ![rccypher](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rccypher](https://forums.plex.tv/u/rccypher)\
**Post date:** [March 18, 2018, 2:14am UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/4 "2018-03-18T02:14:49Z")

</div>

The DNS server was indeed the problem. I had a seperate DNS server setup to run DNScrypt based on this guide: [https://ipredator.se/miniguide/dnscrypt/freebsd#installation](https://ipredator.se/miniguide/dnscrypt/freebsd#installation)  
Though I added the config items discussed here: [https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/](https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/)  
to the config file for that DNS server it did not resolve the problem. I suspect the upstream DNS server is to blame. Regardless I setup DNS resolver on PFsense with the advanced config item mentioned on the how to use secure server connections page. That pretty much resolved my issue.

---

<div class="post-metadata">

**Author:** ![DudleyNYC](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@DudleyNYC](https://forums.plex.tv/u/DudleyNYC)\
**Post date:** [March 27, 2018, 6:55am UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/5 "2018-03-27T06:55:41Z")

</div>

DNSCrypt is, presumably, using opendns which barfs on local redirects. Very simple fix: under DNS resolver set “System Domain Local Zone Type” to “Type Transparent” and then add a domain override that directs the domain plex.direct to use 8.8.8.8 for lookups. If you’re using DNS forwarder, switch to Resolver.

 ![](https://sea1.discourse-cdn.com/plex/uploads/default/original/3X/0/3/037c9fbce31c1cd747bf74cf314f52bc61c88ca8.png)

---

<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:** [January 8, 2020, 12:46am UTC](https://forums.plex.tv/t/pfsense-and-plex/229344/6 "2020-01-08T00:46:07Z")

</div>


