New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx PM not recognizing my actual IP I am connecting with, but rather a Cloudflare IP. #811
Comments
Perhaps v2.6.0 may enable client IP again. |
I'm experiencing the same issue on v2.7.2. |
Try v2.6.0 |
It works for me on v2.7.2 with adding this in the advanced section on t.ex Plex:
|
I tried this method but it only working for other services. |
Anyone can help! I have same issue. I dont know where to change it. Im new with docker. Is my first use. |
I fix it! and add this lines After I have to create on custom file |
Thank you @Allram ! That fixed the issue I was having with access lists not working when using NGINX PM v2.8.0 with a cloudflare-hosted domain. Now I am able to use my real IP with access lists, to lock down access to my own network. FYI @schevenin not sure if you saw that, may be worth a try. |
Hey, while Is there any other header? |
Checklist
Done.
What is troubling you?
Like the title states, Nginx PM isn't recognizing my actual IP I am connecting with, but rather a Cloudflare IP as shown in the logs inside proxy_hosts. When I disable the proxy on my records in Cloudflare, the access lists works as expected; it is able to read my real IP address and I am let into the website. However, when the proxy is turned on and I attempt to connect to my site with an access list that allows my IP, I still get denied access due to the fact that I was connecting through Cloudflares proxy.
This is my first time submitting an issue, so I hope I made that clear enough. I have been looking around the internet to see if other people had similar issues but I have yet to find someone in the same boat. This is about as close as I've come to find a solution: https://www.cyberciti.biz/faq/nginx-restore-real-ip-address-when-behind-a-reverse-proxy/
Is there something I am doing wrong? Thank you!
The text was updated successfully, but these errors were encountered: