[squid-users] Making destination IP available in ICAP REQMOD request

2021-01-17 Thread Moti Berger
Hi My goal is to obtain the destination IP when sending an HTTP request for my ICAP server so it would be able to decide the kind of adaptation required based on it. Looking at squid (5.0.4) code I discovered the following: It seems that "everything" starts at ClientRequestContext. I've noticed

Re: [squid-users] Making destination IP available in ICAP REQMOD request

2021-01-17 Thread ‪Amos Jeffries‬
As you have found. There is no destination IP at REQMOD time. Even if squid were to do a lookup it does not know the outcome of the routing decision in order to select which IP to send REQMOD. Especially if REQMOD is the source of that decision.A normal (forward) proxy has only a server host name (

Re: [squid-users] Making destination IP available in ICAP REQMOD request

2021-01-17 Thread NgTech LTD
Hey Moti, It is a good assumption that the same caching dns server (not 8.8.8.8 or 1.1.1.1) that the client use will return the relevant destination ip for the domain. Its possible to do such a query in the icap service with low timeout(2-3) seconds. can this be good enough for your use case? Eli

Re: [squid-users] Making destination IP available in ICAP REQMOD request

2021-01-18 Thread Alex Rousskov
On 1/17/21 5:28 PM, Moti Berger wrote: > I couldn't figure out a way to start the DNS resolving just before > the startAdaptation starts as it requires all sorts of objects that seem > to be unavailable there. Please ask development questions on squid-dev: http://www.squid-cache.org/Support/mailin