On Tue, Jan 21, 2003 at 05:03:30AM -0500, Alan DeKok wrote:
> Nils =?ISO-8859-1?Q?R=F8nhovde?= <[EMAIL PROTECTED]> wrote:
> > If I have a group of NAS'es in the address-range 10.1.1.0-32, how
> > should I express this in a single statement i the huntgroups file. My
> > best idea is like this
> > 
> > test        NAS-Ip-Address =~ "^10\.1\.1\.[0-32]"
> 
>   Regular expressions are over *characters*, not *numbers*.
> 
>   Try:
> 
> test  NAS-IP-Address =~ "^10\.1\.1\.(0|1[0-9]?|2[0-9]?|3[0-2]?|[4-9])"

Looks slightly unreadable, doesn't it? :)

Alan, how about to implement a few operators on IP's?
E.g., '<<' for 'is contained within', so, in this case:
NAS-IP-Address << "10.1.1.0/27".

-- 
Fduch M. Pravking

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to