[squid-users] Re: Re: delay pools help

From: Adam Aube <aaube01@dont-contact.us>
Date: Sat, 17 Apr 2004 09:10:05 -0400

Payal Rathod wrote:

> Luckily it the software company which will enforce through their
> router.
>
>> > I want to allow only few IPs (192.168.1.1 and 192.168.1.11) full use of
>> > bandwidth, the rest should use only 64 KBps.
>>
>> If the software company enforces the limit, then it's easy. Just create a
>> single class 1 delay pool with a 64 Kbps limit. Deny delay pool access to
>> the IP's that you want to have full speed, and allow everything else.
>
> Can you give some example here please. I am pretty much confused with
> the usage of delay pools.

Just remember that speed settings in delay pools are bytes per second, not
bits per second, and that delay_access lines work just like http_access
lines - the first matching rule is applied.

acl full_speed src 192.168.1.1 192.168.1.11
acl all src 0.0.0.0/0.0.0.0
delay_pools 1
delay_class 1 1
delay_parameters 1 8000/12000 #64 Kbps sustained; 96 Kbps burst
delay_access 1 deny full_speed
delay_access 1 allow all

The above was adapted from the Delay Pools FAQ:

http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#ss19.8

Adam
Received on Sat Apr 17 2004 - 07:09:38 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT