Re: [squid-users] delay pools and acls

From: D & E Radel <radel@dont-contact.us>
Date: Tue, 05 Jun 2007 14:43:01 +1200

Henrik Nordstrom wrote:
> tis 2007-06-05 klockan 07:40 +0700 skrev Arianto C Nugroho:
>> Quoting McDouglas <mcdouglas@animehq.hu>:
>>
>>> Hi!
>>>
>>> Is is possible to to assign delay pools to acls instead of domain
>>> names? I use an external acl to verify if a given user belongs to a
>>> given windows group (using wbinfo_group) and i'd like to limit his
>>> bandwith depending on group membership (teachers can use 1 mbit,
>>> students only 250kbit)
>>>
>>> Thanks
>> AFAIK, delay pool is assigned to a group of acl ..
>
>
> It should work, provided the group acl is also evaluated in http_access.
>
> Squid can not wait for lookups to external helpers to complete in
> delay_access, so the results of any acls used there must be immediately
> available without querying some other process or already known.
>
> Regards
> Henrik

It does indeed work. I tried it today. I have an ACL called "slow_group" created using LDAP_GROUP
which is limited to 64kbps out of a 2mbit bucket using:

     # Delay pools
     #-------------------------------------------------
     delay_pools 1
     delay_class 1 3
     delay_access 1 allow slow_group
     delay_access 1 deny all
     delay_parameters 1 250000/250000 -1/-1 8000/250000

Works a treat. I tested using an ADSL speedtest website, using same computer but different usernames
in the browser authentication prompt.

Regards,
Dietrich
Received on Mon Jun 04 2007 - 20:43:15 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT