Nginx 1.4 problem

Lukas Tribus luky-37 at hotmail.com
Mon May 6 18:32:19 UTC 2013


Even when explicitly setting the socket option IPV6_V6ONLY to 0
(man 7 ipv6) - and thus ignoring ´cat /proc/sys/net/ipv6/bindv6only´
this doesn't work.



> While looking into this, I found that, when given ::1, nc(1)
> explicitly listens to both ::1 and ::ffff:127.0.0.1.

The behavior here is exactly the opposite. Perhaps you saw this
with an older/buggy kernel or netcat release?

# terminal 1
> lukas at ubuntuvm:~$ nc -vv -l ::1 8080
> Connection from 0.0.0.0 port 8080 [tcp/http-alt] accepted
> 
> asd
> lukas at ubuntuvm:~$

# terminal 2
> lukas at ubuntuvm:~$ sudo netstat -tulpen | grep nc
> tcp6       0      0 ::1:8080                :::*                    LISTEN      1000       19801       9002/nc
> lukas at ubuntuvm:~$
> lukas at ubuntuvm:~$ telnet 127.0.0.1 8080
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused
> lukas at ubuntuvm:~$ telnet ::1 8080
> Trying ::1...
> Connected to ::1.
> Escape character is '^]'.
> 
> asd
> ^]
> telnet> quit
> Connection closed.
> lukas at ubuntuvm:~$


Regards,
Lukas 		 	   		  


More information about the nginx mailing list