Re: How to configure ftp.exe to use passive mode (PASV)?
curiousgeorge408@hotmail.com wrote:
> On Oct 24, 9:28?am, Tim Slattery <Slatter...@bls.gov> wrote:
> > fr...@theshire.net wrote:
> > > the ftp command line is:
> > > ftp> quote pasv
> > > and yes it is supported, it'll respond w/ "227 entering passive mode
> >
> > Yeah, but....
> > That tells the server to go into passive mode, the client still knows
> > nothing about it. According to
> > http://www.iss.net/security_center/advice/Services/FTP/PASV/default.htm
> Thanks for the confirmation. I appreciate this pointer.
> I had tried "quote pasv" previously, and a network trace showed that
> it does send PASV, and the ftp server does respond with "entering
> passive mode".
> But subsequent transmissions from the ftp client were not right, and
> the FTP dir, get or put command timed out.
Well, I did some investigating and here's what I found. My ftp script has
had the "quote pasv" command line in it for years. I use it every day to
sync w/ a unix box, and it works fine. As I recall I _HAD_ to add that
line to get it to work, because of a firewall at my end (ZA). Back then
(years ago) I connected via a dial-up modem.
For grins I just took the pasv line out of the script, and everything
still works just fine; I still have ZA running too, but now I go thru my
LAN port to a FIOS router; I imagine the (modern) router's NAT function is
handling the Active Mode connection properly.
reference:
http://www.slacksite.com/other/ftp.html
But, bottom line, with or without it my ftp sessions work just fine. I am
using the (primitive) MS-provided win-xp ftp client. There are many
(better) ftp clients out there, perhaps you should try another. Or
perhaps your router needs a setting tweak.
Sorry I couldn't be more help.