47
Use the
undo ftp server acl
command to restore the default.
By default, no ACL is used to control FTP clients’ access to the FTP server.
An ACL enables the FTP server to permit the FTP requests from specific FTP clients. This configuration only
filters the FTP connections to be established, and has no effect on existing FTP connections and
operations. If you execute the command multiple times, the last specified ACL takes effect.
Examples
# Associate the FTP service with ACL 2001 to allow only the client 1.1.1.1 to access the FTP server through
FTP.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule 0 permit source 1.1.1.1 0
[Sysname-acl-basic-2001] rule 1 deny source any
[Sysname-acl-basic-2001] quit
[Sysname] ftp server acl 2001
ftp server enable
Syntax
ftp server enable
undo ftp server
View
System view
Default level
3: Manage level
Parameters
None
Description
Use the
ftp server enable
command to enable the FTP server and allow the login of FTP users.
Use the
undo ftp server
command to disable the FTP server.
By default, the FTP server is disabled.
Examples
# Enable the FTP server.
<Sysname> system-view
[Sysname] ftp server enable
ftp timeout
Syntax
ftp timeout
minute
undo ftp timeout