<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Helvetica 45 Light";
panose-1:2 11 4 3 2 2 2 2 2 4;}
@font-face
{font-family:Mistral;
panose-1:3 9 7 2 3 4 7 2 4 3;}
@font-face
{font-family:"Bradley Hand ITC";
panose-1:3 7 4 2 5 3 2 3 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="color:#1F497D">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have been working to check squid v4.13 functionality with a FTP.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">My use case is simple and it says we have a file on FTP at root and I just have to wget that file from my client.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So I have,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:Wingdings;color:#1F497D">à</span><span style="color:#1F497D">Created a file on root of FTP “<b>touch test.txt</b>”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Wingdings;color:#1F497D">à</span><span style="color:#1F497D">Allowed the destination IP of FTP in my squid.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Then I have exported proxy on my
<b>client</b> as <o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D">export ftp_proxy=http://${squid.IP}:${Squid.Port}/<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F497D">and <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Now when I try to download the file like this,<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D">wget -m ftp://<id>:<pass>@${FTP.Prod_IP}/test.txt<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I am facing below error on <b>client</b>:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D">Proxy request sent, awaiting response... 502 Bad Gateway<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="color:#1F497D"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="color:#1F497D">which indicates that the squid (server acting as a proxy) was not able to get a valid or any response from the FTP server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So, I tried wget directly from my
<b>squid</b> to <b>FTP, </b>it ended in error,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="color:#1F497D">“Logging in as root ... Error in server greeting. Retrying.”
</span></b><span style="color:#1F497D">(which is my concern)<b><o:p></o:p></b></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">It’d be great, If there is any advice I could get from you guys as about where I am wrong or what am I missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank You<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:0in;text-autospace:none">
<span lang="FR" style="font-size:10.0pt;font-family:"Helvetica 45 Light","sans-serif";color:#1F497D;mso-fareast-language:FR">Bien cordialement,</span><span style="font-size:10.0pt;font-family:"Bradley Hand ITC";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:0in;text-autospace:none">
<b><span lang="FR" style="font-size:16.0pt;font-family:Mistral;color:black">Piyush Gaba<o:p></o:p></span></b></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:0in;text-autospace:none">
<span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:gray">Tower B, 8th Floor, DLF Infinity Towers, </span><span style="color:#F79646"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:2.0pt;margin-right:0in;margin-bottom:2.0pt;margin-left:0in;text-autospace:none">
<span lang="FR" style="font-size:9.0pt;font-family:"Arial","sans-serif";color:gray">DLF Cyber City Phase - II<br>
Gurgaon - 122002, Haryana, INDIA</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#E36C0A">[Email]
<a href="mailto:piyush.gaba@orange.com">piyush.gaba@orange.com</a></span><span style="color:#1F497D">
</span><span style="color:#1F497D"> </span><span style="color:#1F497D"><o:p></o:p></span></p>
</div>
<PRE>_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
</PRE></body>
</html>