
© 2022 HyQuest Solutions
131
Appendices
8.2
FTP Terminology
This chapter contains the following subsection:
§
8.2.1
Active verses Passive mode
The following explanation is paraphrased from the web page
https://slacksite.com/other/ftp.html
Introduction
One of the most commonly seen questions when dealing with firewalls and other Internet connectivity issues is the
difference between active and passive FTP and how best to support either or both of them.
FTP is a TCP based service exclusively. There is no UDP component to FTP. FTP is an unusual service in that it utilizes two
ports, a 'data' port and a 'command' port (also known as the control port). Traditionally these are port 21 for the
command port and port 20 for the data port. The confusion begins however, when we find that depending on the mode,
the data port is not always on port 20.
Active FTP
In active mode FTP the client (iRIS) 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)
When drawn out, the connection appears as follows:
131
Содержание iRIS 270
Страница 1: ...iRIS 270 User Manual...
Страница 124: ...2022 HyQuest Solutions 124 Operation Figure 27 Shows an example of using the scaling calculator for a 4 20mA sensor...
Страница 135: ...2022 HyQuest Solutions 135 Appendices 8 3 Declaration of Conformity...
Страница 137: ...www hyquestsolutions com 2022 HyQuest Solutions 13 06 2022...