Search squid archive

Re: How to do a limit quota download on a Squid proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: tintin_vefg54e654g <maf1488@xxxxxxxxxx>
> I have a Mandriva 2009.1 OS, with squid ( + sarg, and mrtg) proxy.
> so, in the purpose to keep few free brandwicth for working using ^^ I would
> like to set limits download.
> I don't have users identifications, I see my users by IP adress.
> The matter is I would like to set a quota as a limit of 100Mb per day of
> download per IP adress.
> How is it possible to do such thing. 

Maybe using an external_acl script given the IP + 'Content-Length' header would do, but you have to code it.
You add the size value to a memcache value, based on the IP.
If the memcache value is > 100MB, deny access.
Restart/clear memcache everyday.
And you might have to handle ranges...

JD


      


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux