Your message dated Mon, 6 Jun 2011 07:21:56 +0200
with message-id <[email protected]>
and subject line Samba seems to set IPV6_V6ONLY since 3.6.0pre1
has caused the Debian Bug report #562644,
regarding samba: Doesn't bind to IPv4
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
562644: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562644
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: samba
Version: 2:3.4.7~dfsg-1
Severity: serious
Justification: IPv4 is kinda required
Hi,
Samba binds only to IPv6 and not to IPv4. I think this breaks stuff.
Greetings,
Olaf
$ sudo netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1284/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
1544/exim4
tcp 0 0 0.0.0.0:44738 0.0.0.0:* LISTEN
785/rpc.statd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
1197/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
774/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
1051/lighttpd
tcp6 0 0 :::22 :::* LISTEN
1284/sshd
tcp6 0 0 ::1:25 :::* LISTEN
1544/exim4
tcp6 0 0 :::445 :::* LISTEN
942/smbd
tcp6 0 0 :::139 :::* LISTEN
942/smbd
tcp6 0 0 :::80 :::* LISTEN
1051/lighttpd
udp 0 0 0.0.0.0:111 0.0.0.0:*
774/portmap
udp 0 0 0.0.0.0:44793 0.0.0.0:*
785/rpc.statd
udp 0 0 0.0.0.0:961 0.0.0.0:*
785/rpc.statd
udp 0 0 0.0.0.0:68 0.0.0.0:*
1005/dhclient3
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages samba depends on:
ii adduser 3.112 add and remove users and groups
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii libacl1 2.2.49-2 Access control list shared library
ii libattr1 1:2.4.44-1 Extended attribute shared library
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libcap2 1:2.17-2 support for getting/setting POSIX.
ii libcomerr2 1.41.10-1 common error description library
ii libcups2 1.4.2-4 Common UNIX Printing System(tm) -
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries - k
ii libk5crypto3 1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries - C
ii libkrb5-3 1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries
ii libldap-2.4-2 2.4.17-2.1 OpenLDAP libraries
ii libpam-modules 1.1.1-2 Pluggable Authentication Modules f
ii libpam-runtime 1.1.1-2 Runtime support for the PAM librar
ii libpam0g 1.1.1-2 Pluggable Authentication Modules l
ii libpopt0 1.15-1 lib for parsing cmdline parameters
ii libtalloc2 2.0.1-1 hierarchical pool based memory all
ii libwbclient0 2:3.4.7~dfsg-1 Samba winbind client library
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii procps 1:3.2.8-8 /proc file system utilities
ii samba-common 2:3.4.7~dfsg-1 common files used by both the Samb
ii update-inetd 4.36 inetd configuration file updater
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages samba recommends:
ii logrotate 3.7.8-4 Log rotation utility
Versions of packages samba suggests:
pn ctdb <none> (no description available)
pn ldb-tools <none> (no description available)
pn openbsd-inetd | inet-superser <none> (no description available)
pn smbldap-tools <none> (no description available)
-- debconf information:
samba/run_mode: daemons
samba/generate_smbpasswd: true
--- End Message ---
--- Begin Message ---
Version: 2:3.6.0~pre1-1
In 3.6.0pre1 util_sock.c:
#ifdef HAVE_IPV6
/*
* As IPV6_V6ONLY is the default on some systems,
* we better try to be consistent and always use it.
*
* This also avoids using IPv4 via AF_INET6 sockets
* and makes sure %I never resolves to a '::ffff:192.168.0.1'
* string.
*/
if (sock.ss_family == AF_INET6) {
int val = 1;
int ret;
ret = setsockopt(res, IPPROTO_IPV6, IPV6_V6ONLY,
(const void *)&val, sizeof(val));
Relevant commit log:
commit a3a38ee90ab4ab2be68ac71d9c581daa6b9ee189
Author: Stefan Metzmacher <[email protected]>
Date: Sat Apr 23 11:29:51 2011 +0200
s3:lib/util_sock: listen on IPv6 addresses with IPV6_ONLY (bug #7383)
This avoids getting IPv4 addresses as mapped IPv6 addresses
(e.g. ::ffff:192.168.0.1).
Before the bahavior was inconsistent between operating system
and distributions. Some system have IPV6_ONLY as default.
Now we consistently get AF_INET for IPv4 addresses and AF_INET6
for IPv6 addresses.
It also makes it possible to listen only on IPv6 now
as "::" doesn't imply "0.0.0.0" anymore. Which also
avoids confusing log messages that we were not able to
bind to "0.0.0.0".
metze
So, this is fixed in 3.6.* releases (currently in experimental).
--
signature.asc
Description: Digital signature
--- End Message ---