huntgroup as an unlang check?

Ivan Kalik tnt at kalik.net
Mon Jul 20 12:06:26 CEST 2009


> hi,
>
> i've got a few virtual hosts that do checks on the NAS-IP-Address
> - all works fine - but those lists of NAS are now growing so
> in order to maintain sanity I thought 'heck, lets use a Huntgroup'
>
> however, I recall hu8ntgroups being very much tied to users
> and wasnt sure of their status in unlang.

With unlang you can use sql for hungroups as well.

http://wiki.freeradius.org/SQL_Huntgroup_HOWTO

>  if i have
>
> raddb/hntgroups
>
> alphen         NAS-IP-Address == 192.168.2.5
> alphen         NAS-IP-Address == 192.168.2.6
> alphen         NAS-IP-Address == 192.168.2.7
>
>
> and, in the virtual host i have
>
> if("%{HuntGroup}" == "alphen"){

It's Huntgroup-Name. And should be on request list.

> 	sql
> 	ok = return
> 	}
>

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list