Re: [squid-users] delay_pools

From: Maksim Filenko <maksim.filenko_at_local-global.com.ua>
Date: Mon, 30 Mar 2009 14:35:44 +0300

On Fri, 2009-03-27 at 10:18 -0700, nyoman karna wrote:
> Dear Maksim,
> first of all you'll need to attach your squid.conf
> without that we can only guess.

Dear Nyoman,

Thanks for reply!

I've attached my squid.conf.

It seems like everything like yours, but still doesn't work.
Squid can't recognize delay_pools options however it's an 'Delay Pools'
build...

http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

maximum_object_size 8192 KB

cache_dir ufs c:/squid/var/cache 100 16 256
cache_access_log c:/squid/var/logs/access.log
cache_log c:/squid/var/logs/cache.log
cache_store_log c:/squid/var/logs/store.log
log_ip_on_direct on

pid_filename c:/squid/var/logs/squid.pid

debug_options ALL,1

dns_nameservers 192.168.1.1

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

shutdown_lifetime 5 seconds

acl all src 0.0.0.0/0.0.0.0

acl manager proto cache_object

acl localhost src 127.0.0.1/255.255.255.255

acl office_net src 192.168.1.0/255.255.255.0

acl unlim_ip src "C:\squid\etc\acl\unlim_ip.src"

acl limited src "C:\squid\etc\acl\limited.src"

acl media urlpath_regex -i \.mp3$ \.asf$ \.wma$ \.wmv$ \.avi$ \.flv$

acl leechers rep_mime_type -i application/octet-stream
acl leechers rep_mime_type -i video/x-flv
acl leechers rep_mime_type -i video/x-msvideo
acl leechers rep_mime_type -i video/mpeg
acl leechers rep_mime_type -i application/x-mplayer2
acl leechers rep_mime_type -i application/x-oleobject
acl leechers rep_mime_type -i application/x-shockwave-flash
acl leechers rep_mime_type -i ^application/octet-stream$
acl leechers rep_mime_type -i ^application/x-mplayer2$
acl leechers rep_mime_type -i ^application/x-oleobject$
acl leechers rep_mime_type -i ^video/x-ms-asf$

acl banners url_regex -i "c:\squid\etc\acl\banners.acl"
acl webmails url_regex -i "c:\squid\etc\acl\webmails.acl"
acl downloads url_regex -i "c:\squid\etc\acl\download.acl"
acl admins url_regex -i "c:\squid\etc\acl\admins.acl"
acl blockfiles urlpath_regex "c:\squid\etc\acl\blocksfiles.acl"
acl tunnelling dstdomain -i "C:\squid\etc\acl\tunneling.acl"
acl banned_url url_regex -i "C:\squid\etc\acl\banned_url.acl"

acl to_localhost dst 127.0.0.0/8

acl SSL_ports port 443 563 22
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 5999 # FreeBSD
acl Safe_ports port 22 # SSH
acl Safe_ports port 5222 # Jabber
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow unlim_ip banners
http_access allow media
http_access deny banners
http_access deny downloads
http_access deny banned_url
deny_info empty banners
http_access allow limited
http_access allow office_net
http_access deny all

forwarded_for off

http_reply_access allow all

icp_access allow all

visible_hostname SquidNT

snmp_port 3401
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 0.0.0.0

delay_pools 5

delay_class 1 1
delay_class 2 1
delay_class 3 2
delay_class 4 1
delay_class 5 1

delay_access 1 allow media
delay_access 1 deny all
delay_access 2 allow leechers
delay_access 2 deny all
delay_access 3 allow limited
delay_access 3 deny all
delay_access 4 allow office_net
delay_access 4 deny all
delay_access 5 allow unlim_ip
delay_access 5 deny all

delay_parameters 1 16000/16000
delay_parameters 2 16000/16000
delay_parameters 3 32000/32000 8000/8000
delay_parameters 4 128000/128000 # 1Mbit to all
delay_parameters 5 -1/-1 # 2Mbit to all

coredump_dir c:/squid/var/cache

Received on Mon Mar 30 2009 - 11:36:01 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 30 2009 - 12:00:02 MDT