[squid-users] request_body_max_size

2011-04-05 Thread Norman Noah
hi,

can anybody show me an example for some domain limit file size?

let say global download limit is 100MB

domain for dell.com more than 100MB > 400MB limit. (for downloading drivers)

what about time based download ?

acl working time MTWHF 08:00-17:00


how to do this ?

i'm using squid 2.6 STABLE 21



acl moredownload dstdomain .dell.com

reply_body_max_size 104857600 allow all


Re: [squid-users] request_body_max_size

2006-04-09 Thread Henrik Nordstrom
sön 2006-04-09 klockan 20:00 +0200 skrev Wojciech Puchar:
> can it be set depending from acl?

No, it's currently a singe global limit applied equally to every
request.

Shouldn't be very hard to extend it to be a acl driven thing like
reply_body_max_size, but nobody has done so yet. Coding required.

Regards
Henrik


signature.asc
Description: Detta är en digitalt signerad	meddelandedel


[squid-users] request_body_max_size

2006-04-09 Thread Wojciech Puchar

can it be set depending from acl?

or any way to limit the size for selected URLs?


[squid-users] request_body_max_size, request_header_max skipping for certain sites

2005-03-15 Thread rturnbull
Hello,
   I'm new to posting here so here it goes.
   I have a site at a certain IP address that has to POST and GET 
information from that IP address. We have squid setup here and I was 
getting errors on posting files over a certain size.  I looked at the 
documentation and there are two parameters that I'm interested in, one 
is request_header_max and the other is request_body_max_size.  We have 
them set to 10K and 512K respectively.  I was wondering how can I get 
squid to skip looking at those parameters for the IP address I'm posting 
to, but still keep those setting for other sites.  I was doing the 
following, but have no idea if that even helped.

   acl myipaddress dst 166.166.2.18
   no_cache deny myipaddress
Let me know if these are "global" parameters for the squid cache or 
whether or not they can be controlled somehow on the site level.

Thanks
RT


Re: [squid-users] request_body_max_size ?

2004-04-26 Thread Henrik Nordstrom
On Mon, 26 Apr 2004, Michael Gale wrote:

> Can I use "request_body_max_size" inside a acl ?

There only is one single limit in this directive.

But it is possible to invent a new acl for this using the external acl 
interface. request_body_max_size looks into the Content-Length request 
header, available to external_acl_type as %{Content-Length}


This silly shell script should work

#!/bin/sh
while read line; do
  set -- $line
  length="$1"
  limit="$2"
  if [ "$length" -le "$2" ]; then
 echo OK
  else
 echo ERR
  fi
done


Use this as

external_acl_type request_body %{Content-Length} /path/to/above/script

acl request_max_20MB request_body 20971520


This acl can then be used in http_access to match requests up to the given 
size. If you need different sizes just define new acls with different 
limits in bytes (20971520 == 20480 * 1024 == 20480 KB)

Regards
Henrik




[squid-users] request_body_max_size ?

2004-04-26 Thread Michael Gale
Hello,

Can I use "request_body_max_size" inside a acl ?

For example:

acl allowuploads src 10.10.1.3/255.255.255.255
http_access allow allowuploads AND request_body_max_size 20480 KB

then further download just have

request_body_max_size 100 KB

Thanks --- I hope I explained it well enough.

-- 
Michael Gale
Network Administrator
Utilitran Corporation


Re: [squid-users] request_body_max_size

2003-10-01 Thread kent emia
On Wed, 2003-10-01 at 16:56, kent emia wrote:
> hi to all
> 
> i've set request_body_max_size 1 KB to deny uploading of files from our
> company..  this works fine
> 
opppss i thinks this does, one of my colleagues is sending mail to one
of his e-groups pure text... but the error occurs i thought this is only
for attachements...

any suggestions ... we would like to deny all outgoing attached
files 


> but this includes also the admin/boss workstations.. how can i bypass
> their workstations???
> 
> TIA
-- 



[squid-users] request_body_max_size

2003-10-01 Thread kent emia
hi to all

i've set request_body_max_size 1 KB to deny uploading of files from our
company..  this works fine

but this includes also the admin/boss workstations.. how can i bypass
their workstations???

TIA
-- 
kent emia <[EMAIL PROTECTED]>