81
<Sysname> system-view
[Sysname] acl number 2000 match-order config
[Sysname-acl-basic-2000] rule 1 permit source 10.110.100.52 0
[Sysname-acl-basic-2000] rule 2 permit source 10.110.100.46 0
[Sysname-acl-basic-2000] quit
# Associate the ACL with the SNMP community and the SNMP group.
[Sysname] snmp-agent community read aaa acl 2000
[Sysname] snmp-agent group v2c groupa acl 2000
[Sysname] snmp-agent usm-user v2c usera groupa acl 2000
Configuring source IP-based login control over web
users
You can log in to the web management page of the device through HTTP/HTTPS to remotely manage the
devices. By using the ACL, you can control web user access to the device.
Configuration preparation
Before configuration, determine the permitted or denied source IP addresses.
Configuring source IP-based login control over web users
Basic ACLs match the source IP addresses of packets, so you can use basic ACLs to implement source
IP-based login control over web users. Basic ACLs are numbered from 2000 to 2999. For more
information about ACL, see
ACL and QoS Configuration Guide.
Follow these steps to configure source IP-based login control over web users:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a basic ACL and enter its
view, or enter the view of an
existing basic ACL
acl
[
ipv6
]
number
acl-number
[
match-order
{
config
|
auto
} ]
Required
By default, no basic ACL exists.
Create rules for this ACL
rule
[
rule-id
] {
permit
|
deny
}
[
source
{
sour-addr sour-wildcard
|
any
} |
time-range
time-name
|
fragment
|
logging
]*
Required
Exit the basic ACL view
quit
—
Associate the HTTP service with the
ACL
ip http acl
acl-number
Associate the HTTPS service with
the ACL
ip https acl
acl-number
Required to use one command
Logging off online web users
Follow the step to log off online web users: