[squid-users] delay pools

From: Jun Tanamal <jtanamal@dont-contact.us>
Date: Tue, 05 Aug 2003 15:35:09 +0800

Hi,
I just installed and configured squid with delay pools according to
'Bandwidth Limiting How-to' by Tomasz.
I also configured it to be a transparent proxy. I have a running apache
in the same machine.
When I start squid, apache stops serving the webpages.
Below is how how I managed squid to work as transparent proxy "but" the
delay pools didn't.
Please advice why my downloads (with the same file extensions set in
magic_words2) are still not clamped down to the specified 5kbps speed as
expected.
Thanks in advance!

-Jun

--------squid.conf-------
http_port 3128
icp_port 3130
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 16 MB
cache_dir ufs /usr/cache 250 16 256
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
logfile_rotate 4
redirect_rewrites_host_header off
cache_replacement_policy GDSF
acl localnet src 192.168.0.0/255.255.255.0 192.169.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 80 443 210 119 70 20 21 1025-65535
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
http_access allow localnet
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
maximum_object_size 3000 KB
store_avg_object_size 50 KB
httpd_accel_port 81
httpd_accel_host server.my.domain
httpd_accel_single_host on
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
anonymize_headers deny User-Agent
fake_user_agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+)
Gecko/20011122
cache_effective_user squid
cache_effective_group squid
log_icp_queries off
buffered_logs on
acl magic_words1 url_regex -i 192.168 192.169
acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip
.rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov
delay_pools 2
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_access 1 allow magic_words1
delay_class 2 2
delay_parameters 2 5000/150000 5000/120000
delay_access 2 allow magic_words2
------
In ipchains rule:
$ipchains -A input -j REDIRECT 3128 -p tcp -s 0.0.0.0/0 -d 0.0.0.0/0 81
Received on Tue Aug 05 2003 - 01:30:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:36 MST