182
ip http acl
Syntax
ip http acl
acl-number
undo ip http acl
acl-number
View
System view
Default Level
2: System level
Parameters
acl-number
: ACL number, which ranges from:
100 to 199: WLAN ACL
2000 to 2999: basic IPv4 ACL
Description
Use the
ip http acl
command to associate the HTTP service with an ACL.
Use the
undo ip http acl
command to remove the association.
By default, the HTTP service is not associated with any ACL.
After the HTTP service is associated with an ACL, only the clients permitted by the ACL
can access the device.
The HTTP service can be associated with a WLAN ACL and a basic ACL, and the two
types of ACLs will not overwrite each other. However, ACLs of the same type will
overwrite each other. If you execute the
ip http acl
command for multiple times to
associate the HTTP service with the same type of ACLs, the HTTP service is only
associated with the last specified ACL.
When the HTTP service is associated with a WLAN ACL, the HTTP service uses this ACL to
filter wireless clients only, and does not filter wire clients with this ACL.
Related commands:
display ip http
(in
HTTP
in the
Fundamentals Command
Reference
),
acl number
(in
ACL
in the
ACL and QoS Command Reference
)
.
Examples
Example 1:
Associate the HTTP service with ACL 100 and only allow the wireless client with the SSID
user-ssid-name
to access the device through the Web function.
<Sysname> system-view
[Sysname] acl number 100