udpfromto works for the server but not from radclient

Joe Maimon jmaimon at ttec.com
Tue Aug 11 02:11:02 CEST 2009



Alan DeKok wrote:
> Joe Maimon wrote:
>> I think its probably a misuse of library calls. It seems to work
>> properly if I put in an ip address instead of "localhost".
> 
>   That is very strange.  It looks like the udpfromto code is being
> handed invalid IP addresses when the server does DNS lookups.

Is there any compelling reason to have udpfromto in the radclient code path?

> 
>> Sorry -- It means it does not operate correctly when I have the server
>> bind to multiple addresses, such as on loopback interfaces where I am
>> using an anycast style setup, replies come back from the wrong address.
> 
>   If you put an IP address instead of "*" in the listen section, does it
> still do that?

If the server only sockets on a single address, I assume it will work 
fine, but only on that address. I need the server to have listening 
sockets on at least three addresses.

> 
>   If so, I suspect that the issue is a socket initialization thing fixed
> in 2.1.0.

I am using fairly recent git.

> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
> 
> 



More information about the Freeradius-Devel mailing list