To make the FTP client use SOCKS, add or edit the FTP client configuration dataset (or file). The FTP client configuration can be defined in several places (globally or per user) and the first configuration found is used.The search order for the configuration is listed in the IBM document z/OS Communication Server: IP Configuration Reference. Make sure that you define the configuration in a location that has the highest precedence on your system.
In the FTP client configuration dataset (for example,
userid.FTP.DATA
), add the following line that specifies the
SOCKS configuration file to be used, for example:
SOCKSCONFIGFILE /etc/socks.conf
The example above specifies a SOCKS configuration that is usable in
the whole system. The SOCKS configuration can also be user-specific, for
example $HOME/socks.conf
.
The SOCKS configuration can also be a dataset, for example:
SOCKSCONFIGFILE TSTUSR.SSHFTP.SOCKS.CONF
FTP clients must use PASSIVE or EXTENDED PASSIVE mode for file transfers. ACTIVE mode is not supported with transparent FTP tunneling. PASSIVE mode can be activated by adding the following line to the FTP client configuration dataset:
FWFRIENDLY TRUE