Search squid archive

using request_body_max_size inside an acl (second time post)

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

 



hey friends,

I am trying to use request_body_max_size with acl. I have different
groups which need different upload and download limits. I am able to
configure squid for download limits.

I found a script for request_body_max_size which can be used inside an
acl  script is not working with the acl.

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


external_acl_type request_body %{Content-Length} /etc/squid/read.sh

acl request_max_20MB external request_body 20971520


acl defined in the squid.conf

acl download  src 192.168.1.15

http_access allow  download request_max_20MB


request_body_max_size  0 KB   (parameter as defined in the squid.conf)

Is there any other script which can be used inside the acl for
request_body_max_size ?

I am using squid 2.5 stable 6 on FC3.

Thanks & Regards


Ankush Grover

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

  Powered by Linux