Re: [squid-users] limit the user transfer per month

From: Henrik Nordstrom <>
Date: Sun, 22 Feb 2004 19:01:50 +0100 (CET)

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

Received on Sun Feb 22 2004 - 11:01:56 MST

This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:03 MST