[squid-users] How can I just foward all connections from my squid to another proxy that requires autentication?

Amos Jeffries squid3 at treenet.co.nz
Tue May 5 14:48:34 UTC 2015


On 6/05/2015 1:50 a.m., stateri wrote:
> Hi
> 
> I like to foward all connection to my squid (that doesn requires
> authentication) to another web proxy that requires authentication.
> 
> How can I do that?
> 
> I'm trying to do something like that:
> 
> cache_peer 192.168.4.63 parent 3128 0 no-query default login=myuser:mypass
> http_access allow all
> 
> My target proxy is 192.168.4.63 port 3128, and my user in this proxy is
> myuser and the password id mypass.

Assuming the other proxy accepts Basic auth that is the correct
cache_peer config for what you want to do.

> When I use this configuration, the squid log is:
> 
> 1430834680.164      0 10.10.10.36 TCP_DENIED/403 3843 GET
> http://www.squid-cache.org/Artwork/SN.png - HIER_NONE/- text/html

No server (or cache_peer) was used for that request. It was just denied.

Which shows your stated rules above are not the whole config story.

Amos



More information about the squid-users mailing list