Use
the PASSIVEIGNOREADDR statement to direct the FTP client to ignore
the IP address returned from the server on the PASV reply on IPv4
sessions. You can also use the subcommand to set this parameter.
Restrictions: - The FTP server ignores this statement.
- When EPSV4 and PASSIVEIGNOREADDR are TRUE, the client tries the
EPSV command first. If the EPSV command does not succeed, and FRIENDLY
is TRUE, then the client tries the PASV command. The PASSIVEIGNOREADDR
value determines how the FTP client uses the IP address that is returned
by the PASV command.
Syntax
.-PASSIVEIGNOREADDR FALSE------.
>>-+------------------------------+----------------------------><
'-PASSIVEIGNOREADDR--+-FALSE-+-'
'-TRUE--'
Parameters
- FALSE
- For passive mode FTP, specifies that the FTP client uses the IP
address and port number from the PASV command reply that is returned
by the FTP server for the data connection. This is the default value.
- TRUE
- For passive mode FTP, specifies that the FTP client uses the port
number from the PASV command reply, and the IP address used to log
into the FTP server, for the data connection.
Guideline: If your client has trouble
establishing a data connection on an IPv4 encrypted session through
a NAT firewall, and the FTP server does not support extended passive
mode, coding PASSIVEIGNOREADDR TRUE might help.
Requirement: FWFRIENDLY
must also be set to TRUE to enable this function.
Examples
To direct the client to ignore
the IP address on the FTP server's PASV reply, use the following code:
PASSIVEIGNOREADDR TRUE