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
Received on Mon Jun 19 2006 - 11:36:01 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT