InfraRunBook
    Back to articles

    Cisco ACL Not Working: Why an Access List Is Not Matching Traffic

    Cisco
    Published: Nov 28, 2026
    Updated: Nov 28, 2026

    A practical troubleshooting guide for Cisco ACLs that show no hits or permit and deny the wrong traffic. It covers direction errors, rule order, wildcard masks, port syntax, missing applications and more, with CLI checks and fixes.

    Cisco ACL Not Working: Why an Access List Is Not Matching Traffic

    Symptoms

    You wrote the ACL, you applied it, and nothing happens. Or something happens, just not what you intended. The complaints I hear most often sound like this: a host you meant to block is still reaching the server, a host you meant to permit is suddenly dead, or the ACL counters sit stubbornly at zero while traffic obviously flows.

    On the CLI, the classic tell is an ACL with no match counters at all:

    sw-infrarunbook-01# show access-lists BLOCK-GUESTS
    Extended IP access list BLOCK-GUESTS
        10 deny ip 192.168.50.0 0.0.0.255 10.10.10.0 0.0.0.255
        20 permit ip any any
    

    No (N matches) suffix means the ACL hasn't seen a single packet. Either it isn't bound to the path the traffic takes, or the traffic doesn't look the way you think it does. Work through the causes below in order. They're roughly sorted by how often I run into them.


    Cause 1: The ACL Is Not Applied, or It's Applied in the Wrong Direction

    Why it happens. An ACL does nothing until you bind it to an interface, a VTY line, a route-map, a class-map or similar. Even when it is bound,

    in
    and
    out
    are relative to the router, not to your mental picture of the network. I have seen engineers apply an inbound filter on the server-facing port when the traffic they wanted to stop entered on the user-facing port.

    How to identify it. Check the interface and confirm direction:

    sw-infrarunbook-01# show ip interface Vlan50 | include access list
      Outgoing access list is not set
      Inbound  access list is not set
    

    If you see "not set", the ACL isn't attached. If it shows the name but in the wrong direction, the counters will stay at zero because the packets never traverse that direction on that interface.

    How to fix it. Think of the packet's journey. Traffic from 192.168.50.0/24 enters the router on Vlan50, so a filter on that source belongs inbound on Vlan50:

    sw-infrarunbook-01(config)# interface Vlan50
    sw-infrarunbook-01(config-if)# ip access-group BLOCK-GUESTS in
    

    Filtering as close to the source as possible with an extended ACL saves bandwidth and keeps the logic easy to reason about. Also remember that an ACL applied outbound never filters traffic the router itself originates in some contexts, which leads neatly into the next point.


    Cause 2: Rule Order, First Match Wins

    Why it happens. ACLs are processed top-down and the first matching entry decides the packet's fate. A broad permit above a specific deny makes the deny unreachable. It's the single most common logic bug in production ACLs.

    How to identify it. Look at the match counters. The specific entry has zero hits while the broad one climbs:

    sw-infrarunbook-01# show access-lists SERVER-ACCESS
    Extended IP access list SERVER-ACCESS
        10 permit ip 192.168.0.0 0.0.255.255 any (4821 matches)
        20 deny tcp host 192.168.50.25 host 10.10.10.5 eq 22 (0 matches)
        30 permit ip any any
    

    Entry 20 can never match because entry 10 already swallowed 192.168.50.25.

    How to fix it. Put specific entries before general ones. With sequence numbers you don't have to rebuild the list:

    sw-infrarunbook-01(config)# ip access-list extended SERVER-ACCESS
    sw-infrarunbook-01(config-ext-nacl)# 5 deny tcp host 192.168.50.25 host 10.10.10.5 eq 22
    sw-infrarunbook-01(config-ext-nacl)# no 20
    

    After the change, entry 5 evaluates first and will start collecting hits as soon as that host tries SSH.


    Cause 3: The Implicit Deny at the End

    Why it happens. Every ACL ends with an invisible

    deny ip any any
    . You never see it in the config, and it doesn't show in the counters unless you write it yourself. Add a restrictive ACL to an interface, forget a permit for return traffic, routing protocols or DHCP, and half the network falls over.

    How to identify it. Users report that "everything broke" right after you applied the ACL. Add an explicit logging deny to see what's falling through:

    sw-infrarunbook-01(config-ext-nacl)# 999 deny ip any any log
    
    %SEC-6-IPACCESSLOGP: list SERVER-ACCESS denied tcp 192.168.60.14(51234) -> 10.10.10.5(443), 1 packet
    %SEC-6-IPACCESSLOGP: list SERVER-ACCESS denied ospf 192.168.1.2 -> 224.0.0.5, 1 packet
    

    That OSPF line is a good example. An inbound ACL on a routed link without a permit for OSPF will drop adjacencies within the dead interval, and you'll spend an hour blaming the routing config.

    How to fix it. Add the missing permits. For OSPF,

    permit ospf any any
    . For DHCP,
    permit udp any eq 68 any eq 67
    . Keep the logging deny during testing, then consider removing
    log
    in production, since it punts packets to the CPU.


    Cause 4: Wildcard Mask Mistakes

    Why it happens. ACLs use wildcard masks, the inverse of subnet masks. Typing a subnet mask where a wildcard belongs is a rite of passage.

    192.168.50.0 255.255.255.0
    doesn't mean what you hope; it matches a bizarre set of addresses, and on newer IOS-XE releases it may be rejected outright.

    How to identify it. Read the entry as the router does. A wildcard bit of 0 means "must match", 1 means "don't care". Compare:

    ! Intended: all of 192.168.50.0/24
    10 permit ip 192.168.50.0 0.0.0.255 any
    
    ! Mistake: only matches 192.168.50.0 exactly, because the 0 bits cover the whole address
    10 permit ip 192.168.50.0 0.0.0.0 any
    
    ! Mistake: wrong octet, matches 192.168.x.0 through the entire 3rd octet range
    10 permit ip 192.168.50.0 0.0.255.0 any
    

    I once chased a "dead" ACL for most of an afternoon that used

    0.0.0.254
    instead of
    0.0.0.255
    . It matched only even addresses. Half the subnet worked, half didn't, and everyone assumed it was a flaky switch.

    How to fix it. Recalculate. For a /24 the wildcard is 0.0.0.255, for a /26 it's 0.0.0.63, and for a /28 it's 0.0.0.15. A host is

    host 192.168.50.25
    or a 0.0.0.0 wildcard. Verify with
    show access-lists
    after the edit and generate a test packet.


    Cause 5: Protocol and Port Syntax Errors

    Why it happens. Extended ACLs match on protocol first, then source, then destination. The port operator attaches to whichever address it follows. Put the port on the wrong side and you've written a perfectly valid ACL that matches nothing. Using

    permit ip
    with a port isn't allowed, and using
    tcp
    for a DNS rule while clients use UDP is just as quiet.

    How to identify it. Compare what you wrote against what clients really send. Clients use ephemeral source ports and connect to a well-known destination port:

    ! Wrong: matches traffic with SOURCE port 443, which is server replies, not client requests
    10 permit tcp 192.168.50.0 0.0.0.255 eq 443 any
    
    ! Right: client to server destination port 443
    10 permit tcp 192.168.50.0 0.0.0.255 any eq 443
    

    Other traps: ICMP needs type handling (

    permit icmp any any echo-reply
    for return pings), DNS can fall back to TCP/53 for large responses, and FTP, SIP and similar protocols open secondary ports that your static ACL doesn't know about.

    How to fix it. Rewrite the entry with the port on the correct side. If you're allowing return traffic through an inbound ACL on an outside interface, either use

    established
    for TCP or move to a stateful feature such as a zone-based firewall:

    permit tcp any 192.168.50.0 0.0.0.255 established
    

    Keep in mind that

    established
    only checks for ACK or RST bits. It isn't stateful, so it's a convenience rather than a security control.


    Cause 6: The ACL Name or Number Doesn't Exist, or Doesn't Match

    Why it happens. Names are case-sensitive. If you apply

    ip access-group Block-Guests in
    and the list is named
    BLOCK-GUESTS
    , IOS will accept the command. An interface pointing at a nonexistent ACL permits everything. That's a nasty failure because it looks fine in the running config.

    How to identify it. Compare the name on the interface against the defined lists:

    sw-infrarunbook-01# show running-config interface Vlan50 | include access-group
     ip access-group Block-Guests in
    
    sw-infrarunbook-01# show ip access-lists
    Extended IP access list BLOCK-GUESTS
        10 deny ip 192.168.50.0 0.0.0.255 10.10.10.0 0.0.0.255
        20 permit ip any any
    

    Notice the casing difference. The interface references a list that doesn't exist, so no filtering occurs at all.

    How to fix it. Re-apply with the exact name:

    sw-infrarunbook-01(config)# interface Vlan50
    sw-infrarunbook-01(config-if)# no ip access-group Block-Guests in
    sw-infrarunbook-01(config-if)# ip access-group BLOCK-GUESTS in
    

    The same bug appears with standard ACL numbers (1-99) used where an extended ACL (100-199) was intended. A standard ACL only sees the source address, so a rule like "deny this host from reaching port 22" simply can't be expressed.


    Cause 7: Edits Appended After an Existing Deny, or Hidden by Sequence Numbers

    Why it happens. On a named ACL, a new line without a sequence number goes to the end. If the list already ends in

    deny ip any any
    , your new permit lands beneath it and is dead on arrival. On numbered ACLs from older habits, the same thing happens when you paste lines into the wrong mode.

    How to identify it.

    sw-infrarunbook-01# show access-lists MGMT-IN
    Extended IP access list MGMT-IN
        10 permit tcp 192.168.1.0 0.0.0.255 any eq 22 (310 matches)
        20 deny ip any any (87 matches)
        30 permit tcp host 192.168.1.50 any eq 443 (0 matches)
    

    Entry 30 never hits because entry 20 catches everything first. The user at 192.168.1.50 can't reach HTTPS, and 87 denies tell you who is knocking.

    How to fix it. Insert at the right place and resequence if you've run out of gaps:

    sw-infrarunbook-01(config)# ip access-list extended MGMT-IN
    sw-infrarunbook-01(config-ext-nacl)# no 30
    sw-infrarunbook-01(config-ext-nacl)# 15 permit tcp host 192.168.1.50 any eq 443
    sw-infrarunbook-01(config-ext-nacl)# exit
    sw-infrarunbook-01(config)# ip access-list resequence MGMT-IN 10 10
    

    Cause 8: The Traffic Never Takes the Path You Think, or Is Router-Originated

    Why it happens. Two flavors. First, asymmetric or alternate routing means the traffic enters on a different interface than you filtered. A redundant uplink, an HSRP failover or an ECMP path will quietly bypass your ACL. Second, outbound ACLs don't filter packets originated by the router itself, so pinging or telnetting from sw-infrarunbook-01 proves nothing about whether the outbound ACL works. NAT adds another twist: inbound ACLs on the outside interface see the translated destination address, while outbound ACLs on the inside interface see the pre-translation view, depending on direction and order of operations.

    How to identify it. Trace the real path and test with traffic that crosses the router rather than starts on it:

    sw-infrarunbook-01# show ip route 10.10.10.5
    Routing entry for 10.10.10.0/24
      * 192.168.2.2, via GigabitEthernet1/0/2
    
    sw-infrarunbook-01# show ip cef 10.10.10.5 detail
    10.10.10.0/24
      nexthop 192.168.2.2 GigabitEthernet1/0/2
    

    If your ACL sits on Gi1/0/1 and the route uses Gi1/0/2, that explains the zero counters. Use

    debug ip packet
    sparingly and with an ACL to limit it, or better, add a temporary
    log
    keyword to a catch-all permit and watch the syslog.

    How to fix it. Apply the ACL on every interface the flow can legitimately traverse, or filter on a single choke point such as the SVI closest to the protected resource. For router-originated traffic and device management, protect the control plane with an ACL on the VTY lines or a CoPP policy:

    sw-infrarunbook-01(config)# line vty 0 15
    sw-infrarunbook-01(config-line)# access-class MGMT-IN in
    

    A Reliable Workflow for Any ACL Problem

    When I'm handed a "the ACL doesn't work" ticket, I follow the same routine. First,

    show ip interface
    to prove the ACL is bound where I expect, in the direction I expect. Second,
    show access-lists
    , clear the counters with
    clear ip access-list counters
    , and generate a known test flow. Third, read the counters. A zero on everything points to cause 1, 6 or 8. A hit on the wrong line points to cause 2, 4, 5 or 7. A hit on only the implicit deny points to cause 3.

    sw-infrarunbook-01# clear ip access-list counters BLOCK-GUESTS
    sw-infrarunbook-01# show access-lists BLOCK-GUESTS
    Extended IP access list BLOCK-GUESTS
        10 deny ip 192.168.50.0 0.0.0.255 10.10.10.0 0.0.0.255 (12 matches)
        20 permit ip any any (340 matches)
    

    Counters turn guesswork into evidence. Once you see which line is catching the packet, the fix is usually obvious.


    Prevention

    Most ACL incidents are avoidable with a few habits. Document the intended flow, including source, destination, protocol, port and direction, before touching the CLI. Build the ACL offline in a text editor and review the wildcard masks by hand, since that's where silent errors hide. Use named ACLs with consistent uppercase names so typos fail loudly in review, and reference them by copy and paste rather than retyping.

    Always include sequence numbers with gaps of 10 so you can insert entries without rebuilding the list. Put a final explicit

    deny ip any any
    in every ACL, with
    log
    during rollout, so the implicit deny becomes visible in counters. Apply changes in a maintenance window with a rollback plan such as
    reload in 10
    or a configuration archive, particularly when you're filtering the same path you're managing the device over. Using
    configure replace
    with a saved archive gives you a clean undo.

    Finally, test with real traffic from the correct source. Pinging from the router itself, as infrarunbook-admin sitting on sw-infrarunbook-01, tells you nothing about transit filtering. Verify with counters before and after, store the validated ACLs in version control, and review them on a schedule. ACLs rot as networks change, and a rule that made sense two years ago may now be the reason a migration fails.

    Frequently Asked Questions

    Why does my Cisco ACL show no matches?

    Zero matches usually means the ACL isn't applied to the interface the traffic actually uses, is applied in the wrong direction, or the name referenced on the interface doesn't match the defined ACL. Check show ip interface and show access-lists, then confirm the routed path with show ip route.

    Does the order of ACL entries matter?

    Yes. ACLs are evaluated top-down and the first matching entry decides the outcome. A broad permit placed above a specific deny makes the deny unreachable, so put specific entries first and use sequence numbers to insert them.

    What is the implicit deny in a Cisco ACL?

    Every ACL ends with an invisible deny ip any any. Any traffic not explicitly permitted is dropped, including routing protocol and DHCP packets. Add an explicit deny ip any any log to see what is being dropped.

    Why doesn't my outbound ACL block traffic from the router itself?

    Outbound ACLs only filter transit traffic and don't filter packets originated by the router. Test with traffic from a host that crosses the device, and use access-class on VTY lines or CoPP to protect the router's own control plane.

    How do I fix a wrong wildcard mask in an ACL?

    Remove the incorrect entry by its sequence number and re-add it with the correct inverse mask, for example 0.0.0.255 for a /24 network. Then clear the counters and send test traffic to verify the entry matches.

    Related Articles