On Sat, Aug 29, 2009 at 13:16:21 +0200, Stefan Bauer wrote: > Michael, > > could you please try to set /proc/sys/net/ipv6/bindv6only to 1 and > post the output of lsof -itcp:113 without setting -a :: in > /etc/default/oidentd? > > Here on debian unstable, oident binds correctly to all available > interface if bindv6only is set. A modify of -a to :: was not required.
That works here as well:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
oidentd 29136 oident 6u IPv4 51371144 0t0 TCP *:auth (LISTEN)
oidentd 29136 oident 7u IPv6 51371145 0t0 TCP *:auth (LISTEN)
With that sysctl set to the default of 0, strace shows that binding to
IPv6 fails:
29099 socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 6
29099 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
29099 bind(6, {sa_family=AF_INET, sin_port=htons(113),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
29099 listen(6, 128) = 0
29099 socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = 7
29099 setsockopt(7, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
29099 bind(7, {sa_family=AF_INET6, sin6_port=htons(113),
inet_pton(AF_INET6, "::", &sin6_addr),
sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRINUSE
(Address already in use)
-- Michael
signature.asc
Description: Digital signature

