The deny and permit parameters in ACL rules have different functions in different services.
Traffic policy
When permit is used in the ACL rule, the system executes the specified traffic behavior only when packets match the ACL rule. When the traffic behavior is deny, the system discards packets matching the rule. When the traffic behavior is permit, the system forwards packets matching the rule.
When deny is used in the ACL rule, the system discards the packets matching the ACL rule regardless of the action defined the traffic behavior (except traffic statistics collection and traffic mirroring).
If an ACL does not contain rules, the traffic policy using the ACL does not take effect.
Simplified traffic policy
When permit is used in the ACL rule, the system executes the behavior in the simplified traffic policy, for example, allowing the matching packets to pass and limiting the rate of matching packets.
When deny is used in the ACL rule, the system discards the matching packets if the ACL is applied to the packet filtering function or executes the behavior in the simplified traffic policy if the ACL is applied to other functions.
If an ACL does not contain rules, the simplified traffic policy using the ACL does not take effect.
IPSec
When permit is used in the ACL rule, the system uses IPSec policies to protect traffic matching the ACL rule, and then forwards the traffic.
When deny is used in the ACL rule, the device rejects packets that match the ACL rule.
When an ACL does not contain rules, the IPSec policy referencing the ACL does not take effect. That is, the system forwards the packets passing the interface without performing any operation.
Firewall
When deny is used in the ACL rule:
When an ACL does not contain rules:
NAT
When permit is used in the ACL rule, the system uses the address pool to translate addresses for the packets of which the source IP address is specified in the ACL rule.
When deny is used in the ACL rule or the ACL does not contain rules, the NAT policy referencing the ACL does not take effect. That is, the system searches routes for packets, but does not translate addresses.
Telnet
When deny is used in the ACL rule:
When the ACL rule is configured but packets from other devices do not match the rule:
When the ACL contains no rule:
HTTP
The device with the specified source IP address can establish an HTTP connection with the local device only when permit is used in the ACL rule.
When deny is used in the ACL rule, other devices cannot establish HTTP connections with the local device.
When the ACL rule is configured but packets from other devices do not match the rule, other devices cannot establish HTTP connections with the local device.
When the ACL contains no rule, any other devices can establish HTTP connections with the local device.
FTP
The device with the specified source IP address can establish an FTP connection with the local device only when permit is used in the ACL rule.
When deny is used in the ACL rule, other devices cannot establish FTP connections with the local device.
When the ACL rule is configured but packets from other devices do not match the rule, other devices cannot establish FTP connections with the local device.
When the ACL contains no rule, any other devices can establish FTP connections with the local device.
TFTP
The device with the specified source IP address can establish a TFTP connection with the local device only when permit is used in the ACL rule.
When deny is used in the ACL rule, the local device cannot establish TFTP connections with other devices.
When the ACL rule is configured but packets from other devices do not match the rule, other devices cannot establish TFTP connections with the local device.
When the ACL contains no rule, the local device can establish TFTP connections with any other devices.
SNMP
When permit is used in the ACL rule, an NMS with a specified source IP address can access the local device.
When deny is used in the ACL rule, the local device rejects access from other NMS.
When the ACL does not contain rules, the local device access from any other NMS.
NTP
When permit is used in the ACL rule, the ntp-service access command takes effect.
When deny is used in the ACL rule, the ntp-service access command does not take effect.
When the ACL does not contain rules, the ntp-service access command does not take effect.