# How do rule order and interface direction affect an IPv4 ACL?

Exam: 200-301 — Implementing and Administering Cisco Solutions
Knowledge domain: Security Fundamentals
Updated: 2026-11-25T05:30:55.298842+00:00
HTML: https://learningpathx.com/faq/200-301/ccna200301-ipv4-acl-rule-order-and-direction.html

## Also asked as

- How can you predict which rule in a routed IPv4 ACL permits or denies a packet?
- How do first match, implicit deny, and in or out direction work in an IPv4 ACL?

For a populated IPv4 packet-filtering ACL applied to a Cisco IOS XE Layer 3 interface, the device evaluates entries from top to bottom. The first match decides whether the packet is permitted or denied. A packet that reaches the end without a match is denied. A broad earlier entry can therefore decide the outcome before a more specific later entry is reached.

A standard IPv4 ACL matches the source address. Use an extended ACL when the policy depends on the destination, IP protocol, or supported transport details such as TCP or UDP ports. Inbound checks the packet as it enters the selected interface, before routing. Outbound checks it as it leaves the selected interface after the routing decision.

To verify the ACL, trace the source, destination, protocol, and relevant port in each direction. Before changing policy, record the current ACL and keep a management recovery path available. Confirm the ACL attached to the actual interface and direction. Record the management, routing, DHCP, and return flows the policy must preserve. Make the smallest approved change, then use controlled permit and deny tests and correlate them with the rule counters available on the platform.

### References

* [Catalyst 9300 IOS XE 17.15.x: IPv4 ACLs](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-15/configuration_guide/sec/b_1715_sec_9300_cg/configuring_ipv4_acls.html)
* [Cisco: Configure Commonly Used IP ACLs](https://www.cisco.com/c/en/us/support/docs/ip/access-lists/26448-ACLsamples.html)

Source: [ACLs, Layer 2 Security, and Wireless Security Controls](https://learningpathx.com/news/acls-layer-2-security-and-wireless-security-controls.html)
