39
View
System view
Default Level
3: Manage level
Parameters
acl-number
: Basic access control list (ACL) number, in the range 2000 to 2999.
Description
Use the
ftp server acl
command to control FTP clients’ access to the AC using an ACL.
Use the
undo ftp server acl
command to restore the default.
By default, no ACL is used to control FTP clients’ access to the AC.
Associated with an ACL, the FTP server can deny the FTP requests of some FTP clients
and only permit the access of clients allowed by the ACL rules. This configuration only
filters the FTP connections to be established, and has no effect on the established FTP
connections and operations. If you execute the command for 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 AC
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