[squid-users] Followup to querying virus scan proxy

From: Deb Heller-Evans <deb@dont-contact.us>
Date: Fri, 21 Sep 2001 16:26:00 -0700 (PDT)

In FAQ 4.9 it talks about setting up a parent cache... This
seems a likely approach.

If anyone has done this and would be willing to share the
relevant parts of their config, that would be wonderful!

From the FAQ, relative up to version 2.2 (would this work for
2.3 and 2.4 as well???):

4.9 How do I configure Squid forward all requests to another proxy?

Note: The information here is current for version 2.2.

First, you need to give Squid a parent cache. Second, you need to tell Squid it can not connect directly to origin servers. This is done with three configuration file
lines:

        cache_peer parentcache.foo.com parent 3128 0 no-query default
        acl all src 0.0.0.0/0.0.0.0
        never_direct allow all

Note, with this configuration, if the parent cache fails or becomes unreachable, then every request will result in an error message.

In case you want to be able to use direct connections when all the parents go down you should use a different approach:

        cache_peer parentcache.foo.com parent 3128 0 no-query
        prefer_direct off

The default behaviour of Squid in the absence of positive ICP, HTCP, etc replies is to connect to the origin server instead of using parents. The prefer_direct off
directive tells Squid to try parents first.

"If it dies, it's biology. If it blows up, it's chemistry,
and if it doesn't work, it's physics."
                                        -- University bathroom graffito
ô¿ô
 ~
Received on Fri Sep 21 2001 - 17:26:04 MDT

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