Networking Concepts

A firewall rule permits only TCP 21 to an FTP server. Clients in active mode authenticate and issue commands, but directory listings and transfers fail. Which additional port must the server be able to use to make active-mode transfers work?

Show the answer

Correct answerD. TCP 20

AWhy not this: UDP 69 is TFTP, a different protocol that FTP does not use for data.

BWhy not this: TCP 445 is SMB file sharing, unrelated to FTP data transfer.

CWhy not this: TCP 22 is SSH/SFTP; it plays no part in FTP's data channel.

DWhy this is right: In active mode the server opens the data connection from TCP 20, so blocking it breaks listings and transfers.

FTP uses TCP 21 for the control connection and, in active mode, TCP 20 as the server's source port for the data connection. Blocking it breaks listings and transfers. UDP 69 is TFTP, which is a separate protocol and does not carry FTP data.