-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Explicitly Bind ipv4 and ipv6 #469
Comments
@InAnimaTe try to use the disable-ipv6 option in your configmap. |
@gianrubio Yes that's actually what I'm using at the moment, since we don't have any ipv6 infra anyway. Either way, I think the core implementation of this feature isn't yielding the result most people will actually want. |
@aledbf I reproduce the same behaviour with ipv6 enabled and with only ipv4 connections. WDYT about moving this listen options to a function into the template? |
@gianrubio @gianrubio I will change this detecting if ipv6 is enabled in the code and defining a listener per protocol version |
Version: 0.9.0-beta.3
Right now, we utilize the
ipv6only=off
option with ourlisten [::]:80
:Unfortunately, this creates a weird result for incoming connections (echo-server printout):
Note that the connection above comes from my laptop (
1.149
) which is ipv4 all the way to the node this container is running on (we don't have ipv6 enabled at all). Yet,Forwarded-For
andReal-Ip
both show:ffff:192.168.1.149
, an ipv6 representation of the source.I think the best way to mitigate this is by explicitly creating the ipv4 and ipv6 sockets:
Some relevant linkage:
https://trac.nginx.org/nginx/ticket/364
https://trac.nginx.org/nginx/ticket/455#comment:1
https://stefanchrist.eu/blog/2015_01_21/Using%20ipv6only%20in%20Nginx.xhtml
http://serverfault.com/questions/512054/globally-setting-ipv6only-off
The text was updated successfully, but these errors were encountered: