GNU Free Documentation License . .

FTP

( «File Transfer Protocol»)
: ,
FTP
:

File Transfer Protocol

( OSI):

:

TCP/IP

:

1971 .

/ID:

21/TCP , 20/TCP , 49152-65534/TCP

:

:

RFC 959

():

FTP-

():

ProFTPd, Pure-FTPd, vsftpd, WU-FTPD, FileZilla Server, IIS, CrossFTP Server, wzdftpd

:

.

FTP (. File Transfer Protocol  , . FTP FTP, ; , (. FXP).

FTP , HTTP, 1971 . .

FTP TCP. , , . 20, , , 21 . . , - , , .

[]

, . , FTP, , , FTP . , (MAC-, ). , SSL, FTP- FTP-.

( \r\n ):

 TCP-   (  21 )
  USER \r\n
  PASS \r\n

( , ), «anonymous» «ftp»,   :

USER anonymous\r\n
PASS someone@email\r\n

.

[]

  • ABOR 
  • CDUP  .
  • CWD  .
  • DELE  (DELE filename).
  • EPSV  . PASV.
  • HELP  .
  • LIST  . .
  • MDTM  .
  • MKD  .
  • NLST  LIST. .
  • NOOP 
  • PASV  . . RETR, LIST .
  • PORT  . PORT 12,34,45,56,78,89. .
  • PWD  .
  • QUIT 
  • REIN 
  • RETR  . RETR PASV PORT.
  • RMD 
  • RNFR RNTO  . RNFR  , RNTO  .
  • SIZE 
  • STOR  . STOR PASV PORT.
  • SYST  (UNIX, WIN, )
  • TYPE  (, )
  • USER 

[]

220 FTP server ready.
USER ftp //
230 Login successful.
PASV
227 Entering Passive Mode (192,168,254,253,233,92)//       IP
LIST
150 Here comes the directory listing. //     
226 Directory send OK.
CWD incoming
250 Directory successfully changed.
PASV
227 Entering Passive Mode (192,168,254,253,207,56)
STOR gyuyfotry.avi
150 Ok to send data. //   
226 File receive OK.
QUIT
221 Goodbye.

192,168,254,253,207,56 , IP- 192.168.254.253 207 << 8 + 56 = 53048 ( << - , 207 , , 56 207*256+56=53048).

FTP- ( incoming, upload  . .), . .

[] PASSIVE MODE

TCP- . , IP NAT, , . , FTP passive mode, . , , . (49152-65534). ftp- NAT, .

[] NAT-PT

FTP- NAT, NAT-PT (rfc2766), NAT. NAT , , , . , FTP-, NAT-PT .

[] FXP

FXP (. File eXchange Protocol  )  FTP- , . FXP- FTP- , , PORT IP- .

FXP , , FTP- , -. , FTP-. , FTP-, «».

FXP : PORT IP- , RETR/STOR FTP-, , DDoS- FTP-, , IP FTP- . IP-, PORT, IP- FTP- IP- . , FXP FTP-.

[] .

[]