Use
the PORTCOMMANDIPADDR statement to direct the server to accept only
PORT or EPRT commands whose IP address matches that of the client.
Syntax
.-PORTCOMMANDIPADDR UNRESTRICTED------.
>>-+-------------------------------------+---------------------><
'-PORTCOMMANDIPADDR--+-UNRESTRICTED-+-'
'-NOREDIRECT---'
Parameters
- UNRESTRICTED
- If PORTCOMMAND is set to ACCEPT or unspecified, the server accepts
any IP address as a parameter for the PORT and EPRT commands.
- NOREDIRECT
- If PORTCOMMAND is set to ACCEPT or unspecified, the server rejects
any PORT or EPRT command whose IP address does not match that of the
client.
Examples
Setting the server to reject all
PORT or EPRT commands with an IP address different from the IP address
of the control connection is shown in the following example:
PORTCOMMAND ACCEPT
PORTCOMMANDIPADDR NOREDIRECT
Usage notes
When PORTCOMMAND is set to
REJECT, all PORT and EPRT commands are rejected. PORTCOMMANDPORT and
PORTCOMMANDIPADDR settings are disregarded.