# How to setup cloudflare

**URL:** <https://forums.plex.tv/t/how-to-setup-cloudflare/494802>\
**Category:** Remote Access\
**Tags:** server-windows\
**Created:** [November 22, 2019, 2:02pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802 "2019-11-22T14:02:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnoppa8](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/johnoppa8/32/160777_2.png) [@johnoppa8](https://forums.plex.tv/u/johnoppa8)\
**Post date:** [November 22, 2019, 2:02pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/1 "2019-11-22T14:02:48Z")

</div>

I have a new isp that has the dreadful double nat thing. I have been trying to figure out how to do the reverse proxy. So far I have downloaded nginx and bought a domain and transfered it to cloudflare. But am unsure of how to setup the dns management. Do I choose a, aaaa, cname? Where exactly do I direct it to? Thank you

---

<div class="post-metadata">

**Author:** ![Brocily](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brocily/32/160933_2.png) [@Brocily](https://forums.plex.tv/u/Brocily)\
**Post date:** [November 22, 2019, 7:17pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/2 "2019-11-22T19:17:51Z")

</div>

Hey,

If you’re hoping to use something like **[plex.domain.com](http://plex.domain.com)** you would need to choose an A record and point this to your servers IP. You’ll likely need to port forward on your local network too so all traffic goes to the nginx server. With the reverse proxy configured, your nginx server will forward this traffic to its destination.

Also if you don’t have a static IP, you’ll also need to regularly check for IP changes and update as necessary.

I’m happy to help if needed 🙂

---

<div class="post-metadata">

**Author:** ![TeknoJunky](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/teknojunky/32/165055_2.png) [@TeknoJunky](https://forums.plex.tv/u/TeknoJunky)\
**Post date:** [November 22, 2019, 7:20pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/3 "2019-11-22T19:20:04Z")

</div>

if you have double nat, it is unlikely that a domain and reverse proxy will help you, since you need to have a public ip to point your domain to.

which, if you have double nat/carrier grade NAT, then you will not have a public ip.

---

<div class="post-metadata">

**Author:** ![Brocily](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/brocily/32/160933_2.png) [@Brocily](https://forums.plex.tv/u/Brocily)\
**Post date:** [November 22, 2019, 7:51pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/4 "2019-11-22T19:51:04Z")

</div>

I missed the double nat part, I think TeknoJunky is right. It won’t work if you can’t forward port 80 on the public network.

A few suggestions on how to solve this: [https://www.reddit.com/r/PleX/comments/88of0y/help\_with\_double\_nat/](https://www.reddit.com/r/PleX/comments/88of0y/help_with_double_nat/)

---

<div class="post-metadata">

**Author:** ![guinness1771](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guinness1771](https://forums.plex.tv/u/guinness1771)\
**Post date:** [November 26, 2019, 6:41pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/5 "2019-11-26T18:41:24Z")

</div>

I have had Plex, nginx, and cloudflare setup for several months with successful remote access. I am a lifetime plexpass user. Today I went to invite a Plex user (also lifetime) to my server via desktop browser. The invite friend link under sharing is gone. I only have add managed user. I assume this has something to do with the step in cloudflare configuration where we disable “remote access”.

If you enable remote access and specify 443 as the port the IP to domain name won’t match due to cloudflare.

I am a bit stumped on how to use cloudflare and still be able to manage your users.

I am running the latest stable PMS build as of this date.

---

<div class="post-metadata">

**Author:** ![hthighway](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hthighway/32/82003_2.png) [@hthighway](https://forums.plex.tv/u/hthighway)\
**Post date:** [November 26, 2019, 6:49pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/6 "2019-11-26T18:49:48Z")

</div>

did you enter your domain name in the `Custom server access URLs:` ?  
Something like:  
`http://plex.yourdomain.com:80/,https://plex.yourdomain.com:443/`

under setting -\> network

---

<div class="post-metadata">

**Author:** ![guinness1771](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guinness1771](https://forums.plex.tv/u/guinness1771)\
**Post date:** [November 26, 2019, 6:54pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/7 "2019-11-26T18:54:42Z")

</div>

Yep:

Remote access is fine. I can reach my server via [https://plex.domain.com](https://plex.domain.com) just fine. I just can’t invite remote users. I mean, the option is gone. No way to invite them. However, the current remote users work fine.

Router is running Pfsense and providing the reverse proxy and letsencrypt.

External port 443 is proxied to internal 32400

Plex setup has the custom domain setup

[Http://plex.domain.com:80](Http://plex.domain.com:80), [https://plex.domain.com:443](https://plex.domain.com:443)

---

<div class="post-metadata">

**Author:** ![guinness1771](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@guinness1771](https://forums.plex.tv/u/guinness1771)\
**Post date:** [November 27, 2019, 1:11am UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/8 "2019-11-27T01:11:15Z")

</div>

OK, I tried the same thing from my desktop browser when I got home and all seems to be working fine. The issue must have been trying to do this with a mobile phone (even when using desktop mode).

---

<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:** [February 20, 2020, 2:02pm UTC](https://forums.plex.tv/t/how-to-setup-cloudflare/494802/9 "2020-02-20T14:02:53Z")

</div>

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