Module sqlippool and logs

Rafael Ganascim rganascim at gmail.com
Tue Aug 27 21:19:48 CEST 2019


Em ter, 27 de ago de 2019 às 16:02, Alan DeKok
<aland at deployingradius.com> escreveu:
>
>
>
> > On Aug 27, 2019, at 2:49 PM, Rafael Ganascim <rganascim at gmail.com> wrote:
> >
> > Em ter, 27 de ago de 2019 às 14:43, Alan DeKok
> > <aland at deployingradius.com> escreveu:
> >>
> >> On Aug 27, 2019, at 12:56 PM, Rafael Ganascim <rganascim at 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 at 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 at 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 at 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



More information about the Freeradius-Users mailing list