32
Usage guidelines
The system automatically terminates the user's connections if there is no information interaction between
the device and the users within the idle timeout time.
Setting idle-timeout to zero disables the timer. In this case, connections are maintained unless you
terminate them.
Examples
# Set the idle-timeout timer to 1 minute and 30 seconds.
<Sysname> system-view
[Sysname] user-interface aux 0
[Sysname-ui-aux0] idle-timeout 1 30
ip http acl
Use
ip http acl
to associate the HTTP service with an ACL.
Use
undo ip http acl
to remove the association.
Syntax
ip http acl
acl-number
undo ip http acl
acl-number
Default
The HTTP service is not associated with any ACL.
Views
System view
Default command level
2: System level
Parameters
acl-number
: Specifies an ACL number in the range of 2000 to 2999. The value range depends on your
device model.
Usage guidelines
After the HTTP service is associated with an ACL, only clients permitted by the ACL can access the device
through HTTP.
The HTTP service can be associated with only one basic ACL. If you execute the
ip http acl
command
multiple times, the most recent configuration takes effect.
Examples
# Associate the HTTP service with ACL 2001 to only allow the clients within the 10.10.0.0/16 network to
access the device through HTTP.
<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