Different Authentication forseveral devices(severalNas-Ip-Address)

tnt at kalik.co.yu tnt at kalik.co.yu
Mon Jul 23 22:46:22 CEST 2007


Just a couple of small corrections:

Calling-Station-Id := "Dev" not Calling-Station-Id := Dev (those are
strings); same for other entries.

You might be able to remove that last entry - you are not going to test
for "Any" in huntgroups anyway? As I understood you only want to
restrict access to Dev and Prod server groups.

The name of the file is in radiusd.conf, where you uncomment "files".

Ivan Kalik
Kalik Informatika ISP


Dana 23/7/2007, "nicolas" <nicolaskarp at free.fr> piše:

>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
>>
>>
>>
>
>-
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>




More information about the Freeradius-Users mailing list