Re: Passive means what during FTP?
From: Robert Nichols (SEE_SIGNATURE_at_localhost.localdomain.invalid)
Date: 05/31/05
- Previous message: jimbo: "Re: New to linux, 2 hard drives, dual boot"
- In reply to: case: "Passive means what during FTP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 31 May 2005 15:36:13 +0000 (UTC)
In article <d7h10k$1j8e$1@mail.cn99.com>, case <case@c.com> wrote:
:ftp> put client.conf
:local: client.conf remote: client.conf
:227 Entering Passive Mode (192,168,0,152,238,18)
:ftp: connect: No route to host
:ftp> passive
:Passive mode off.
:ftp> put client.conf
:local: client.conf remote: client.conf
:200 PORT command successful. Consider using PASV.
:150 Ok to send data.
:###
:226 File receive OK.
:3590 bytes sent in 0.0394 secs (89 Kbytes/sec)
:
:Why file trasfer failed in Passive mode?
The FTP data transfer uses a connection that is separate from the
control connection. Active vs. passive mode selects whether it is the
server or the client that opens the data connection. Firewalls can
prevent one or the other (or both!) from working.
Active mode:
Over the control connection, the client tells the server what IP
address and port number to connect to for the data transfer. The server
opens a connection from its own port 20 (FTP-Data). A server firewall
needs to allow the outgoing port 20 connection. A firewall on the
client needs to be clever enough to look inside the control packet to
find the port number and then allow the incoming data connection.
Passive mode:
Just the reverse of the above. The server tells the client what IP
address and port number to connect to for the data transfer. The client
opens a connection from its own port 20 (FTP-Data). A client firewall
needs to allow the outgoing port 20 connection. A firewall on the
server needs to be clever enough to look inside the control packet to
find the port number and then allow the incoming data connection.
In both cases, any intervening NAT routers introduce an additional
layer of complexity. Suffice to say they need to be "FTP-aware".
-- Bob Nichols AT comcast.net I am "rnichols42"
- Previous message: jimbo: "Re: New to linux, 2 hard drives, dual boot"
- In reply to: case: "Passive means what during FTP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|