ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

How an ACL works: top-down processing, implicit deny, standard and extended ACLs

Lesson 7.29 minIntermediateNovember 17, 2026
Open

This lesson is open to everyone. The other lessons open with a package: sign in or sign up, then choose a package.

Key points

  • An ACL is checked top-down. When a packet matches a statement it is permitted or denied immediately, and the remaining statements are skipped.
  • At the end of every ACL there is an invisible deny any: anything not explicitly permitted is dropped.
  • A standard ACL only looks at the source IP: number 1-99 or 1300-1999. An extended ACL looks at source/destination IP, protocol and ports: 100-199 or 2000-2699. Both can also have a name.
  • Only one ACL per direction (in/out) on an interface. Put the most specific statements at the top. An ACL is created globally first, then applied to an interface.
  • Special types: dynamic (lock-and-key, authenticate with Telnet first), reflexive (temporary permission for return traffic), time-based (active on certain days and hours).

An ACL is made of statements

Let's look at what an ACL looks like:

text
R1#show access-lists
Standard IP access list 1
    10 permit 10.10.1.0, wildcard bits 0.0.0.255
    20 permit 10.10.2.0, wildcard bits 0.0.0.255
    30 permit 172.20.0.0, wildcard bits 0.0.255.255

An ACL is made of statements. Here ACL number 1 has three statements: 10, 20 and 30. These numbers are sequence numbers; by default the router starts at 10 and increases them in steps of 10.

We will cover wildcard bits in detail in the next lesson. For now, know that 0.0.0.255 means "the last octet can be anything", so 10.10.1.0 0.0.0.255 is the whole 10.10.1.0 /24 network.

Top-down processing

When a packet reaches an ACL, this is what happens:

Packetsrc 10.10.2.710 permit 10.10.1.0 0.0.0.25520 permit 10.10.2.0 0.0.0.25530 permit 172.20.0.0 0.0.255.255deny any (invisible)✗ no match → next✓ match → PERMITremaining lines are skipped
Figure 1 · An ACL is checked top-down. The first matching line decides; if nothing matches, the invisible deny any at the end drops the packet
  1. The ACL is checked top-down: first we check whether the packet matches statement 10.
  2. If it does not match 10, statement 20 is checked.
  3. If it does not match 20, statement 30 is checked.
  4. If it does not match 30 either, the packet is dropped.

As soon as a packet matches a statement, a decision is made immediately: the packet is either permitted (forwarded) or denied (dropped). For example, the packet in the figure (source 10.10.2.7) matches statement 20 and is permitted. The router does not check whether it "also" matches statement 30.

The invisible deny any

Why was the packet dropped in step 4? Because at the end of every ACL there is an invisible deny any. Anything you did not explicitly permit is dropped. You don't see this line in the show access-lists output, but it is there.

Remember: if an ACL contains only deny statements and you don't add at least one permit statement at the end, the ACL will block all traffic.

Standard and extended ACLs

There are two main types of ACL:

Standard ACLL2IP: sourceIP: dest.TCP / UDPDataonly the source IP is checkedExtended ACLL2IP: sourceIP: dest.TCP / UDPDataprotocol, source/destination IP, source/destination port
Figure 2 · A standard ACL only looks at the source IP address; an extended ACL can also check destination IP, protocol and port numbers
TypeWhat it looks at
Standard ACLOnly the source IP address
Extended ACLSource and destination IP address, protocol (IP, ICMP, TCP, UDP, OSPF...), source and destination port (TCP/UDP)

A standard ACL is very simple: it can only check the source IP address and cannot do anything more specific. An extended ACL gives many more options: it can check the source and destination IP as well as transport layer (layer 4) information, such as a TCP or UDP port number.

That does not make standard ACLs bad. Sometimes the source IP is all we care about: for example, to define which networks a VPN selects or who may connect to the VTY lines, a standard ACL is enough.

How to recognize an ACL

IPv4 ACL typeNumber / name
Standard1-99 or 1300-1999
Extended100-199 or 2000-2699
NamedAny name you like
  • For a standard ACL, choose a number from 1-99 or 1300-1999.
  • For an extended ACL, choose a number from 100-199 or 2000-2699.
  • If you don't want a number, you can create a named ACL. A name works for both standard and extended ACLs.

Rules when building ACLs

  • An ACL is first created in global configuration and then applied to an interface.
  • An interface can have only one ACL per direction (per protocol). So an interface cannot have two inbound IPv4 ACLs. One inbound and one outbound is fine.
  • Put the most specific statements at the top. As soon as a packet matches a statement the router ignores the rest, so if a general statement is above it, the specific statement below will never be used.
  • Don't forget the last statement is deny any: you don't see it, but it is there.
  • Cisco recommendation: place an extended ACL as close as possible to the source of the traffic. Because a standard ACL only looks at the source, place it as close as possible to the destination, so that it does not cut off traffic that should pass.
  • If you run a routing protocol, make sure the ACL does not block your RIP, EIGRP or OSPF traffic.

What else can ACLs do?

Dynamic ACL (lock-and-key). A user who wants to reach a server first has to connect to the router with Telnet and authenticate; only then is access opened. But having users connect directly to routers is not a good idea. There are better solutions for this: 802.1X and RADIUS.

Reflexive ACL. When building ACLs you have to be careful not to drop legitimate traffic.

OutsideR1ServerACLinboundstarted outside: denyserver request: goes outreturn traffic? reflexive ACL lets it in
Figure 3 · An inbound ACL blocks traffic from outside, but it can also cut off the replies to connections started inside. A reflexive ACL creates temporary entries for the return traffic

There is an inbound ACL on the router's left interface, so the computer outside cannot reach the internal network with the server. That's good. But now the server wants to communicate with the computer outside. Traffic going out is permitted, but the return traffic will be dropped by the ACL. A reflexive ACL makes sure return traffic can come back into the network: it automatically creates temporary entries in the ACL for the return traffic.

Time-based ACL. An ACL that is only active at certain times: for example, on weekdays between 09:00 and 17:00, or any other days and hours you like.

Check yourself

5 questions · answers are shown instantly · 3 correct answers complete the lesson

1A packet matches statement 10 of an ACL. Does the router check statement 20?

An ACL is processed top-down and the first matching statement decides.

2A packet does not match any statement in the ACL. What happens?

At the end of every ACL there is an invisible deny any.

3What can a standard ACL look at?

A standard ACL only checks the source IP; everything else is done by an extended ACL.

4Which type of ACL is access-list 2050?

Extended ACL numbers: 100-199 and 2000-2699.

5How many inbound IPv4 ACLs can an interface have?

An interface can have only one ACL per direction.
Was this lesson useful?

Comments

Sign in to comment.