Pejman Moghadam / General

Squid delay_pools example

Public domain


Class 1

delay_pools 1
delay_class 1 1
delay_parameters 1 16384/32768
acl usergroup1 src 172.16.20.0/24 127.0.0.1
delay_access 1 allow usergroup1
delay_access 1 deny all

Class 2

delay_pools 1
delay_class 1 2
delay_parameters 1 64000/64000   16000/256000
acl usergroup1 src 172.16.20.0/24 127.0.0.1
delay_access 1 allow usergroup1
delay_access 1 deny all

Class 3

delay_pools 1
delay_class 1 3
delay_parameters 1 256000/256000 64000/128000   16000/256000
acl usergroup1 src 172.16.20.0/24 127.0.0.1
delay_access 1 allow usergroup1
delay_access 1 deny all

Class 2 - extension base ACL

delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 5000/120000
acl largefiles url_regex -i \.exe$ \.bin$ \.mp3$ \.zip$
delay_access 1 allow largefiles 
delay_access 1 deny all

Class 1 - banned extensions

delay_pools 1
delay_class 1 1
delay_parameters 1 1/1
acl banned_extensions urlpath_regex -i \.avi$
acl banned_extensions urlpath_regex -i \.bin$
acl banned_extensions urlpath_regex -i \.mp3$
delay_access 1 allow banned_extensions
delay_access 1 deny all

BY: Pejman Moghadam
TAG: squid, delay-pools
DATE: 2011-12-28 14:05:26


Pejman Moghadam / General [ TXT ]