Configuring proper parameters for the FTP server ensures device security and maximizes resource usage efficiency.
FTP server parameters can be configured as follows:
Perform the following steps on the device to be used as an FTP server:
The system view is displayed.
Run the ftp server-source { -a ip-address | i { interface-type interface-number | interface-name } } command to configure a source IP address for the FTP server.
After the source IP address is configured, the address specified in the ftp command for login to the FTP server must be the configured source IP address. Otherwise, the login fails.
After this command is run, the FTP server will receive login connection requests from all interfaces, which increases system security risks. Therefore, running this command is not recommended.
Run the ftp ipv6 server-source -a ipv6-address [ -vpn-instance vpn-instance-name ] command to configure a source IPv6 address for the FTP server.
After this command is run, the FTP server will receive login connection requests from all interfaces with an IPv6 address configured, which increases system security risks. Therefore, running this command is not recommended.
After the interface isolation attribute is set successfully, packets can be sent to the server only through the specified physical interface, and those sent through other interfaces are discarded.
The maximum number of FTP connections to the server is set.
A timeout period of an idle FTP connection is configured.
The configuration is committed.