FreeRadius + FreeBSD + ipv6

Johann Hugo jhugo at meraka.csir.co.za
Mon Dec 6 11:39:36 CET 2010





On Monday, December 06, 2010 11:58:21 am Thorsten Fischer wrote:
> Excerpts from Johann Hugo's message of Mon Dec 06 09:41:40 +0000 2010:
> > listen {
> > 
> >         type = auth
> >         #ipaddr = *
> >         ipv6addr = ::
> >         #ipv6addr = 2001:4200:7000:1:21c:c0ff:fefb:dc67
> >         port = 0
> > 
> > }
> > 
> > radius -X
> > ...
> > Listening on authentication address * port 1812
> > Listening on authentication address :: port 1812
> 
> Does it work for you if you bind both, v4 and v6 sockets to specific
> addresses? I havea a vague recollection that there might be a problem
> with that, but I cannot find a reference at the moment.
> 

It works for ipv4, but not for ipv6

IPv4:

listen {
        type = auth
        #ipaddr = *
        ipaddr = 146.64.8.17
        port = 0
}

radius -X
...
Listening on authentication address 146.64.8.17 port 1812
Listening on authentication address :: port 1812
Listening on accounting address * port 1813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on proxy address 146.64.8.17 port 1814
Ready to process requests.


IPv6:

listen {
        type = auth
        #ipaddr = *
        #ipv6addr = ::
        ipv6addr = 2001:4200:7000:1:21c:c0ff:fefb:dc67
        port = 0
}

radius -X
...
Failed binding to authentication address 2001:4200:7000:1:21c:c0ff:fefb:dc67 
port 1812: Can't assign requested address 
/usr/local/etc/raddb/radiusd.conf[31]: Error binding to port for 
2001:4200:7000:1:21c:c0ff:fefb:dc67 port 1812




More information about the Freeradius-Users mailing list