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@ubuntuvm:~$ nc -vv -l ::1 8080
> Connection from 0.0.0.0 port 8080 [tcp/http-alt] accepted
> 
> asd
> lukas@ubuntuvm:~$

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


Regards,
Lukas                                     
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to