Module sqlippool and logs

Rafael Ganascim rganascim at gmail.com
Mon Aug 26 21:36:09 CEST 2019


Hello all,

I'm using freeradius 3.0.19. I have three sqlippool modules configured
and working in my radius server (for ipv4, ipv6 and ipv6pd).
For now, I want to enable the logs via linelog for the three
instances, but I'm getting messages only from the first one, even when
I declare three linelog instances.

Here is the debug:
>From IPV4 module:
(67191) Mon Aug 26 16:27:43 2019: Debug: IPV4: EXPAND Released IP
%{Framed-IP-Address} (did %{Called-Station-Id} cli
%{Calling-Station-Id} user %{User-Name})
(67191) Mon Aug 26 16:27:43 2019: Debug: IPV4:    --> Released IP
x.x.x.x (did  cli BRAS-31#914508 user xxxxx at xxxxxxxx)
(67191) Mon Aug 26 16:27:43 2019: Debug:     [IPV4] = ok
(67191) Mon Aug 26 16:27:43 2019: Debug:     if
(control:Module-Success-Message) {
(67191) Mon Aug 26 16:27:43 2019: Debug:     if
(control:Module-Success-Message)  -> TRUE
(67191) Mon Aug 26 16:27:43 2019: Debug:     if
(control:Module-Success-Message)  {
(67191) Mon Aug 26 16:27:43 2019: Debug: linelog: EXPAND %t
%{control:Module-Success-Message}
(67191) Mon Aug 26 16:27:43 2019: Debug: linelog:    --> Mon Aug 26
16:27:43 2019 Released IP 201.x.x.x (did  cli BRAS-31#914508 user
xxxxx at xxxxxxxx)
(67191) Mon Aug 26 16:27:43 2019: Debug: linelog: EXPAND
/var/log/radius/radius.log
(67191) Mon Aug 26 16:27:43 2019: Debug: linelog:    -->
/var/log/radius/radius.log
(67191) Mon Aug 26 16:27:43 2019: Debug:       [linelog] = ok
(67191) Mon Aug 26 16:27:43 2019: Debug:     } # if
(control:Module-Success-Message)  = ok

>From IPV6PD module:

(67191) Mon Aug 26 16:27:43 2019: Debug: IPV6PD: EXPAND Released
IPv6PD %{Delegated-IPv6-Prefix} (did %{Called-Station-Id} cli
%{Calling-Station-Id} user %{User-Name})
(67191) Mon Aug 26 16:27:43 2019: Debug: IPV6PD:    --> Released
IPv6PD 2804:xxxx/56 (did  cli BRAS-31#914508 user xxxxx at xxxxxxxx)
(67191) Mon Aug 26 16:27:43 2019: Debug:     [IPV6PD] = ok
(67191) Mon Aug 26 16:27:43 2019: Debug: linelogv6: EXPAND %t
%{control:Module-Success-Message}
(67191) Mon Aug 26 16:27:43 2019: Debug: linelogv6:    --> Mon Aug 26
16:27:43 2019 Released IP 201.x.x.x (did  cli BRAS-31#914508 user
xxxxx at xxxxxxxx)
(67191) Mon Aug 26 16:27:43 2019: Debug: linelogv6: EXPAND
/var/log/radius/radius.log
(67191) Mon Aug 26 16:27:43 2019: Debug: linelogv6:    -->
/var/log/radius/radius.log


The linelog config is the same for both instances:
linelog linelogv6 {
filename = ${logdir}/radius.log
escape_filenames = no
permissions = 0600
format = "%t %{control:Module-Success-Message}"
}

The module SQLIPPOOL expands correctly to the IPv6PD address, but the
linelog is only getting the data from the first IPv4 instance.

Is it possible to get the last %{control:Module-Success-Message}
instead of the first one?


Regards,

Rafael


More information about the Freeradius-Users mailing list