Am Samstag, 13. Februar 2010 11:55:42 schrieben Sie: > On Sat, Feb 13, 2010 at 12:11:58AM +0100, Michael Schwartzkopff wrote: > > Am Freitag, 12. Februar 2010 23:57:05 schrieben Sie: > > > On Fri, Feb 12, 2010 at 10:02:55PM +0100, Michael Schwartzkopff wrote: > > > > Package: freeradius > > > > Version: 2.1.8+dfsg-1 > > > > Severity: important > > > > > > > > Executing radtest <user> <pass> localhost 1 testing123 > > > > > > > > gives the error: > > > > > > > > radclient: socket: cannot initialize udpfromto: Function not > > > > implemented > > > > > > > > this seems to be a IPv6 related issue sind radcleint apparently uses > > > > ::1 instead of 127.0.0.1 > > > > > > > > For more details see: > > > > https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/430732 > > > > > > Hm, I saw a similar report on the freeradius-users list recently... > > > When you do 'ping localhost', what comes up, the IPv6 address or the > > > IPv4 one? > > > > ping ONLY uses IPv4 DNS, ping6 is the tool using IPv6. So no problems > > pinging localhost. > > > > radclient first looks for the IPv6 address and only after that for IPv4. > > OK, let me rephrase. Does 'localhost' ever *resolve* into an IPv6 address? > What does 'ping6 localhost' produce?
1) "Ever": Yes. See /etc/hosts: 127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback 2) # ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.028 ms tcpdump -n -i lo gives: 12:11:15.744618 IP 127.0.0.1 > 127.0.0.1: ICMP echo request, id 51743, seq 1, length 64 12:11:15.744634 IP 127.0.0.1 > 127.0.0.1: ICMP echo reply, id 51743, seq 1, length 64 3) # ping6 -c1 localhost PING localhost(localhost) 56 data bytes 64 bytes from localhost: icmp_seq=1 ttl=64 time=0.043 ms and the tcpdump: 12:11:54.298640 IP6 ::1 > ::1: ICMP6, echo request, seq 1, length 64 12:11:54.298662 IP6 ::1 > ::1: ICMP6, echo reply, seq 1, length 64 4) 127.0.0.1 seems to work. See: # radtest user password 127.0.0.1 1 testing123 Sending Access-Request of id 129 to 127.0.0.1 port 1812 User-Name = "user" User-Password = "password" NAS-IP-Address = 10.0.0.4 NAS-Port = 1 rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=129, length=20 5) ::1 throws the error: # radtest misch misch ::1 1 testing123 radclient: socket: cannot initialize udpfromto: Function not implemented 6) localhost is resolved into ::1 (!) # radtest misch misch localhost 1 testing123 radclient: socket: cannot initialize udpfromto: Function not implemented 7) If I comment ::1 out in the /etc/hosts everything works again: # radtest misch misch localhost 1 testing123 Sending Access-Request of id 210 to 127.0.0.1 port 1812 User-Name = "misch" User-Password = "misch" NAS-IP-Address = 10.0.0.4 NAS-Port = 1 rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=210, length=20 I hope this clarifies the problem. -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: mi...@multinet.de web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org