Hi, Our firewall configuration expects the below dialog when connecting manually:
ftp ftp.glb.xyz.net Connected to ftp.glb.xyz.net 220-Firewall ftp proxy. You must login to the proxy first. 220 Username: User (ftp.glb.xyz.net:(none)): <proxy_user> 331 Password: <proxy_pass> 230-Proxy authentication successful. Connecting to the server... 230-Firewall ftp proxy. You must login to the proxy first. 230 Please use the 'user' command to login to the FTP server. ftp> user <ftp_user>@remote-ftpsite.com 331-ftp1pdmz8 NcFTPd Server (licensed copy) ready. 331- 331 User <ftp_user> okay, need password. Password: <ftp_pass> 230-You are user #251 of 1000 simultaneous users allowed. 230 Restricted user logged in. =================== To accomplish this in Perl, we did the below: my $ftp = Net::FTP->new(‘remote-ftpsite.com’, Firewall => ftp.glb.xy +z.net', FirewallType => 7, Debug => 1 ); $ftp->authorize($proxy_user , $proxy_pass); my $ret = $ftp->login($ftp_user, $ftp_pass); ======================== But we are getting below error: Net::FTP>>> Net::FTP(2.75) Net::FTP>>> Exporter(5.57) Net::FTP>>> Net::Cmd(2.26) Net::FTP>>> IO::Socket::INET(1.27) Net::FTP>>> IO::Socket(1.28) Net::FTP>>> IO::Handle(1.23) Net::FTP=GLOB(0x2c640ffc)<<< 220-Firewall ftp proxy. You must login t +o the proxy first. Net::FTP=GLOB(0x2c640ffc)<<< 220 Username: Net::FTP=GLOB(0x2c640ffc)>>> AUTH <proxy_user> Net::FTP=GLOB(0x2c640ffc)<<< 530 Please log in with USER. Net::FTP=GLOB(0x2c640ffc)>>> user <ftp_user>@remote-ftpsite.com Net::FTP=GLOB(0x2c640ffc)<<< 331 Password: Net::FTP=GLOB(0x2c640ffc)>>> PASS .... Net::FTP=GLOB(0x2c640ffc)<<< 421 Proxy authentication failure. 19:24:03 Feed: 'BLOOMBERG' Error: Unable to connect to @remote-ftpsit +e.com ============================== It seems that it issued the User command correctly as expected: User <ftp_user>@remote_ftpsite.com (which works fine from command prom +pt) But not sure why it’s failing. Tried with the other Firewall types as +well (just in case), but no luck. Any help will be greatly appreciated.

In reply to FTP through Firewall by mjdm_07

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.