<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Rounded MT Bold";
        panose-1:2 15 7 4 3 5 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.im
        {mso-style-name:im;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
.MsoPapDefault
        {mso-style-type:export-only;
        text-align:right;
        direction:rtl;
        unicode-bidi:embed;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hey,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can you test if the details at bug 4253:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://bugs.squid-cache.org/show_bug.cgi?id=4253#c13">http://bugs.squid-cache.org/show_bug.cgi?id=4253#c13</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Helps you to resolve the issue?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><br>Eliezer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'>----<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'><a href="http://ngtech.co.il/lmgtfy/"><span style='color:#0563C1'>Eliezer Croitoru</span></a><br>Linux System Administrator<br>Mobile: +972-5-28704261<br>Email: eliezer@ngtech.co.il<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=183 height=69 id="Picture_x0020_1" src="cid:image001.png@01D1D145.2F619D10"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> squid-users [mailto:squid-users-bounces@lists.squid-cache.org] <b>On Behalf Of </b>Ozgur Batur<br><b>Sent:</b> Monday, June 27, 2016 6:02 PM<br><b>To:</b> Amos Jeffries<br><b>Cc:</b> squid-users@lists.squid-cache.org<br><b>Subject:</b> Re: [squid-users] flickr.com redirect error<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p><span style='font-size:9.5pt'>Browser i used to test runs on same machine with squid,  i changed it to explicit mode(no intercept - I set proxy ip in browser) during my attempts for ssl interception. Sorry I forgot to mention that in my last post of logs. So xff localhost is normal I guess. Here is the request log with  port info:<o:p></o:p></span></p><p><span style='font-size:9.5pt'>----------<o:p></o:p></span></p><p><span style='font-size:9.5pt'>2016/06/27 15:49:40.909 kid1| 11,2| http.cc(2234) sendRequest: HTTP Server local=<a href="http://10.100.136.56:47772/" target="_blank">10.100.136.56:47772</a> remote=<a href="http://188.125.93.100:443/" target="_blank">188.125.93.100:443</a> FD 47 flags=1<o:p></o:p></span></p><p><span style='font-size:9.5pt'>2016/06/27 15:49:40.909 kid1| 11,2| http.cc(2235) sendRequest: HTTP Server REQUEST:<o:p></o:p></span></p><p><span style='font-size:9.5pt'>---------<o:p></o:p></span></p><p><span style='font-size:9.5pt'>GET / HTTP/1.1<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Upgrade-Insecure-Requests: 1<o:p></o:p></span></p><p><span style='font-size:9.5pt'>User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/50.0.2661.102 Chrome/50.0.2661.102 Safari/537.36<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Accept-Encoding: gzip, deflate, sdch<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Accept-Language: tr,en-US;q=0.8,en;q=0.6<o:p></o:p></span></p><p><span style='font-size:9.5pt'>..<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Host: <a href="http://www.flickr.com/" target="_blank">www.flickr.com</a><o:p></o:p></span></p><p><span style='font-size:9.5pt'>Via: 1.1 ubuntuozgen (squid/3.5.19)<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Surrogate-Capability: ubuntuozgen="Surrogate/1.0 ESI/1.0"<o:p></o:p></span></p><p><span style='font-size:9.5pt'>X-Forwarded-For: ::1<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Cache-Control: max-age=259200<o:p></o:p></span></p><p><span style='font-size:9.5pt'>Connection: keep-alive<o:p></o:p></span></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Jun 27, 2016 at 2:27 PM, Amos Jeffries <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>On 27/06/2016 11:01 p.m., Ozgur Batur wrote:<br>> Yes that is much easier, thank you.<br>><br>> Rafaels line is response header, I received the same. Here is the related<br>> cachelog:<br>><br><br>What is the content of the line above this one. With the IP:port details ?<br><br>> 2016/06/27 13:52:49.194 kid1| 11,2| http.cc(2235) sendRequest: HTTP Server<br>> REQUEST:<br>> GET / HTTP/1.1<br>> Accept:<br>> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8<br>> Upgrade-Insecure-Requests: 1<br>> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like<br>> Gecko) Ubuntu Chromium/50.0.2661.102 Chrome/50.0.2661.102 Safari/537.36<br>> Accept-Encoding: gzip, deflate, sdch<br>> Accept-Language: tr,en-US;q=0.8,en;q=0.6<br>> ...<br>> Host: <a href="http://www.flickr.com" target="_blank">www.flickr.com</a><br>> Via: 1.1 ubuntuozgen (squid/3.5.19)<br>> Surrogate-Capability: ubuntuozgen="Surrogate/1.0 ESI/1.0"<br>> X-Forwarded-For: ::1<br><br>You said this was using interception. But Squid XFF is telling Yahoo<br>that its receiving localhost traffic.<br><br>Try "forwarded_for transparent" in your squid.conf, and find out why<br>that ::1 is happening on an intercepted proxy. There may be a bug in<br>your NAT or routing configuration.<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br><br>> Cache-Control: max-age=0<br>> Connection: keep-alive<br>><br>> ..<br>> 2016/06/27 13:52:49.477 kid1| 11,2| http.cc(751) processReplyHeader: HTTP<br>> Server REPLY:<br>> ---------<br>> HTTP/1.1 301 Moved Permanently<br>> X-Frame-Options: SAMEORIGIN<br>> X-Content-Type-Options: nosniff<br>> X-XSS-Protection: 1; mode=block<br>> X-Served-By: <a href="http://pprd1-node552-lh1.manhattan.bf1.yahoo.com" target="_blank">pprd1-node552-lh1.manhattan.bf1.yahoo.com</a><br>> X-Instance: <a href="http://flickr.v1.production.manhattan.bf1.yahoo.com" target="_blank">flickr.v1.production.manhattan.bf1.yahoo.com</a><br>> Cache-Control: no-cache, max-age=0, must-revalidate, no-store<br>> Pragma: no-cache<br>> X-Request-Id: 36e709a2<br>> Location: <a href="https://www.flickr.com/" target="_blank">https://www.flickr.com/</a><br>> Vary: Accept<br>> Content-Type: text/html; charset=utf-8<br>> Content-Length: 102<br>> Server: ATS<br>> Date: Mon, 27 Jun 2016 10:52:40 GMT<br>> Age: 0<br>> Via: http/1.1 <a href="http://fts111.flickr.bf1.yahoo.com" target="_blank">fts111.flickr.bf1.yahoo.com</a> (ApacheTrafficServer [cMs f ]),<br>> http/1.1 <a href="http://r11.ycpi.dea.yahoo.net" target="_blank">r11.ycpi.dea.yahoo.net</a> (ApacheTrafficServer [cMs f ])<br>> Connection: keep-alive<br>> ..<br>><br>> And this repeats on and on. As I understand disabling Via header is an<br>> acceptable solution. If I could disable the header only for problematic<br>> domains that would be better of course.<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'>Okay. Unfortunately not possible. If that forwarded_for change works it<br>would be better than disabling Via.<br><span style='color:#888888'><br><span class=hoenzb>Amos</span></span><o:p></o:p></p></blockquote></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- <o:p></o:p></p><div><p class=MsoNormal>H Özgür Batur<o:p></o:p></p></div></div></div></div></body></html>