I just tried mysql and it worksunsets "IPV6ONLY":

sysctl net.ipv6.bindv6only
net.ipv6.bindv6only = 1
grep bind /etc/mysql/my.cnf
bind-address = ::
/etc/init.d/mysql restart
netstat -tln | grep 3306
tcp6       0      0 :::3306                 :::*                    LISTEN
nc -v6zn ::1 3306
nc: ::1 3306 open
nc -v4zn 127.0.0.1 3306
nc: 127.0.0.1 3306 open

NB1: neighter net-tools netstat nor sockstat ss display the sockets BINDV6ONLY flag (i.e. there is no "tcp46" entry). NB2: mysql does contain the code to unset IPV6ONLY, see mysql-5.5-5.5.31+dfsg/sql/mysqld.cc:

#ifdef IPV6_V6ONLY
    if (a->ai_family == AF_INET6)
    {
      arg= 0;
      (void) setsockopt(ip_sock, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&arg,
                sizeof(arg));
    }
#endif

So I think this bug can be closes.

Gruss
Bernd


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to