accounting to multiple servers
Nicolás Ciuffolotti
nicolas.ciuffolotti at cotesma.com.ar
Fri Nov 20 16:04:47 CET 2020
Hi Alan
Sorry, really embarrassed, but in debug mode I have an error:
ERROR: (0) Cannot proxy to unknown realm elektra.ctsma02.com.ar
Debug: (0) detail (/var/log/radius/radacct/copy/detail-*): No response to
request. Will retry in 30 seconds
Again
My copy-acct-to-home-server file:
server copy-acct-to-home-server {
listen {
type = detail
filename = ${radacctdir}/copy/detail-%Y%m%d
preacct {
update control {
*&Proxy-To-Realm* := "elektra.ctsma02.com.ar"
}
}
accounting {
ok
}
and proxy.conf file:
home_server elektra.ctsma02.com.ar {
type = acct
ipaddr = 192.168.9.20
port = 1813
secret = ####
}
There is something that I cannot understand well.
On Thu, Nov 19, 2020 at 4:34 PM Alan DeKok <aland at deployingradius.com>
wrote:
> 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.
>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list