[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: Module sqlippool and logs
From: Rafael Ganascim <rganascim () gmail ! com>
Date: 2019-08-27 19:19:48
Message-ID: CAD4ZOMwBH6+GbbLqLfsFKMDT1Nn0ehULHa--8Kiq0eRyQD40Bw () mail ! gmail ! com
[Download RAW message or body]
Em ter, 27 de ago de 2019 Ã s 16:02, Alan DeKok
<aland@deployingradius.com> escreveu:
>
>
>
> > On Aug 27, 2019, at 2:49 PM, Rafael Ganascim <rganascim@gmail.com> wrote:
> >
> > Em ter, 27 de ago de 2019 Ã s 14:43, Alan DeKok
> > <aland@deployingradius.com> escreveu:
> >>
> >> On Aug 27, 2019, at 12:56 PM, Rafael Ganascim <rganascim@gmail.com> wrote:
> >>> I can't use this approach because I need to process both the ippool modules:
> >>>
> >>> IPV4
> >>> if (control:Module-Success-Message) {
> >>> linelog
> >>
> >> Then do:
> >>
> >> update control {
> >> &Module-Success-Message -= ANY
> >> }
> >
> > I dit it:
> > ...
> > IPV4
> > if (control:Module-Success-Message) {
> > linelog
> > update control {
> > &Module-Success-Message -= ANY
>
> Hmm... maybe "!*" then instead of "-="
Its solved. : )))
I even used the same linelog module.
Here is the result from radius.log (from a acct-stop packet):
Tue Aug 27 16:15:33 2019 Released IP 201.x.x.x (did cli
BRAS-31#MA56_JAC08 atm 15/21:8.35 user xxxx@xxxx.xxx.xx)
Tue Aug 27 16:15:33 2019 Released IPv6 2804:xxxxxx/64 (did cli
BRAS-31#MA56_JAC08 atm 15/21:8.35 user xxxx@xxxx.xxx.xx)
Tue Aug 27 16:15:33 2019 Released IPv6PD 2804:xxxxxx/56 (did cli
BRAS-31#MA56_JAC08 atm 15/21:8.35 user xxxx@xxxx.xxx.xx)
Final configuration:
IPV4
if (control:Module-Success-Message) {
linelog
update control {
&Module-Success-Message !* ANY
}
}
IPV6
if (control:Module-Success-Message) {
linelog
update control {
&Module-Success-Message !* ANY
}
}
Many thanks Alan.
>
> Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Regards,
Rafael
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic