Re: [squid-users] How to orward CONNECT and POST to parent cache.

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 20 Mar 2010 13:46:36 +1300

Krist van Besien wrote:
> I have the following in my Squid (the rest is standard)
>
> cache_peer p.somewhere.com parent 443 0 no-digest no-query
> proxy-only l
> cache_peer_domain p.somewhere.com .domain.net
>
> In my logfile I see that GET requests are forwarded to the peer, but
> POST and CONNECT still goest "DIRECT".
>
> 1269021794.161 71 192.168.1.185 TCP_MISS/304 439 GET
> http://www.domain.net/favicon.ico - FIRST_UP_PARENT/p.somewhwere.net
> image/x-icon
> 1269021794.338 986 192.168.1.185 TCP_MISS/200 4704 CONNECT
> www.domain.net:443 - DIRECT/x.x.x.x -
>
> What have I overlooked? Or am I asking to much?
> Basically I want everything for domain.net, GET, CONNECT and POST to
> go over the parent proxy.
>
> Thanks in advance,
>
> Krist
>

There is something really funky with your setup if POST is not going the
same way as GET.

CONNECT is semantically a request to make a tunnel CONNECTion directly
to a service. It needs to be forced indirect with the never_direct
access controls.
   never_direct allow CONNECT

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE8 or 3.0.STABLE25
   Current Beta Squid 3.1.0.18
Received on Sat Mar 20 2010 - 00:46:43 MDT

This archive was generated by hypermail 2.2.0 : Sat Mar 20 2010 - 12:00:05 MDT