Use network range in hungroups file

Alan Buxey alan.buxey at gmail.com
Fri Jan 4 16:51:14 CET 2019


Don't use huntgroup, it's much much slower than using eg unlang in your
server policy. Just use unlang to check the range prefix

alan

On Fri, 4 Jan 2019, 13:38 Daniel Finger <daniel.finger at ewetel.de wrote:

> Hi!
>
> I would like to compare the Client-IP-Address to a network in the
> huntgroup
> file.
>
> Since FreeRADIUS 2 I am using something like this:
>
>      huntgroup1       Client-IP-Address =~ 192\.168\..*
>
> With FR3 I hoped I could use something like:
>
>      huntgroup1       Client-IP-Address < 192.168/16
>
> But this results in an Error:
> Error: /etc/raddb/mods-config/preprocess/huntgroups[56]: Parse error
> (check)
> for entry huntgroup1: Invalid IPv4 mask length "/16".  Only "/32"
> permitted
> for non-prefix types
>
> Is it somehow possible with FR3 to compare the Client-IP-Address to a
> network range in the huntgroups file?
>
> Sincerely,
> Daniel
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list