Re: [squid-users] Squid bandwidth

From: fedorischev <fedorischev_at_bsu.edu.ru>
Date: Tue, 4 May 2010 14:55:02 +0400

> badaim2 wrote:
> > Hello,
> >
> > We planned to configure a new squid proxy server in FreeBSD. We want to
> > implement bandwidth management in squid by using delaypool. We having
> > 6mbps DSL connection. We going to give totally 300MB limited net usage
> > for every one per day. If a single user reached his limit 300mb then that
> > user should not able to access net for few hours. He should be informed
> > via web site, that he reached his limit for a while. Like this we want to
> > implement bandwidth management.
> >
> > Any real time example squid code is there for my bandwidth configuration?
>

For this purposes there are several other projects. Usually it's a log
analyzer program that parses squid's access.log and accumulate statistics
information in RDBMS, like MySQL or PostgreSQL. After log analyser setup you
must write squid redirector program, that checks accumulated statistics and,
optionally, redirect user to deny page.

See this page http://www.squid-cache.org/Scripts/ for additional information.
Hope that helps.

WBR. Igor.
Received on Tue May 04 2010 - 10:55:12 MDT

This archive was generated by hypermail 2.2.0 : Tue May 04 2010 - 12:00:03 MDT