On Sun, 22 Feb 2004, SMS Webmaster wrote:

> > Using squid ,You can allow users to use the net within some time limit.
> > You can allow them to access the net with some badnwidth limit.
> >
> > You cannot limit them to access them only 10G / month and all
> >
> 
> Do you mean no one think about that !! :)
> Anyway, is it easy to hack squid for that ? 

There is plenty of people who have thought about that and also implemented 
such limitations based on Squid.

The thing is that Squid does not have a long-term memory of how much 
traffic a certain user have generated, but it does log all traffic so by 
analysing the logs you can easily tell if users have gone above their 
montly quota and then add them to an ACL which denies them further access 
until the quota is refilled, or if you prefer to limit their bandwidth 
usage, still giving them access but very slowly.

This can even be done more or less immediately by having a program which 
actively monitors the access log, and an external acl (see 
external_acl_type) which reports to Squid when the user has gone above his 
quota.

Regards
Henrik


Reply via email to