Troubleshooting
Problem
This document describes how the EPASV (extended passive) command can be disabled in the iSeries FTP client.
Resolving The Problem
At R610, the iSeries FTP client started to support the EPASV (Extended Passive, EPSV) command and EPORT (Extended Port, EPRT). The FTP client defaults to these 2 options being enabled, if the server or networking equipment being used does not these options it can cause issues. If we get a response from the server that extended passive is not supported the FTP client will fail over to Passive mode FTP.
229 Entering Extended Passive Mode
In these cases, the EPASV/EPORT commands must be disabled.
The FTP client attempts data connections in the following manner:
Extended Passive
Passive
Extended Port
Port
As a result, if PORT mode is needed, the three preceding data connection types must first be toggled off. This can be done in one of two ways:
1. On a connection-by-connection basis using FTP client subcommands:
o SENDEPSV - Toggles Extended passive
o SENDPASV - Toggles Passive mode
o SENDEPRT - Toggles Extended Port
Note: The data connection type can also be set (regardless of what the default behavior is) by using the 0 or 1 switches with the above 3 commands. For instance:
SENDEPSV 1 - would toggle extended passive on
SENDEPSV 0 - would toggle extended passive off
2. On a system-wide basis with the use of data areas:
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPSV) TYPE(*LGL) AUT(*USE) - disables EPASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPPASV) TYPE(*LGL) AUT(*USE) - disables PASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPRT) TYPE(*LGL) AUT(*USE) - disables EPORT with PTF SI33243 applied to the system - no ptf is needed for releases after R610.
229 Entering Extended Passive Mode
In these cases, the EPASV/EPORT commands must be disabled.
The FTP client attempts data connections in the following manner:
Extended Passive
Passive
Extended Port
Port
As a result, if PORT mode is needed, the three preceding data connection types must first be toggled off. This can be done in one of two ways:
1. On a connection-by-connection basis using FTP client subcommands:
o SENDEPSV - Toggles Extended passive
o SENDPASV - Toggles Passive mode
o SENDEPRT - Toggles Extended Port
Note: The data connection type can also be set (regardless of what the default behavior is) by using the 0 or 1 switches with the above 3 commands. For instance:
SENDEPSV 1 - would toggle extended passive on
SENDEPSV 0 - would toggle extended passive off
2. On a system-wide basis with the use of data areas:
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPSV) TYPE(*LGL) AUT(*USE) - disables EPASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPPASV) TYPE(*LGL) AUT(*USE) - disables PASV
o CRTDTAARA DTAARA(QUSRSYS/QTMFTPEPRT) TYPE(*LGL) AUT(*USE) - disables EPORT with PTF SI33243 applied to the system - no ptf is needed for releases after R610.
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Historical Number
484261471
Was this topic helpful?
Document Information
Modified date:
09 August 2024
UID
nas8N1013732