How to send tome clients to the same detail file
Hello, I have a running server with this configuration: detail { detailfile = ${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d detailperm = 0600 } detail auth_log { detailfile = ${radacctdir}/%{Client-IP-Address}/auth-detail-%Y%m%d detailperm = 0600 } I have activated the detail file in the accounting section and the auth_log in the authorize and are working fine. But now I want to send all the logs for requests from a group of clients (defined as a huntgroup) to the same files, and the request for all other clients as now (classified with the IP address of the client). Is there any way to redefine this files for a set of clients? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337
"Angel L. Mateo" <amateo@um.es> wrote:
But now I want to send all the logs for requests from a group of clients (defined as a huntgroup) to the same files, and the request for all other clients as now (classified with the IP address of the client). Is there any way to redefine this files for a set of clients?
Yes. Define an attribute, and set it per-client. Then use that attribute in the expansion of the detailfile. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
El mar, 07-11-2006 a las 18:29 -0500, Alan DeKok escribió:
"Angel L. Mateo" <amateo@um.es> wrote:
But now I want to send all the logs for requests from a group of clients (defined as a huntgroup) to the same files, and the request for all other clients as now (classified with the IP address of the client). Is there any way to redefine this files for a set of clients?
Yes. Define an attribute, and set it per-client. Then use that attribute in the expansion of the detailfile.
Hello, After a lot of time, I have taken up again this issue. I want a a group of radius clients (defined in the same huntgroup) to log their request (detail and auth-detail files) in the same file. So I have redefine my logs files as: detail { detailfile = ${radacctdir}/%{Huntgroup-Name:-%{Client-IP-Address}}/detail-%Y%m%d detailperm = 0600 } detail auth_log { detailfile = ${radacctdir}/%{Huntgroup-Name:-%{Client-IP-Address}}/auth-detail-%Y%m%d detailperm = 0600 } So if I have a client defined in a huntgroup, it logs to the huntgroup's log files and if not, it logs to a directory identify by its client ip address. My problem is that this is working fine for the auth-detail file, but detail file is still logging individually, without using the Huntgroup-Name variable. Any idea? -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337
Angel L. Mateo wrote:
My problem is that this is working fine for the auth-detail file, but detail file is still logging individually, without using the Huntgroup-Name variable.
Accounting requests aren't processed through the "huntgroups" file. You'll have to find another way to get the same configuration set up for accounting. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (2)
-
Alan DeKok -
Angel L. Mateo