FreeRadius copy-acct-to-home-server

Pizu pizpower at gmail.com
Fri Aug 13 16:11:25 CEST 2021


I did not get offended, I just asked a question and it seems I again got
misunderstood, no problem. anyway.

Seems I had to edit the mods-enabled/detail to have the below result, which
is not written in the module of copy-acct-to-home-server.

Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Polling for detail file
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Renaming
/var/log/freeradius/radacct/detail -> /var/log/freeradius/radacct/
detail.work
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Acct-Status-Type = Start
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Acct-Session-Id = "4cb0f1ed"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 User-Name = "xxxxxx"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 NAS-Identifier = "MST_FG_3300E"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Fortinet-Client-IP-Address = x.x.x.x
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Fortinet-Vdom-Name = "xxxxxxxx"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Calling-Station-Id = "x.x.x.x"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Event-Timestamp = "Aug 13 2021 16:01:28 CEST"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 NAS-IP-Address = 10.69.3.182
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Tmp-String-9 = "ai:"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Acct-Unique-Session-Id = "670031e84b71b0311bf5a9a5cdf82cdf"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Stripped-User-Name = "xxxxxxxx"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Trying to read VP from line -
 Realm = "NULL"
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Read packet from
/var/log/freeradius/radacct/detail.work
        Acct-Status-Type = Start
        Acct-Session-Id = "4cb0f1ed"
        User-Name = "xxxxxxxx"
        NAS-Identifier = "MST_FG_3300E"
        Fortinet-Client-IP-Address = x.x.x.x
        Fortinet-Vdom-Name = "xxxxxxxxx"
        Calling-Station-Id = "x.x.x.x"
        Event-Timestamp = "Aug 13 2021 17:01:28 CEST"
        NAS-IP-Address = 10.69.3.182
        Tmp-String-9 = "ai:"
        Acct-Unique-Session-Id = "670031e84b71b0311bf5a9a5cdf82cdf"
        Stripped-User-Name = "xxxxxxxxx"
        Realm = "NULL"
        Packet-Original-Timestamp = "Aug 13 2021 16:01:27 CEST"
        Acct-Delay-Time = 4294963695
        Packet-Transmit-Counter = 1
Fri Aug 13 16:01:27 2021 : Debug: (6) # Executing section preacct from file
/etc/freeradius/sites-enabled/copy-acct-to-home-server
Fri Aug 13 16:01:27 2021 : Debug: (6)   preacct {
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: calling
preprocess (rlm_preprocess)
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: returned from
preprocess (rlm_preprocess)
Fri Aug 13 16:01:27 2021 : Debug: (6)     [preprocess] = ok
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: calling
ntdomain (rlm_realm)
Fri Aug 13 16:01:27 2021 : Debug: (6) ntdomain: Request already has
destination realm set.  Ignoring
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: returned from
ntdomain (rlm_realm)
Fri Aug 13 16:01:27 2021 : Debug: (6)     [ntdomain] = noop
Fri Aug 13 16:01:27 2021 : Debug: (6)     update control {
Fri Aug 13 16:01:27 2021 : Debug: (6)       &Home-Server-Name :=
"ztnfreerad01_Copy_Acct"
Fri Aug 13 16:01:27 2021 : Debug: (6)     } # update control = noop
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: calling files
(rlm_files)
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[preacct]: returned from
files (rlm_files)
Fri Aug 13 16:01:27 2021 : Debug: (6)     [files] = noop
Fri Aug 13 16:01:27 2021 : Debug: (6)   } # preacct = ok
Fri Aug 13 16:01:27 2021 : Debug: (6) # Executing section accounting from
file /etc/freeradius/sites-enabled/copy-acct-to-home-server
Fri Aug 13 16:01:27 2021 : Debug: (6)   accounting {
Fri Aug 13 16:01:27 2021 : Debug: (6)     update control {
Fri Aug 13 16:01:27 2021 : Debug: (6)       &Home-Server-Name :=
"ztnfreerad01_Copy_Acct"
Fri Aug 13 16:01:27 2021 : Debug: (6)       Overwriting value
"ztnfreerad01_Copy_Acct" with "ztnfreerad01_Copy_Acct"
Fri Aug 13 16:01:27 2021 : Debug: (6)     } # update control = noop
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[accounting]: calling ok
(rlm_always)
Fri Aug 13 16:01:27 2021 : Debug: (6)     modsingle[accounting]: returned
from ok (rlm_always)
Fri Aug 13 16:01:27 2021 : Debug: (6)     [ok] = ok
Fri Aug 13 16:01:27 2021 : Debug: (6)   } # accounting = ok
Fri Aug 13 16:01:27 2021 : Debug: (6) detail
(/var/log/freeradius/radacct/detail): Done Accounting-Request packet.
Fri Aug 13 16:01:27 2021 : Debug: (6) detail
(/var/log/freeradius/radacct/detail): Received response for request 6.
Will read the next packet in 0 seconds
Fri Aug 13 16:01:27 2021 : Debug: (6) Finished request
Fri Aug 13 16:01:27 2021 : Debug: (6) Cleaning up request packet ID 2 with
timestamp +69
Fri Aug 13 16:01:27 2021 : Debug: Waking up in 4.9 seconds.
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Unlinking /var/log/freeradius/radacct/
detail.work
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Polling for detail file
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Detail listener state unopened
waiting 0.759758 sec
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Polling for detail file
Fri Aug 13 16:01:27 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Detail listener state unopened
waiting 1.058731 sec
Fri Aug 13 16:01:28 2021 : Debug: detail
(/var/log/freeradius/radacct/detail): Polling for detail file

So the Polling will remain unopened until there is an accounting packet.
Now in order to to see if it rely copied on the other server I need to
check on the MySQL of the home server if the details are added. correct?

Regards,

Pizu


On Fri, 13 Aug 2021 at 16:01, Alan DeKok <aland at deployingradius.com> wrote:

> On Aug 13, 2021, at 9:51 AM, Pizu <pizpower at gmail.com> wrote:
> >
> > In the debug i don't have errors just am seeing "Detail listener state
> > unopened waiting" and seeing that server is receiving accounting packets
> > and MySQL is being updated something is wrong for sure
>
>   Yes... do you see it WRITING the packets to the detail file?  If so,
> which file?
>
> > and yes I read the
> > file and i know that there is nothing written to create the file
> manually,
>
>   I have no idea what that means.
>
> > I just asked, If I knew everythingI would not need to open any ticket,
> > sorry for asking.
>
>   If you get offended when you're told to ask better questions, you will
> have a very bad time on this list.
>
>   In order to build complicated systems, you need to learn how to debug
> complicated systems.  This is a skill which takes time.
>
>   We cannot debug your systems remotely.  We cannot help you when you
> questions have essentially zero content.
>
>   The Wiki page has extensive documentation on what we need.  The wiki
> page describes what you need to do, so that we can help you.
>
>   If you're not going to follow the instructions on the Wiki page I
> posted, then it is *impossible* for us to help you.
>
>   So... either follow instructions and get it fixed, or don't follow
> instructions and don't get it fixed.
>
>   And don't complain when someone is trying to help you.  It's rude.  No
> one is telling you you need to know everything.  That's a rude thing to say.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list