[Melbourne-pm] FTP on RHEL [SEC=UNCLASSIFIED]

Brendon Oliver brendon.oliver at gmail.com
Mon Mar 16 15:27:44 PDT 2015


Upgrading libnet might help... Kal's (/wave) script  works for me: perl
5.20.2 + Net::FTP v3.05

[brendon at aragorn bin]$ ./test-ftp.pl
Net::FTP>>> Net::FTP(3.05)
Net::FTP>>>   Exporter(5.71)
Net::FTP>>>   Net::Cmd(3.05)
Net::FTP>>>   IO::Socket::IP(0.29)
Net::FTP>>>     IO::Socket(1.38)
Net::FTP>>>       IO::Handle(1.35)
Net::FTP=GLOB(0x150de88)<<< 220 ProFTPD 1.3.3g Server (ftp.arin.net)
[::ffff:199.212.0.151]
Net::FTP=GLOB(0x150de88)>>> USER anonymous
Net::FTP=GLOB(0x150de88)<<< 331 Anonymous login ok, send your complete
email address as your password
Net::FTP=GLOB(0x150de88)>>> PASS ....
Net::FTP=GLOB(0x150de88)<<< 230 Anonymous access granted, restrictions apply
Net::FTP=GLOB(0x150de88)>>> CWD /pub/stats
Net::FTP=GLOB(0x150de88)<<< 250 CWD command successful
Net::FTP=GLOB(0x150de88)>>> PASV
Net::FTP=GLOB(0x150de88)<<< 227 Entering Passive Mode
(199,212,0,151,219,13).
Net::FTP=GLOB(0x150de88)>>> NLST T*
Net::FTP=GLOB(0x150de88)<<< 450 No files found
No files found
        at main::(unknown source)


The changes page at https://metacpan.org/changes/distribution/libnet is not
very helpful tho - the version jumps from v.1.30 to 3.0 over 8/9 Oct
2014... but there are mentions of other issues with PASV mode, perhaps
they're related?

Cheers,

- Brendon

On Tue, Mar 17, 2015 at 9:11 AM, Kahlil Hodgson <
kahlil.hodgson at dealmax.com.au> wrote:

> I get the same issue when running on perl-5.18.4. Upgrading Perl may
> not help you here :-(
>
> Kahlil (Kal) Hodgson                       GPG: C9A02289
> Head of Technology                         (m) +61 (0) 4 2573 0382
> DealMax Pty Ltd                            GitHub: @tartansandal
>
> Suite 1416
> 401 Docklands Drive
> Docklands VIC 3008 Australia
>
> "All parts should go together without forcing.  You must remember that
> the parts you are reassembling were disassembled by you.  Therefore,
> if you can't get them together again, there must be a reason.  By all
> means, do not use a hammer."  -- IBM maintenance manual, 1925
>
>
> On 17 March 2015 at 09:04, Timothy Hunt <T.Hunt at bom.gov.au> wrote:
> > Thanks for this. It is passive which is killing us - many of our
> partners (data sources) are turning off active FTP, forcing passive. Hence
> the issue surfacing. I am working through a support case with RedHat and
> will be trying newer versions of Perl today.
> >
> > Cheers,
> > Tim.
> >
> > --
> > Tim Hunt
> > Information Systems and Services Division
> > Bureau of Meteorology
> > Level 7, 700 Collins Street, Docklands VIC 3008
> > Tel: +61 3 9669 4094 | t.hunt at bom.gov.au
> >
> > -----Original Message-----
> > From: Kahlil Hodgson [mailto:kahlil.hodgson at dealmax.com.au]
> > Sent: Tuesday, 17 March 2015 8:57 AM
> > To: Timothy Hunt
> > Cc: melbourne-pm
> > Subject: Re: [Melbourne-pm] FTP on RHEL [SEC=UNCLASSIFIED]
> >
> > Hi Tim,
> >
> > Managed to replicate your issue on a CentOS6 machine with this script
> https://gist.github.com/tartansandal/1f2582c4fca42719925e. If I change
> the connection to active rather than passive, It works for me. If I use
> passive mode, I get an error which throws to a bad part of the code which
> generates another error, masking the original error.
> >
> > Hope this helps.
> >
> > K
> >
> > Kahlil (Kal) Hodgson                       GPG: C9A02289
> > Head of Technology                         (m) +61 (0) 4 2573 0382
> > DealMax Pty Ltd                            GitHub: @tartansandal
> >
> > Suite 1416
> > 401 Docklands Drive
> > Docklands VIC 3008 Australia
> >
> > "All parts should go together without forcing.  You must remember that
> the parts you are reassembling were disassembled by you.  Therefore, if you
> can't get them together again, there must be a reason.  By all means, do
> not use a hammer."  -- IBM maintenance manual, 1925
> _______________________________________________
> Melbourne-pm mailing list
> Melbourne-pm at pm.org
> http://mail.pm.org/mailman/listinfo/melbourne-pm
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20150317/36312e95/attachment-0001.html>


More information about the Melbourne-pm mailing list