Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-09-11, 02:48
BOD Member
 
Join Date: May 2011
Posts: 47
Default Active FTP

What is Active FTP? Can any one help me with it?
Reply With Quote
  #2 (permalink)  
Old 11-09-11, 03:35
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

In active mode FTP the client connects from a random unprivileged port (N > 1023) to the FTP server's command port, port 21. Then, the client starts listening to port N+1 and sends the FTP command PORT N+1 to the FTP server. The server will then connect back to the client's specified data port from its local data port, which is port 20.

From the server-side firewall's standpoint, to support active mode FTP the following communication channels need to be opened:

FTP server's port 21 from anywhere (Client initiates connection)
FTP server's port 21 to ports > 1023 (Server responds to client's control port)
FTP server's port 20 to ports > 1023 (Server initiates data connection to client's data port)
FTP server's port 20 from ports > 1023 (Client sends ACKs to server's data port)
Reply With Quote
  #3 (permalink)  
Old 11-09-11, 04:49
BOD Member
 
Join Date: May 2011
Posts: 47
Default

Thank you 77wmaster.
Please let me know about passive FTP?
Reply With Quote
  #4 (permalink)  
Old 11-09-11, 05:30
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

In order to resolve the issue of the server initiating the connection to the client a different method for FTP connections was developed. This was known as passive mode, or PASV, after the command used by the client to tell the server it is in passive mode.

In passive mode FTP the client initiates both connections to the server, solving the problem of firewalls filtering the incoming data port connection to the client from the server. When opening an FTP connection, the client opens two random unprivileged ports locally (N > 1023 and N+1). The first port contacts the server on port 21, but instead of then issuing a PORT command and allowing the server to connect back to its data port, the client will issue the PASV command. The result of this is that the server then opens a random unprivileged port (P > 1023) and sends the PORT P command back to the client. The client then initiates the connection from port N+1 to port P on the server to transfer data.

From the server-side firewall's standpoint, to support passive mode FTP the following communication channels need to be opened:

FTP server's port 21 from anywhere (Client initiates connection)
FTP server's port 21 to ports > 1023 (Server responds to client's control port)
FTP server's ports > 1023 from anywhere (Client initiates data connection to random port specified by server)
FTP server's ports > 1023 to remote ports > 1023 (Server sends ACKs (and data) to client's data port)
Reply With Quote
  #5 (permalink)  
Old 11-09-11, 23:02
BOD Member
 
Join Date: May 2011
Posts: 47
Default

Can anyone define that how each FTP mode works?
Reply With Quote
  #6 (permalink)  
Old 11-11-11, 04:31
BOD Member
 
Join Date: Dec 2010
Posts: 227
Default

Active FTP :
command : client >1023 -> server 21
data : client >1023 <- server 20

Passive FTP :
command : client >1023 -> server 21
data : client >1023 -> server >1023
Reply With Quote
  #7 (permalink)  
Old 11-30-11, 05:30
BOD Member
 
Join Date: Sep 2011
Posts: 5
Default

Thank you so much for the info.. I was completely unaware about it :(
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.