- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Using Windows FTP in PASSIVE mode
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 10:23 AM
тАО07-10-2006 10:23 AM
This works: I connect from VMS Host A (outside the router) to Host B via FTP, issue a SET PASSIVE ON, and then I can xfer files from A to B via a PUT cmd.
Can't get this to work: If I connect from my PC (outside the router) via XP's standard FTP to B, I can't seem to get the PASSIVE mode enabled.
I've tried: literal PASV
and: quote PASV
but no go.
Any suggestions? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 10:33 AM
тАО07-10-2006 10:33 AM
Re: Using Windows FTP in PASSIVE mode
_agree_ to use passive mode. Setting the
server mode without telling the client seems
unlikely to do any good. If this is to work,
the client must have some sort of command
equivalent to "SET PASSIVE ON". Perhaps
"passive"? (And then the client should send
a suitable FTP PASV command to the server
without your having to do it manually.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 02:10 PM
тАО07-10-2006 02:10 PM
Re: Using Windows FTP in PASSIVE mode
Phil
H:\>ftp
ftp> open xyz
Connected to xyz.xxxxxxxxxx.xxx.xx.
220 xyz.xxxxxxxxxx.xxx.xx. FTP Server (Version 5.1) Ready.
User (xyz.xxxxxxxxxx.xxx.xx:(none)): yyyyyy_zz
331 Username yyyyyy_zz requires a Password
Password:
230 User logged in.
ftp> quote pasv
227 Entering Passive Mode (nn,nn,nn,nnn,nnn,nnn)
ftp> bye
221 Goodbye.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 02:42 PM
тАО07-10-2006 02:42 PM
Re: Using Windows FTP in PASSIVE mode
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 04:15 PM
тАО07-10-2006 04:15 PM
Re: Using Windows FTP in PASSIVE mode
the server for a passive transfer, but what
tells the client to initiate a passive
transfer? And if the client's not in passive
mode, how is it supposed to move a file to or
from a server which _is_ in passive mode?
Of course, I could just be venting methane,
but I believe that the client, when in
active mode, sends a PORT command to the
server to tell the server which address and
port number to use for the transfer, while in
passive mode, the client sends the server a
PASV command, and gets back the address and
port number to use (the server's preference).
You can do all of these that you wish using
the quote command, but, when it comes time to
do a put or get (STOR or RETR), the client
will do what it thinks is appropriate.
For a good time, in the VMS-to-VMS situation,
try a transfer before and after one of those
"quote pasv" commands. I believe that you'll
see no change in what happens in the
transfer. Use the (undocumented?) "debug"
command to see more. On my system:
alp $ ftp alp-l
220- Antinode FTP Server. Please be nice.
220 alp.antinode.org FTP Server (Version 5.4) Ready.
Connected to alp.
Name (alp:sms):
331 Username sms requires a Password
Password:
230 User logged in.
FTP> debug
Debugging on (debug=1).
FTP> get a.a q.q
---> TYPE I
200 TYPE set to IMAGE.
---> PORT 10,0,0,9,210,14
200 PORT command successful.
---> RETR a.a
150 Opening data connection for ALP$DKA0:[SMS]a.a; (10.0.0.9,53774) (4 bytes)
226 Transfer complete.
local: ALP$DKA0:[SMS]Q.Q;1 remote: a.a
4 bytes received in 00:00:00.01 seconds (0.39 Kbytes/s)
[Note that the client used a PORT command to
give the server an address and port number,
as it was not in passive mode.]
FTP> quote pasv
---> pasv
227 Entering Passive Mode (10,0,0,9,210,15)
[Looks good, but does nothing useful, I
claim. Observe the next transfer.]
FTP> get a.a p.p
---> PORT 10,0,0,9,210,16
200 PORT command successful.
---> RETR a.a
150 Opening data connection for ALP$DKA0:[SMS]a.a; (10.0.0.9,53776) (4 bytes)
226 Transfer complete.
local: ALP$DKA0:[SMS]P.P;1 remote: a.a
4 bytes received in 00:00:00.01 seconds (0.33 Kbytes/s)
[Note that the client _still_ uses a PORT
command here. It's still not thinking
passive.]
FTP> passive
_ON|OFF|AUTO|ALL: on
Passive is ON.
[_Now_ the client is thinking passive ...]
FTP> get a.a s.s
---> PASV
227 Entering Passive Mode (10,0,0,9,210,17)
---> RETR a.a
150 Opening data connection for ALP$DKA0:[SMS]a.a; (10.0.0.9,53778) (4 bytes)
226 Transfer complete.
local: ALP$DKA0:[SMS]S.S;1 remote: a.a
4 bytes received in 00:00:00.01 seconds (0.30 Kbytes/s)
[... and so this transfer included a PASV
command instead of a PORT command, and the
server's response provided the address and
port number for the client to use.]
FTP> quit
---> QUIT
221 Goodbye.
(In this case, the server and client both
had the same IP address, which could be a
bit confusing, unless you just ignore that
part, in which case, it's all harmless.)
So, as I said, you need to tell the client to
use passive mode. If your client can't do
passive mode, then you'll need to get a
better client. You can't get the client into
passive mode by manually sending ("quote") a
PASV command to the server.
Google did find this guide, which might be
useful:
http://www.ncftp.com/ncftpd/doc/misc/ftp_and_firewalls.html
and
http://slacksite.com/other/ftp.html
Around here:
alp $ tcpip show version
HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 5
on a COMPAQ Professional Workstation XP1000 running OpenVMS V7.3-2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 06:04 PM
тАО07-10-2006 06:04 PM
Re: Using Windows FTP in PASSIVE mode
Try a TCP trace on VMS to see if the PASV arrived.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 06:12 PM
тАО07-10-2006 06:12 PM
Re: Using Windows FTP in PASSIVE mode
Is it doing passive transfers? Really? (How
do you know?)
> Try a TCP trace on VMS to see if the PASV
> arrived.
Please review:
> ftp> quote pasv
> 227 Entering Passive Mode (nn,nn,nn,nnn,nnn,nnn)
The 227 response shows that the PASV command
arrived. (But that has no effect on any
future file transfers.)
But if you know how to put the Windows XP FTP
client into passive mode, you might still
make a valuable contribution. (And if it has
a "debug" mode.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 06:49 PM
тАО07-10-2006 06:49 PM
SolutionAFAIK, the standard Win32 command line FTP client does not have the ability to use passive mode.
You'd have to use some other FTP client (e.g. FileZilla from http://filezilla.sourceforge.net/ )
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 07:57 PM
тАО07-10-2006 07:57 PM
Re: Using Windows FTP in PASSIVE mode
I used "quote pasv".
I do not know how ftp is reacting if a firewall is filtering out the PASV command (hey, it's just a program). It could be that it reacts with "unknown command" or something like that. That's why I propose a tcp trace.
As long as we don't have the exact error messages, everything is open.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 08:04 PM
тАО07-10-2006 08:04 PM
Re: Using Windows FTP in PASSIVE mode
I did get an 227.
My XP exe is in system32.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 08:18 PM
тАО07-10-2006 08:18 PM
Re: Using Windows FTP in PASSIVE mode
ftp://ftp.gnu.org/old-gnu/emacs/windows/contrib/ftp-for-win32.zip
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2006 04:14 AM
тАО07-11-2006 04:14 AM
Re: Using Windows FTP in PASSIVE mode
> messages, everything is open.
Oops. I confused a response from Mr. Howell
with more info from the original poster.
The fact remains that, at most, "quote pasv"
will tell you if the FTP server is _willing_
to do a passive transfer. It will _not_
cause the next transfer to be done
passively.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2006 03:51 AM
тАО07-12-2006 03:51 AM
Re: Using Windows FTP in PASSIVE mode
Two things I've since discovered:
1) Windows FTP does seem to support Passive mode. In fact, there is a Windows Registry item for FTP "use PASV yes", so FTP seems to default to passive mode.
2) I discovered that the Internet Explorer's built-in FTP can connect to my "Host B" and both get a dir listing and xfer a file to me (though it has other problems: the dir listing doesn't show directories, and after the 1st file xfer it won't do another!)
Thanks all