Mervyn Jack <[EMAIL PROTECTED]> wrote:
> Once or twice a day we are getting an accounting directory created named
> as a hostname of one of our dial-up IP addresses, not a hostname of a
> valid Client ip address.

  Hmm.. that doesn't sound correct.

> The detail file only has one entry, the NAS-ip address (name) is
> correct, the dial-up IP address is correct, but the Client-IP-Address
> (name) is completely wrong, and is one of our other dial-up hostnames.

  Look through the code which adds the Client-IP-Address.  It's in
src/modules/rlm_preprocess/rlm_preprocess.c

  It adds the Client-IP-Address based on request->packet->src_ipaddr,
which in turn is created when the packet is received in
src/lib/radius.c

  The source IP is the address returned by the 'recvfrom' call.  If
that address isn't correct, blame your OS.

> The same linux box runs our secondary DNS server, so you wouldn't think
> it would get it wrong.
> 
> I tried enable the writing of detail.auth, but the -A option does not
> work for freeradius.

  No.  The command-line parameters are deprecated, and shouldn't be
used.  Use the 'radiusd.conf' file instead.

> If there is a quick fix for this I will wait, otherwise I will have
> to turn off hostname lookup and see if we get any directories
> created with invalid ip addresses.

  That's about all you can do right now.  Until there is a bug
verified in the server, there is no way to fix it.

  Alan DeKok.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to