ACL (Access Control List)
Cheat sheet · https://pcornel.dk/topic.php?topic=758
Answer
An access control list is an ordered list of permit and deny entries. A router or switch compares each packet with the entries from the top, acts on the first match, and drops anything that matches nothing (the implicit deny at the end).
Remember
Order matters: put specific entries before general ones. Every ACL ends with an invisible deny any, so an ACL with only deny entries blocks everything. Wildcard masks are inverted subnet masks (0.0.0.255 for a /24). One ACL per interface, per direction, per protocol.
First checks
show access-lists <name>— entries in order with match counters.show ip interface <if> | include access list— ACLs applied inbound and outbound.show running-config | section access-list— the ACL as configured.show ipv6 access-list <name>— IPv6 ACL entries and counters.clear access-list counters <name>— reset counters before a test.
Commands
show object-group- Lists the network and service object groups used by object-group ACLs.
show ip access-listsshow platform software fed … acl counters hardwareip access-groupshow access-lists
Verify in this order
ACL applied on the right interface and direction → packet compared top-down → first matching entry decides → no match = implicit deny → counter increments on the matching entry
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
ACL processing order
| Step | Question |
|---|---|
| 1 | What exact packet/flow is being tested? |
| 2 | Does that packet traverse this ACL attachment? |
| 3 | Is direction in or out correct for the packet? |
| 4 | Which ACE is the first match? |
| 5 | Is that ACE permit or deny? |
| 6 | If none match, what does the implicit deny do? |
| 7 | Does a controlled test increment the expected counter? |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=758