Re: [squid-users] delay_pools with dst access list type not work?

From: Sergey Chistyakov <serega@dont-contact.us>
Date: Tue, 26 Apr 2005 16:58:19 +0700

Hello Sergey,

Wednesday, April 20, 2005, 12:57:09 PM, you wrote:

SC> Hello SQUID users,

SC> I am trying to configure my cache for next thing:
SC> All downloads from nets of our city are unlimited.
SC> All another downloads mast be limited by delay pool.

SC> ###############################################################
SC> acl all src 0.0.0.0/0.0.0.0
SC> acl localnet1 src 192.168.1.0/255.255.255.0
SC> acl city_nets dst "/etc/squid/city.nets"
SC> #city.nets is the file containing list with one net per line
SC> #in next form:
SC> #123.123.123.0/24
SC> #234.234.234.0/19
SC> #etc

SC> http_access allow localnet1

SC> delay_pools 1
SC> delay_pool 1 2

SC> delay_parameters 1 -1/-1 3000/3000
SC> delay_access 1 allow localnet1 !city_nets
SC> delay_access 1 deny all
SC> ################################################################

SC> As i read many tims - it is must work.
SC> Where is mistake?
SC> I tryied many variations of this delay pool.
SC> I checked acl city_nets - its works. (http_access deny city_nets is work
SC> perfect)

SC> After reading this mail list, i know - pools works only with "fast"
SC> acl. But dst acl is fast - no need some axtra doing for this acls.
SC> I used only one dst IP in delay_pool but it has not works any way!
SC> Delay pools works perfect only when i used src type of acl and regexp.

SC> My squid is 2.5 stable 5 runnig under FreeBSD 4.8.

SC> mailto:serega@tspace.ru

I solved my problem =)

There are two things:

1) As it is written above, we need to add line:

http_access deny city_nets !all

Now all request must be in ipcache of squid.
Squidlog reports me about ipcache miss.

2) And i increased ipcache size.

ipcache_size 10240

I think with default ipcache size (1024)
not all requests are caching by squid.

-- 
Best regards,
 Sergey                            
tel:     +7(382)2 520343
mailto:serega@tspace.ru
Received on Tue Apr 26 2005 - 03:52:55 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT