[squid-users] Clarification on delay_pool bandwidth restricting with external acls

From: Cameron Charles <cameron_at_getbusi.com>
Date: Fri, 1 Jun 2012 12:20:35 +1000

Hi all, im just after some clarification on using delay pools with
external acls as triggers, i have a good understanding of the
components of delay pools and how they operate but most documentation
only mentions users aka ip addresses as the method of triggering the
restriction, i would like to use an external acl to decide whether a
request should be limited or not regardless of any other factors, so
any and all traffic coming through squid, if a match to this acl, is
restricted to say 128bps, is this possible and is the following the
correct way to achieve this???

acl bandwidth_UNIQUENAME_acl external bandwidth_check_ext_acl_type UNIQUENAME
http_reply_access allow bandwidth_UNIQUENAME_acl !all
delay_class 1 1
delay_parameters 1 128.0/128.0
delay_access 1 allow bandwidth_128.0_acl
delay_initial_bucket_level 1 100

additionally im a inexperienced when it comes to actually testing
bandwidth limits is it possible to simply download a file that is
known to be a match to the ext acl and observe that it doesn't
download at over the bandwidth restriction or is testing this more
complicated.

thanks for any help, clarification
Received on Fri Jun 01 2012 - 02:20:46 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 01 2012 - 12:00:06 MDT