Search squid archive

Re: Filtering based on content size.

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

 



On 28/04/11 17:56, Supratik Goswami wrote:
@Amos

Thanks for your reply.

Currently I am using acl to filter file extension .exe, .iso, .zip and
using with tcp_outgoing_address
I am able to change the source IP and it is working fine with source
based routing.

I want to filter by size (Ex. 15MB) which I am unable to do it using
ACL. On the other hand
reply_body_max_size does filtering based on size but I am not able to
use it as per my
requirement.

Is it a limitation of Squid ?

It is a limitation of this universe.

In HTTP the size of a reply is at best-case mentioned in the headers. At which point the connection is already open and the request has already been sent out. Worst-case the size is not known until the very last byte has been received.



Please let me know if there is any way to resolve this issue.

There is none which always works. The file extension guessing is nearly close to as Squid can get. Beyond it you are doing things like manually measuring individual sites and adding particular domains to the outgoing address selection. Tedious never ending work.

My advice is to go for load balancing at the operating system level. Load balancing works much simpler down there and you can do things like NAT the outgoing address of new connections based on the proportion of traffic each NIC has received so far (bumpy in the short term, but averages out over many connections).

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.12
  Beta testers wanted for 3.2.0.7 and 3.1.12.1


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

  Powered by Linux