Re: [squid-users] delay pools

From: Brent Clark <bclark@dont-contact.us>
Date: Thu, 06 Oct 2005 09:26:01 +0200

Hement Gopal wrote:
> Hi all
>
> I've compiled Squid 2.5 STABLE 5 with delay pools on and would like
> throttle all media downloads (eg mpeg, avi, mp3 etc)...during office hours.
>
> Can some tell me what lines to include in my squid.conf?

Hi Hement

acl workdays time M T W H F A 07:00-19:30
#http_access allow staff workdays
http_access allow staff

#Delay Pools
#acl ipaddress url_regex -i 192.168
acl ipaddress src "/etc/SQUID/staff.txt"
acl type url_regex -i ftp .exe .com .mp3 .vqf .gz .rpm .rar .zip .avi .mpeg .msi .mpg .mpe .qt .ram .rm .raw .wav .mov .pdf .doc .xls .wma .pps .ppt .swf
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow ipaddress
delay_class 2 2
delay_parameters 2 5000/150000 5000/120000
delay_access 2 allow workdays
delay_access 2 deny !workdays
delay_access 2 allow type

HTH

Kind Regards
Brent Clark
Received on Thu Oct 06 2005 - 01:26:14 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST