The acl command restricts the incoming and outgoing call on the user interface that provides various services.
The undo acl command cancels the current settings.
acl [ ipv6 ] acl-number { inbound | outbound }
undo acl [ ipv6 ] [ acl-number ] { inbound | outbound }
| Parameter | Description | Value |
|---|---|---|
ipv6 |
Specifies the number of an IPv6 address-based ACL. |
- |
acl-number |
Specifies the number of an access control list (ACL). When configuring an ACL rule, set permit or deny. The restriction action for the call-in and call-out permission for the user interface is determined by permit or deny. |
The value is an integer and the range depends on the ACL type.
|
inbound |
Indicates the restriction on the call-in of the user interface. Specifically, the restriction action is taken on the user with a specific address or on a specific address range who tries to log in to theFW. |
- |
outbound |
Indicates the restriction on the call-out of the user interface. Specifically, the restriction action is taken on the user who has logged in to the FW and tries to log in to otherFWs. |
- |
By default, there is no restriction on incoming and outgoing calls.
Configuration Impact
If the packets received by the local device match a rule in the ACL and the ACL rule is set to permit, other devices are allowed to access the local device.
If the packets received by the local device match a rule in the ACL and the ACL rule is set to deny, the local device is denied access from other devices.
If the packets received by the local device do not match any rule in the ACL, the local device is denied access from other devices.
If the packets received by the local device match a rule in the ACL and the ACL rule is set to permit, the local device is allowed to access other devices.
If the packets received by the local device match a rule in the ACL and the ACL rule is set to deny, the local device is denied access to other devices.
If the packets received by the local device do not match any rule in the ACL, the local device is denied access to other devices.
If you want to restrict a user and allow other users to log in, you need to configure a permit rule in the ACL. For example, if you want to restrict the login of only the user whose source IP address is 10.1.1.10, define two rules in the ACL:
rule deny source 10.1.1.10 0 rule permit source any
If rule permit source any is not defined, users whose source IP addresses are not 10.1.1.10 are also restricted.
Precautions
# Restrict Telnet outgoing call on the user interface VTY0.
<sysname> system-view [sysname] user-interface vty 0 [sysname-ui-vty0] acl 2000 outbound
# Remove the restriction on Telnet outgoing call on the user interface VTY0.
<sysname> system-view [sysname] user-interface vty 0 [sysname-ui-vty0] undo acl outbound