Different Authentication for several devices(severalNas-Ip-Address)

nicolas nicolaskarp at free.fr
Mon Jul 23 21:45:51 CEST 2007


In the USERS file or Pre_Proxy_Users file ?

Thanks !


Nicolas.

Hugh Messenger wrote:
> nicolaskarp at free.fr said
>   
>> If [ NAS-IP-Address =~ 192.168.48.* ]
>>   Calling-Station-Id = Dev
>> else
>>    if [ NAS-IP-Address =~ 192.168.49.* ]
>>        Calling-station-id = Prod
>>    else
>>        Calling-station-id = Any
>>    fi
>> fi
>>     
>
> You might try:
>
> DEFAULT NAS-IP-Address =~ "^192\.168\.48\."
> 	Calling-Station-Id := Dev
> 	Fall-Through = 1
>
> DEFAULT NAS-IP-Address =~ "^192\.168\.48\."
> 	Calling-Station-Id := Prod
> 	Fall-Through = 1
>
> DEFAULT NAS-IP-Address !~ "^(192\.168\.48\.|192\.168\.49\.)"
> 	Calling-Station-Id := Any
> 	Fall-Through = 1
>
>    -- hugh
>
>
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
>   




More information about the Freeradius-Users mailing list