[squid-users] cache_peer configuration

Amos Jeffries squid3 at treenet.co.nz
Tue Apr 21 14:39:32 UTC 2020


On 22/04/20 2:25 am, kutz wrote:
> On Wed, Apr 22, 2020 at 01:30:48AM +1200, Amos Jeffries wrote:
>> On 21/04/20 11:06 pm, kutz wrote:
>>> Hello List,
>>> I'm trying to establish a proxy2proxy configuration with my
>>> squid-3.5.28-1.el6.x86_64
>>> on
>>> Centos 6.10
>>>
>>> cache_peer IP_OF_PEER parent 8080 0 no-query originserver name=server_1
>>
>> If the upstream is a proxy, do not tell Squid it is an origin server.
>>
>>
>>> acl sites_server_1 dstdomain url_1 url_2 url_3 url_4
>>> cache_peer_access server_1 allow sites_server_1
>>> cache_peer_access server_1 deny all
>>>
>>> When trying to access one of the URLs the requests are not answered (or
>>> delivered) by the remote proxy - instead local Squid tries to answer.
>>> As my squid has no direct access to those URLs I'm getting 503 in my Squid Logs with a timeout in my
>>> browers.
>>>
>>> What am I missing here?
>>>
>>
>> Some detail you are not providing for us either.
>>
>> This is why we always ask for as much detail as possible. Logs, full
>> config. As much as you can about the failing transaction.
>>
>>
>> Amos


> 
> Hello Amos,
> thanks for your suggestion.
> I removed "originserver" from my config.
> Still I see the requests answered by my own squid and not relayed over the cache_peer.
> 
> I'm limited with providing my squid configuration - I can't provide the config to hole
> audience due to security restrictions.
> Tell me which squid config details you like to have and I see what i can do.
> 
> Logs:
> <snip>
> Apr 21 16:18:12 2020.850     45 machine_1.domain.intern TCP_TUNNEL/200 1179 1329 CONNECT url_1:443 - HIER_DIRECT/url_1 -


What *_port line(s) do you have configured in the frontend proxy?


Amos


More information about the squid-users mailing list