rlm_sqlippool Question

Matthew Newton mcn at freeradius.org
Sun Apr 7 22:48:46 CEST 2019


On Sun, 2019-04-07 at 21:36 +0100, Richard J Palmer wrote:
>     if (Framed-IP-Address =~ /172\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/)
> {     
>    sqlippool
>     }
> Which seems to work and I am now only seeing the sqlippool calls
> when 
> the IP is that match...
> 
> Now my knowledge of regex is not the greatest - so I would really 
> appreciate someone here taking a quick look and saying if that looks 
> correct

Looks fine - or just

    /^172\./

To match "172." at the start.

-- 
Matthew




More information about the Freeradius-Users mailing list