Default ACL Actions and Mechanisms of Different Service Modules
ACL Matching Mechanism
The device stops matching packets against ACL rules as long as the packets match one rule, as shown in Figure 3-1.
Positive match: Packets match a rule in an ACL.
Negative match: No ACL exists, the ACL does not contain rules, or packets do not match any rule in an ACL.
Default ACL Actions and Mechanisms of Different Service Modules
Whether a packet is permitted or denied is determined by the action specified in the associated ACL rule and the service module to which the ACL is applied. Different service modules process the packets that positively and negatively match ACL rules in different ways. For example, the Telnet module forwards packets as long as the packets match an ACL rule in which the permit action is configured. The traffic policy module, however, processes such packets differently: It denies such packets if the action configured in the traffic behavior is deny.
Table 3-2 describes the default ACL actions and mechanisms of different service modules.
ACL Action |
VTY |
Telnet |
SSH |
FTP |
SNMP |
MQC (Traffic Policy/Simplified Traffic Policy) |
Local Attack Defense Blacklist |
Local Attack Defense Filter |
Attack Source Tracing Whitelist |
---|---|---|---|---|---|---|---|---|---|
Default action |
deny |
deny |
deny |
deny |
deny |
permit |
permit |
permit |
The whitelist does not take effect. |
Permit rule matched |
When the ACL is applied in the inbound direction, only the devices matching the ACL rule can access the local device. When the ACL is applied in the outbound direction, the local device can access the devices matching the ACL rule. |
permit (Allows login.) |
permit (Allows login.) |
permit (Allows login.) |
permit (Allows login.) |
permit (Executes the action defined in the policy.) |
deny (Discards packets.) |
permit (Executes the action defined in the policy.) |
Adds a whitelist item, which is not affected by the permit rule. |
Deny rule matched |
When the ACL is applied in the inbound direction, the devices matching the ACL rule cannot access the local device. When the ACL is applied in the outbound direction, the local device cannot access the devices matching the ACL rule. |
deny (Denies login.) |
deny (Denies login.) |
deny (Denies login.) |
deny (Denies login.) |
deny (Discards packets.) |
deny (Discards packets.) |
deny (Discards packets.) |
Adds a whitelist item, which is not affected by the deny rule. |
No ACL rule matched |
When the ACL is applied in the inbound direction, other devices cannot access the local device. When the ACL is applied in the outbound direction, the local device cannot access other devices. |
deny (Denies login.) |
deny (Denies login.) |
deny (Denies login.) |
deny (Denies login.) |
permit (The function does not take effect and packets are forwarded.) |
permit (The function does not take effect and packets are sent to the CPU.) |
permit (The function does not take effect and packets are sent to the CPU.) |
The whitelist does not take effect. |
No rule configured in the ACL |
When the ACL is applied in the inbound direction, any other devices can access the local device. When the ACL is applied in the outbound direction, the local device can access any other devices. |
permit (Allows login.) |
permit (Allows login.) |
permit (Allows login.) |
permit (Allows login.) |
permit (The function does not take effect and packets are forwarded.) |
permit (The function does not take effect and packets are sent to the CPU.) |
permit (The function does not take effect and packets are sent to the CPU.) |
The whitelist does not take effect. |
VPN information configured in the ACL |
The VPN parameter settings take effect. If the VPN parameter settings on the inbound interface of packets are inconsistent with those in the ACL, the login is denied. |
The VPN parameter settings take effect. If the VPN parameter settings on the inbound interface of packets are inconsistent with those in the ACL, the login is denied. |
The VPN parameter settings take effect. If the VPN parameter settings on the inbound interface of packets are inconsistent with those in the ACL, the login is denied. |
The VPN parameter settings take effect. If the VPN parameter settings on the inbound interface of packets are inconsistent with those in the ACL, the login is denied. |
The VPN parameter settings take effect. If the VPN parameter settings on the inbound interface of packets are inconsistent with those in the ACL, the login is denied. |
VPN parameter settings do not take effect. |
VPN parameter settings do not take effect. |
VPN parameter settings do not take effect. |
VPN parameter settings do not take effect. |