-
Notifications
You must be signed in to change notification settings - Fork 8.4k
IP Preserve in nginx ingress controller #233
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
Would you like to take a stab at the PR? I think https://github.com/kubernetes/ingress/blob/master/controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl may be the starting point. |
Yeah .. i had to drop the stream config and place the listen 443 proxy_protocol back in the server {} block to get this working again .. |
We have patched the nginx.tmpl for that: |
possible dup #188 |
beta.5 still have this issue (as well as beta.4) |
Can someone trigger a next beta build? Looks like this was fixed in d56d8b7 13 days ago. |
@nailgun the next version will be release after the completion of the scheduled task here https://github.com/kubernetes/ingress/projects/2 |
@aledbf thanks for information |
Trying the current master, the bug isn't fully solved:
in beta.5 it looks like this:
|
Same thing here with |
I'm getting the same thing. I'm trying to whitelist the IP range of our VPN and all I'm seeing are internal node IPs once the request comes through. Any ideas? `2017-05-22T14:21:17.902605271Z 2017/05/22 14:21:17 [error] 133#133: *47 access forbidden by rule, client: 10.240.0.4, server: my.test.com, request: "GET /favicon.ico HTTP/1.1", host: "my.test.com", referrer: "http://my.test.com/"
|
Thanks @aledbf. That solves the problem. How does it work with releases? Once all items in the |
I open a PR an someone from the google team with permissions in the gcr.io registry publish the image. This is the reason why I use my personal quay account to test the progress of the fixes/features to be included in the next release |
Thanks @aledbf. Your work is much appreciated. |
Due to the change of Port 443 streaming to nginx 127.0.0.1:442 the ip is not preserved anymore. (127.0.0.1 is returned)
Due to this change also the ingress ip-whitelist does not work anymore.
This could be fixed by proxy passing the x-forwarded-for ip and accept real-ip.
The text was updated successfully, but these errors were encountered: