Re: [squid-users] Hierarchical Squid Configuartion

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 07 Mar 2010 21:47:47 +1300

jayesh chavan wrote:
> Hi,
> I am installing a squid proxy on a windows machine which has
> parent proxy at 192.168.7.253.My ip address is 192.168.7.232.My prixy
> listens on port 8080 and parent proxy listens on port 3128.But its not
> working.Below are all non-commented lines in my configuration files:

<snipped all the non-relevant parts.>
>
> icp_access allow localnet
> icp_access deny all
>
> http_port 8080
>
> cache_peer 192.168.7.236 sibling 3128 3130 no-query weight=10
> cache_peer 192.168.7.253 parent 8080 3130 no-query proxy-only no-digest default
> cache_peer_access 192.168.7.236 allow all
>
> hierarchy_stoplist cgi-bin ?

> announce_period 1 day
> icp_port 3130
> nonhierarchical_direct off

Um, a few points:
  * specifying "no-query" prevents the above configure proxy from
sending ICP and HTCP to its peers. The port 3130 on those cache_peer
lines can be set to 0 to do the same.

  * you configured port 8080 as the contact port for a parent proxy you
say is listening on 3128.

* you specify "nonhierarchical_direct off" and "never_direct deny all"
  meaning all requests may go direct bypassing the parent, except those
matching the regex patterns in "hierarchy_stoplist".
   To force all requests to go via one of the peers set "never_direct
allow all" and remove hierarchy_stoplist

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE24
   Current Beta Squid 3.1.0.17
Received on Sun Mar 07 2010 - 08:47:57 MST

This archive was generated by hypermail 2.2.0 : Mon Mar 08 2010 - 12:00:03 MST