Summary

  • FTP ran commands over a control connection and pushed file contents over a separate data connection.
  • RFC 1579 (1994) leaned on the existing PASV command to flip who opened that data connection—easier for client-side packet filters, harder for servers.

FTP could accept “send me this file” on a connection that never carried the file. That split was baked into the design from the start. It also meant a clean login and a cheerful RETR proved nothing about delivery: a second TCP connection still had to open, in whichever direction FTP had chosen.

One conversation, two connections

The 1985 specification, RFC 959, drew the line plainly: a control process for commands and replies, separate data processes for the bytes. In the usual arrangement the client dialed the server’s control port—port 21—then sent PORT with its own address and a port where it was listening. The server called back to open the data connection. Command socket and data socket were different sockets, so a firewall that waved through the first had no obligation to wave through the second.

PASV: the client makes the call

FTP already carried a second arrangement. With PASV, the client asked the server’s data process to listen on a non-default port; the server replied with its address and port, and the client opened the data connection. The file still crossed a second connection—only the caller changed. Passive mode sat in the protocol for years before packet filters made it famous.

The 1994 memo: Steven Bellovin’s firewall-friendly FTP

By 1994 the everyday pattern had drifted from the original default. Steven Bellovin’s RFC 1579 notes that clients commonly opened a fresh data connection per transfer, picked a new client port to dodge TCP’s TIME-WAIT delay, and announced it with PORT. To a packet filter that looked like an incoming call to an unpredictable port. Firewalls happily admitted selected inbound services while rejecting exactly this kind of knock—even after the user had authenticated on the control connection.

RFC 1579 told vendors to change their clients, Gopher proxy agents included, to prefer PASV over PORT. The data connection then became an outgoing call, and in the logic of a client-side firewall an outgoing initiation is easier to permit than an unsolicited inbound connection to a random port. No new wire protocol was needed: the command already existed, and client and server swapped a similar setup before every transfer either way.

Moving the problem, not solving it

The change relocated the hard boundary rather than dissolving it. A passive-mode server now had to accept incoming data calls on ports chosen for transfers, and RFC 1579 conceded its fix could create a firewall headache on the server side. The argument was administrative: servers are fewer than clients, and one operator can fence a server’s data-port range. That is a proposal about where to manage exposure—not proof that every server or firewall signed on.

What the standards record actually proves

The paper trail separates a required capability from real behavior. RFC 1123, in 1989, required FTP servers to implement PASV and clarified how to read its reply, while admitting the reply formatting was never fully standardized. RFC 1579 later counted at least two independent modified clients. Neither sentence measures how many users or sites switched modes. The 1994 memo records a recommendation and a handful of implementations—not a universal migration.

The lesson: follow both sockets

That distinction matters because FTP had two operational surfaces. The control connection carried credentials, commands and success replies; the data connection carried a listing or a file. A control-channel “opening data connection” was not the file, and a successful login was not evidence the transfer finished. Troubleshooting had to chase both sockets and ask which endpoint was supposed to start each one.

The lesson in RFC 1579 is narrower than “firewalls broke FTP.” FTP had always offered a choice of data-connection direction; filtering made that choice matter. PASV let a client put the initiating call on the side where its firewall was likelier to say yes, while handing the server operator a bounded set of inbound ports to police. The protocol never changed. The location of the burden did.

Sources