Quota based on time with squid
Alan DeKok
aland at deployingradius.com
Fri Oct 21 21:07:28 CEST 2011
senthil kumar wrote:
> I have installed free-radius in linux machine with accounting support
> and was able to authenticate using radtest client.and also I was also
> successfully authenticate with squid proxy server.
That's good to hear.
> I need to assign quota to squid users based on the weekly/hourly
> basis. I need users radius server to return packet reject when time is
> expired. is it possible in radius?
Yes. See the "counter" module, or the "sqlcounter" module.
The main issue is that they require the NAS to send accounting
packets. I don't know if squid does that.
> I am using only linux machine with proxy server. whether NAS is needed?
In this case, squid is the NAS. (i.e. machine sending Access-Request)
> If so, can anyone help me in framing the rules for quota . eg 2 hours
> a day. I have basic configuration and now when a user authenticates
> login time is updated in the radpostauth.
This is documented in the sqlcounter module. Look there first.
Alan DeKok.
More information about the Freeradius-Users
mailing list