PORTCOMMANDPORT (FTP server) statement

Use the PORTCOMMANDPORT statement to specify what range of port values the server accepts as a parameter for the PORT or EPRT command.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-PORTCOMMANDPORT UNRESTRICTED------.   
>>-+-----------------------------------+-----------------------><
   '-PORTCOMMANDPORT--+-UNRESTRICTED-+-'   
                      '-NOLOWPORTS---'     

Parameters

UNRESTRICTED
If PORTCOMMAND is set to ACCEPT or unspecified, the server accepts any port number as a parameter for the PORT or EPRT command.
NOLOWPORTS
If PORTCOMMAND is set to ACCEPT or unspecified, the server rejects any PORT or EPRT command specifying a port number lower than 1024.

Examples

Setting the server to reject all PORT or EPRT commands with a port number less than 1024 is shown in the following example:
PORTCOMMAND ACCEPT
PORTCOMMANDPORT NOLOWPORTS

Usage notes

When PORTCOMMAND is set to REJECT, all PORT and EPRT commands are rejected. PORTCOMMANDPORT and PORTCOMMANDIPADDR settings are disregarded.

Related topics