Re: [squid-users] Using a helper program with squid

From: Sasan Dashtinezhad <[email protected]>
Date: Wed, 4 Aug 2004 12:20:32 -0400 (EDT)

Thanks Lakshmi,

I think I understand your solution. But as I explained in my other
response, I need squid to
"send the results it has for the client (coming either from its cache or
the original Web server), to another server, and read the response from
that server, and send that to its client."
I do want squid to contact the original Web server...

Sorry folks if you're tired of seeing the same question re-stated in
several emails.

Regards,
--Sasan

On Wed, 4 Aug 2004, Lakshmi R wrote:

>
> Hi Sasan,
> 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.
>
> I guess this is what u r looking for....
>
> regards,
> -Lakshmi
>
> Sasan Dashtinezhad <sasan@cs.umd.edu> wrote:
> Has anybody gotten a chance to look at the replied email? I'd appreciate
> it if somebody could at least give me a "yes or no" response.
>
> Regards,
> --Sasan
>
> Sasan Dashtinezhad wrote:
>
> >Hi folks,
> >
> >I'm trying to use squid as my proxy, but in a rather weird setup. I need
> >the HTTP packets to be sent to another connection (not the original
> >connection from which the request was received) and then read the response
> >from another connection and send that to the original connection. I.e.,
> >client sends request to squid
> >squid connects to original server
> >squid reads response R
> >squid sends R to x.y.z:p (somewhere on the Internet) and closes
> > the connection when done
> >squid opens a new connection to x.y.z:p to read the response
> >squid reads response R'
> >squis sends R' to client
> >
> >I know that squid is a powerful tool and can be configured in several
> >ways. Is it possible for me to do all of this (or something similar) using
> >the configuration mechanisms of squid? Or do I have to dive into the
> >source code and try implementing this myself...? (I'm having a feeling
> >that I might be able to do this using peers.)
> >
> >Any help is strongly appreciated.
> >
> >Regards,
> >--Sasan
> >
> >
> >
>
>
>
>
> Lakshmi
>
> ---------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
Received on Wed Aug 04 2004 - 10:20:34 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:01 MDT