[H-GEN] squid parents

The Fuzzy One s335810 at student.uq.edu.au
Thu Oct 8 02:57:35 EDT 1998


On Thu, 8 Oct 1998, David Wood wrote:

> The Fuzzy One wrote:
> > So what I want is for squid to ask both machines simultaneously, knowing
> > only one will ever respond.
> The solution to this is the Internet Cache Protocol (ICP).  Both of the
> machines become ICP neighbors.

> Now, does squid support ICP?

Squid certainly does support ICP[1], however the peer win95 based proxies
to not.

My interim solution is to create *.in files for both /etc/squid.conf, and
/var/named/named.localnet,  with direct references to a particular proxy
replaced with %PROXY%, or some similar oconvention.  A program in
/usr/local/sbin, called proxyset is called with a machine as a parameter,
and sets up appropriate variables before over-writing the main config
files with seds of the *.in files.

Most protocls are handled by the alternate dns entry for "proxy", since I
can say "ftp proxy", etc... and most config files can have proxy set as
teh target proxy (eg mail) for this to be dynamially set.  Most servers
should probably be restarted/reloaded to ensure this dns change is noted.

The squid config file could in fact be left without a corresponding .in
file, except that the http proxies run on different ports on each machine.
I can't be bothered changing this, since the solution is reasonably cute
as it stands.

The program used to make these insertions is available (or whill be
moments after i finish this email) at
http://student.uq.edu.au/~s335810/code/proxyset

Now, if only my thesis was in such a good state...

[1] In fact, the FAQ introduces the ICP protocol hence... 
"ICP is a protocol used for communication among squid caches.", 

        fuzzy BSc.

                                //////      //////    ///  ///
         ////////   // //    ////   ///  ////   ///  ///  ///
                            ///    ///  ///    ///  ///  ///
       // // //  ////////  ///    ///  ///    ///  ///  ///
                          ///    ///  ///    ///  ///  ///
      
     <A href="http://student.uq.edu.au/~s335810">www</A>
    <A href="mailto:s335810 at student.uq.edu.au">mail</A>









More information about the General mailing list