[squid-users] Squid proxy will forward message with 'alternating host header' but logs another?

2019-10-31 Thread Mark Bergman
Can i stop squid from 'repairing' host headers? I've been all over this for hours, I can only lead this back to this change in 1999 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50292 I wan't this sample code to do trough squid what it would do without a proxy at all and i want squid to log th

Re: [squid-users] Squid proxy will forward message with 'alternating host header' but logs another?

2019-10-31 Thread Amos Jeffries
On 31/10/19 8:48 pm, Mark Bergman wrote: > Can i stop squid from 'repairing' host headers? Yes. For context: RFC 7230 : "If the target URI includes an authority component, then a client MUST send a field-value for Host that is identical to that authority component" "If the target URI inc

Re: [squid-users] Squid proxy will forward message with 'alternating host header' but logs another?

2019-10-31 Thread Mark Bergman
reincluded the list for completeness and archiving. We're building a setup where I want to be able to find domain fronting [ https://en.wikipedia.org/wiki/Domain_fronting] attempts in the logs used test script: > > import requests > proxies = {'http': 'http://10.0.0.4:8080',} > headers = {"Host":

Re: [squid-users] Squid proxy will forward message with 'alternating host header' but logs another?

2019-10-31 Thread Alex Rousskov
On 10/31/19 7:48 AM, Mark Bergman wrote: > logformat combined2 ... %ru ... "%>h" > example log line: > ... http://www.google.com/ ... "...Orig-Host: > someevilhost.appspot.com\r\nHost: > www.google.com\r\n"  > I'm looking for a  way to have Squid log the original request You ar