Matching a value within an IP subnet

Alan DeKok aland at deployingradius.com
Mon Oct 18 14:51:25 CEST 2010


Brian Candler wrote:
> DEFAULT		NAS-IP-Address =~ 192.0.2.0/27, NAS-Group := "ADSL-BRAS"
> 
> I've had a look at paircmp() in src/lib/valuepair.c and can't see any logic
> which might do this.

  Nope.  Write a regex to do the matching.  The above string after "=~"
is *not* a regex.

  Alan DeKok.



More information about the Freeradius-Users mailing list