-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Cloudflare & Proxy Protocol #4731
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
Comments
@okgolove using the next annotation should solve the issue
|
@aledbf hmmm. I haven't thought about something like this. |
Correct. |
It seems it works for $remote_addr. |
That was removed in 0.26, only $remote_addr exists and is used in the whitelist functionality (#4557) |
Thank you. The config:
|
Do you need Cloudflare Enterprise or higher plan to get this working? |
@okgolove can you share more info? |
Hi @arvtiwar! |
Thank you very much |
one more question - the above config is part of which config map? |
This is ingress-nginx-controller ConfigMap. |
thanks |
@okgolove Hi how did you manage the ELB and Cloudflare traffic which is coming to ingress nginx controller.? when I enable proxy I get the client x_forward_header IP for the ELB and if I enable CF_Connecting_IP its not working as expected. I am not getting the Client source for even ELB and cloudflare |
This is already a good option: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-forwarded-headers
|
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.): no
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.): cloudflare, proxy_protocol
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature Request
NGINX Ingress controller version:
0.26.1
Kubernetes version (use
kubectl version
):1.12.10-eks
Environment:
What happened:
We like Cloudflare. And we have to use proxy protocol because we use ELB on AWS.
The problem is proxy_protocol IP equals Cloudflare proxy server's IP and this can be fixed only by changing default nginx.tmpl (example #3529 (comment)). This is a headache because nginx.tmpl is changed often.
What you expected to happen:
It would be great if I could fix this using configmap. It doesn't look as if it is a big deal, I'd like to confer about.
How to reproduce it (as minimally and precisely as possible):
Cloudflare + ELB.
Anything else we need to know:
The text was updated successfully, but these errors were encountered: