Dear Benjamin,
What you need to do such kind of bandwidth quota is to use a radius server with
your NAS (this is NAS related usually not squid related although as Amos
mentioned before squid can do some speed throttling using Delay Pools which is
very useful if your international bandwidth is expensive.) Free radius is one
of the most widely used radius servers with GPL license. There are some
commercial products using Free radius that have integrated such functions into
their own setup of their billing servers with a nice web gui that make
programming things in free radius much easier (but since it is commercial then
you will have to buy a license to be able to use it.) If however you have the
free time you can program all that you asked for into free radius.
I can point out some systems that I have tested based on free radius if you
like to.
Sincerely,
Ragheb Rustom
Keblon S.A.R.L
-Original Message-
From: Amos Jeffries [mailto:squ...@treenet.co.nz]
Sent: Friday, July 15, 2011 5:48 AM
To: squid-users@squid-cache.org
Subject: Re: [squid-users] data transfer restriction
On 15/07/11 04:16, benjamin fernandis wrote:
Hi,
I am using centos 5.6 with latest version.Now i want to configure
bandwith restriction per ip and want to derive restriction for data
transfer. Example , per ip want to set 2gb data transfer per month or
200Mb per day.
Squid does not do quotas like that.
It can be made to do time allocations with a session helper (ie 5
minutes access per day at full speed 10Mbps == ~200Mb per day).
Or it can be made to set bandwidth access speeds with delay pools (ie
throttling each IP down to 2.4 KB/sec == ~200Mb/day).
Or it can set a TOS/Diffserv QoS value on outgoing traffic and leave
the rest to the OS.
Amos
--
Please be using
Current Stable Squid 2.7.STABLE9 or 3.1.14
Beta testers wanted for 3.2.0.9