accounting to multiple servers

Alan DeKok aland at deployingradius.com
Thu Nov 19 20:34:31 CET 2020


On Nov 19, 2020, at 1:44 PM, Nicolás Ciuffolotti <nicolas.ciuffolotti at cotesma.com.ar> wrote:
> My copy-acct-to-home-server file:
> server copy-acct-to-home-server {
>        listen {
>                type = detail
>                filename =
> ${radacctdir}/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d

  No.

  That is the filename use by the detail module to *write* detail files.  You can't copy it to the detail file reader.

  Why?  Because the expansions %{Packet-Src-IP-Address} etc. are done when the detail file is being written.  There are no such expansions when it's being read.  Because where would that information come from?  You haven't read the detail file yet!

  Instead, read the comments in the file you edited.  Use file blobbing, i.e. wildcards:

	filename = ${radacctdir}/*/detail-*

  But generally you don't want multiple directories when using the detail file reader.  See the comments in mods-available/detail

  Configure the detail module:

	filename = ${radacctdir}/copy/detail-%Y%m%d

  And then configure the reader:

	filename = ${radacctdir}/copy/detail-*

  And it will work.

  Alan DeKok.





More information about the Freeradius-Users mailing list