Ip Http Acl; Ip Http Enable - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

ip http acl

Syntax
ip http acl acl-number
undo ip http acl
View
System view
Default Level
2: System level
Parameters
acl-number: ACL number, in the range 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.
Note that: If you execute the ip http acl command for multiple times to associate the HTTP service with
different ACLs, the HTTP service is only associated with the last specified ACL.
Related commands: display ip http and acl number in ACL Commands.
Examples
# Configure to associate the HTTP service with ACL 2001 and only allow the clients within the
10.10.0.0/16 network segment to access the device through the Web function.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 10.10.0.0 0.0.255.255
[Sysname-acl-basic-2001] quit
[Sysname] ip http acl 2001

ip http enable

Syntax
ip http enable
undo ip http enable
View
System view
Default Level
2: System level
1-2

Advertisement

Table of Contents
loading

Table of Contents