Network Working Group S. Bellovin
Request for Comments: 1579 AT&T Bell Laboratories
Category: Informational February 1994
Firewall-Friendly FTP
Bellovin [Page 1]
RFC 1579 Firewall-Friendly FTP February 1994
Outgoing calls, on the other hand, present fewer problems, either for the firewall administrator or for the packet filter. Any TCP packet with the ACK bit set cannot be the packet used to initiate a TCP connection; filters can be configured to pass such packets in the outbound direction only. We thus want to change the behavior of FTP so that the data channel is implemented as a call from the client to the server.
Bellovin [Page 2]
RFC 1579 Firewall-Friendly FTP February 1994
If we accept that clients should always perform active opens, it might be worthwhile enhancing the FTP protocol to eliminate the extra exchange entirely. At startup time, the client could send a new command APSV ("all passive"); a server that implements this option would always do a passive open. A new reply code 151 would be issued in response to all file transfer requests not preceded by a PORT or PASV command; this message would contain the port number to use for that transfer. A PORT command could still be sent to a server that had previously received APSV; that would override the default behavior for the next transfer operation, thus permitting third-party transfers.
Bellovin [Page 3]
RFC 1579 Firewall-Friendly FTP February 1994
References