[squid-users] Capture incoming information from one squid to another.

Alex Rousskov rousskov at measurement-factory.com
Wed Aug 17 18:01:28 UTC 2022


On 8/15/22 21:49, Marcelo wrote:

> How can I transfer connection information from one squid server to another?

Use cache_peer login=PASSTHRU or login=PASS. Other login=... options may 
also be of interest. See cache_peer documentation in your 
squid.conf.documented for details and caveats.


HTH,

Alex.


> Example:
> 
> An user connects to Squid One (Squid One IP 192.1.1.1) through port 4000 
> using usr/pw credentials.
> 
> Squid One authenticates it via SQL DB. This part is already working fine.
> 
> Squid One verifies if destination website is in dst domain list.
> 
> If yes Squid One routes it to Route A. End of story.
> 
> If no Squid One routes it to Squid Two.
> 
> But Squid One must inform Squid Two who is the user and witch port he 
> asked to connect.
> 
> Why? Because Squid Two must use this info as if the user itself is 
> connecting to Squid Two.
> Why, again? Because Squid Two will use this info to route this user to 
> the correct route. This part is also done.
> 
> My doubt is, is there a way to make Squid Two “thinks” that user is 
> connecting direct to Squid Two, so that, Squid Two can use user/port 
> information to route this poor little guy.
> 
> It’s a bit hard to explain it through email.
> 
> Best Regards.
> 
> Marcelo.
> 
> 
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list