[squid-users] Multiple site Squid cache servers with one DansGuardian

From: Geoff Varney <geoff.varney@dont-contact.us>
Date: Mon, 11 Jul 2005 11:46:10 -0700

Hi,
I have been playing around with this and haven't gotten it figure out yet,
am thinking someone here will know this right away.

I have a main Squid proxy server that also runs DansGuardian. Currently I
point browsers to DG, which then goes through Squid. However I have 3 other
sites (school district) and would like to place a Squid box at each of them
to cache for the local site, thus eliminating some of the Web traffic across
the T1s.

In my testing of one of these site Squid boxes it seems that I am getting
misses when revisiting a site if DG is set as a cache_peer. I think I need
to configure this differently, but not sure what needs to be changed.

I have tried:

cache_peer <ip of DG server> parent 8080 7 no-query

cache_peer <ip of DG server> parent 8080 7 no-query proxy-only

cache_peer <ip of DG server> parent 8080 7 allow-miss no-query proxy-only

and perhaps a couple of others.

Of course I want the local Squid to cache anything that DG allows access to,
but the Squid log shows MISS when I go to a site I've already visited. I am
seeing some MEM HITS on the local proxy, but watching where traffic out to
Internet is originating shows that the main proxy (Squid/DG box) is going
out for pages, so it's not caching for the other site either.

All works normally if I set my browser to use the main proxy (DG) it seems.

What should my settings be in order to have the following happen:

Site Squids to cache for local site

Main Squid to cache for site Squids (children?) as well as main site

DG to filter for everyone, but not be queried when the local site server has
the page in its cache.

Hopefully I'm clear with what I'm trying to do. I'd like to avoid running
DG on all site servers, unless that is the only or best way to go.

I'm using:
Redhat FC3
Squid 2.5STABLE9 with forwarded-for patch
DansGuardian 2.8.0.4

Thanks,
Geoff
Received on Mon Jul 11 2005 - 12:48:03 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT