Use network range in hungroups file
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
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@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
On Jan 4, 2019, at 8:37 AM, Daniel Finger <daniel.finger@ewetel.de> wrote:
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?
No. The hunt groups (and hints and users file) don't support that. Use "unlang". Alan DeKok.
participants (3)
-
Alan Buxey -
Alan DeKok -
Daniel Finger