RE: [squid-users] Qoutas

From: Tony Melia (DMS) <[email protected]>
Date: Tue, 5 Aug 2003 10:52:06 +1000

I would have thought the delay pools feature of squid would do just that
function??

-----Original Message-----
From: Adam Aube [mailto:aaube@firstindependent.net]
Sent: Tuesday, 5 August 2003 12:47
To: 'Squid List'
Subject: RE: [squid-users] Qoutas

> My squid is currently setup with authentication. I would like to give
> each user a max of say 10meg per day. Anything more than that, squid
> denies access for the user.

It is possible, but unless I missed something, neither Squid nor any helper
distributed with it has this capability. You would have to code it, and it
would probably require two parts:

1) A daemonized program that tails the access.log, recording the number of
bytes for each username, adding it to any existing total, and storing this
data.

2) An external_acl helper that takes the authenticated username and queries
the daemonized program (via a named pipe) to see if the user has gone over
the limit. The daemonized program responds by sending a signal to the
helper.

It could be done in Perl relatively easily.

Of course, someone else may know of an existing implementation of this,
which would be easier still.

Adam

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001
Downs MicroSystems Pty Ltd
145 Margaret Street
Toowoomba Qld 4350
Ph. (07) 4639 3344 Fax (07) 4639 3820
Important Disclaimer and Warning
Downs MicroSystems does not represent or warrant that any attached files are
free from computer viruses or other defects. The attached files are
provided, and may only be used, on the basis that the user assumes all
responsibility for any loss, damage or consequences resulting directly or
indirectly from use of the attached files. The liability of Downs
MicroSystems in any event is limited to either the resupply of the attached
files or the cost of having the attached files resupplied.
NOTE: The views expressed by the individual in this message do not
necessarily reflect those of the organisation.
Downs MicroSystems is committed to protecting the privacy of individuals,
and is bound by the principles of the Commonwealth Privacy Act (1988).
Should you wish to view our Privacy Policy, please visit
www.downsmicro.com.au.
The information contained in this message is confidential and may be legally
privileged. The message is intended solely for the addressee(s). If you are
not the intended recipient, you are hereby notified that any use,
dissemination, or reproduction is strictly prohibited and may be unlawful.
If you are not the intended recipient, please contact the sender by return
e-mail and destroy all copies of the original message.
Received on Mon Aug 04 2003 - 18:52:12 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:35 MST