Authentications types by usernames

Arran Cudbard-Bell a.cudbardb at freeradius.org
Thu Sep 29 19:37:33 CEST 2011


On 29 Sep 2011, at 18:23, andreapepa wrote:

> Yes there two kind of mikrotik nas, one is a cpe to connect users lan by 5GHz
> wireless bridge and the ohter is a classical access point to give access to
> wireless clients.
> 
> I've inserted this at the end of policy section in policy.conf but seems not
> to be read:

Yes you need to call it in the server config.

sites-available/default

authorize {
	...
	autz_by_frequency
}


policy.conf

policy {
   	autz_by_frequency {
        	if(Called-Station-Id =~ /:WiNET-TR5G^/ && User-Name != 'usercpe01'){
			reject
		}
	}
}

Arran Cudbard-Bell
a.cudbardb at freeradius.org

Betelwiki, Betelwiki, Betelwiki.... http://wiki.freeradius.org/ !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110929/7a47fce7/attachment.html>


More information about the Freeradius-Users mailing list