Verifying framed-ip-address using unlang

Alan DeKok aland at deployingradius.com
Mon Jan 14 09:00:35 CET 2008


Pshem Kowalczyk wrote:
> Is it possible to use unlang to verify whether framed-ip-address is in
> the right range or not?

  Yes and no.  The comparisons are not typed, so everything is a string.

> We would like to use it on our wholesale proxies. Wholesale customers
> of ours are allowed to allocate IPs to their customers, but only from
> certain ranges. Will a normal comparison (> <) work with IP addresses?

  They will "work", but they won't do IP-address comparison.

  You can either do string comparisons, which will often do the right
thing, OR regular expressions, which will do the right thing if you
write them carefully.

  Alan DeKok.



More information about the Freeradius-Users mailing list