Setting different IDLE-TIMEOUTS based on IP Address

Matthew Newton mcn4 at leicester.ac.uk
Wed Apr 17 22:24:09 CEST 2013


Hi,

On Wed, Apr 17, 2013 at 08:38:36PM +0100, Matthew Newton wrote:
> On Wed, Apr 17, 2013 at 12:32:32PM -0500, John Giordano wrote:
> > So in huntgroups I have:
> > 
> > ### RADIUS HUNTGROUP TEST - jg ###
> > 
> > MSP7345   NAS-IP-Address =~ /^10\.99\.3\./
> > SNJ7000   NAS-IP-Address =~ /^10\.3\.99\./
> > LAB7000   NAS-IP-Address =~ /^192\.168\.0./
> 
> Testing it here, I'm not convinced that =~ is working in the
> huntgroups file, which slightly surprises me.

OK, this is rather inconsistent behaviour compared to unlang, but
after digging in the code, the syntax you want is this:

MSP7345   NAS-IP-Address =~ ^10\.99\.3\.
SNJ7000   NAS-IP-Address =~ ^10\.3\.99\.
LAB7000   NAS-IP-Address =~ ^192\.168\.0.

i.e. don't put the usual /'s around the regex.

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list