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

Hugh Messenger hugh at alaweb.com
Mon Jul 23 18:28:06 CEST 2007


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





More information about the Freeradius-Users mailing list