At 12:33 AM 9/6/2001 +0430, you wrote:
>My radius uses the default configuration for the location
>of detail logs:
>
>         radacctdir = ${logdir}/radacct
>         detailfile = ${radacctdir}/%{Client-IP-Address}/detail
>
>when i saw my radacctdir, surprisingly i found out that there
>are many directories there that are not my clients:
>
>[root@arian radacct]# ls
>0.176.45.64     160.100.183.11  240.81.183.11  64.175.45.64   8.175.45.64
>120.68.183.11   xxx.225.40.14   48.114.183.11  72.101.183.11
>128.113.183.11  200.104.183.11  56.63.183.11   72.175.45.64
>
>none of the above except the one starting with xxx, isn't my client.
>it seems something like a memory leak or bug. there is a details file
>in any of the above dirs that contains 1 or more radius log entiries for
>our users. the interesting point is that the entries
>in these detail files, all contain correct information about the
>nas ip address. that's becuase clients and nases are diffrent things.
>i'm using freeradius 0.2 on RH 7.1 but i had the same
>problem with 0.1 on RH 6.1.
>
>i know that a quick and dirty solution is to hard code my client's ip
>address in radius.conf. that may work for me 'cause i have just one
>client. but i dont know what to do if i decided to add more clients.
>is there any other variable that i can use instead of %{Client-IP-Address}
>in my radius.conf

Client is the server that sent you the request.  You probably want
to use NAS-IP-Address if you want the records stored based on the
originating NAS.

Surprisingly enough, this exact fact is mentioned in the config file
right where you are talking about hardcoding:

         detail {
                 #  Note that we do NOT use NAS-IP-Address here, as that
                 #  attribute MAY BE from the originating NAS, and NOT
                 #  from the proxy which actually sent us the request.
                 #  The Client-IP-Address attribute is ALWAYS the address
                 #  of the client which sent us the request.
                 #
                 detailfile = /usr/local/var/%{Client-IP-Address}/detail
                 detailperm = 0600
         }

-Chris
--
    \\\|||///  \  Chris Parker    -    Manager, Development Engineering
    \ ~   ~ /   \       WX *is* Wireless!    \   [EMAIL PROTECTED]
    | @   @ |    \   http://www.starnetwx.net \      (847) 963-0116
oOo---(_)---oOo--\------------------------------------------------------
                   \ Without C we would have 'obol', 'basi', and 'pasal'


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

Reply via email to