0Pricing
Network+ Academy · Lesson

Access Control Lists in Action

Learn how ACLs permit or deny traffic by rule.

Access Control Lists in Action is a free Network+ Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Network+ Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What an ACL Is

An ACL (Access Control List) is an ordered set of rules that permits or denies traffic based on its characteristics. Routers, switches, and firewalls use ACLs to decide which packets may pass and which are dropped.

Each rule, or ACE (Access Control Entry), matches traffic by criteria like source address, destination, protocol, or port, and applies an action: permit or deny.

What ACLs Match On

A typical ACL rule examines:

  • Source IP address (who is sending)
  • Destination IP address (where it is going)
  • Protocol (TCP, UDP, ICMP)
  • Port number (which service)

By combining these, you can write precise rules like permit web traffic to one server while denying everything else, controlling access at a fine level.

Top-Down Processing

ACLs are evaluated top to bottom, and processing stops at the first matching rule. Order is therefore critical: a broad rule placed early can override more specific rules below it that never get reached.

The general best practice is to put specific rules first and broader rules later, so the precise exceptions are evaluated before the catch-all entries.

The Implicit Deny

Most ACLs end with an invisible implicit deny all: any traffic not explicitly permitted is dropped. This default-deny behavior is a security feature, but it surprises beginners whose allowed traffic still gets blocked because they forgot to permit something.

Always remember that if no rule matches, the traffic is denied by default. You must explicitly permit what you want to allow.

Standard vs Extended ACLs

On routers, two classic ACL types exist:

  • Standard ACLs filter only by source IP address, blunt but simple.
  • Extended ACLs filter by source, destination, protocol, and port, much more precise.

Extended ACLs are far more common because real policies usually need to say which sources may reach which services, not just who is allowed at all.

Inbound vs Outbound

ACLs are applied to an interface in a direction: inbound (traffic entering the interface) or outbound (traffic leaving it). The same rule produces different effects depending on direction and which interface it is attached to.

Placing the ACL on the right interface and direction is essential. A correct rule on the wrong interface simply will not filter the traffic you intended.

Stateless vs Stateful

A basic ACL is stateless: it judges each packet alone with no memory of prior traffic. A stateful firewall tracks connections, so if it permits outbound traffic, it automatically allows the matching replies back.

Stateless ACLs need explicit rules in both directions, which is why stateful firewalls are easier and more common for general traffic filtering.

A Sample ACL

Read this simple router ACL as an example of how rules combine to permit a service while blocking everything else.

access-list 101 permit tcp any host 10.0.0.5 eq 443
access-list 101 deny ip any any
! Permit HTTPS to the web server, deny all else

Common Uses of ACLs

ACLs do many security jobs: blocking known-bad IP addresses, restricting which subnets can reach a server, controlling management access to network devices, and filtering between VLANs or zones.

They are a foundational, flexible tool. Combined with segmentation, ACLs turn the boundaries between zones into enforced rules that decide exactly what traffic may cross.

ACL Pitfalls

Common mistakes include rule order errors (a broad rule hiding a specific one), forgetting the implicit deny, applying the ACL to the wrong interface or direction, and accidentally locking yourself out of a device by denying your own management traffic.

Plan and document ACLs carefully, test changes, and always make sure remote-management access remains permitted before applying restrictive rules.

Putting It Together

An ACL is an ordered list of permit/deny rules processed top-down until the first match, ending in an implicit deny. Extended ACLs filter by source, destination, protocol, and port; you apply them inbound or outbound on an interface. Used well, ACLs enforce segmentation and protect devices, but careful rule order and placement are essential.

Quick Check

Test your ACL knowledge.

Recap

An ACL is an ordered list of permit/deny rules matched by source, destination, protocol, and port. Rules process top-down until the first match, and an implicit deny all drops anything not permitted. Extended ACLs are most precise, are applied inbound or outbound on an interface, and demand careful rule order and placement.

Frequently asked questions

Is the “Access Control Lists in Action” lesson free?

Yes — the full text of “Access Control Lists in Action” is free to read here on the web, and the Network+ Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Network+ Academy course, upgrade to CoddyKit PRO.

What will I learn in “Access Control Lists in Action”?

Learn how ACLs permit or deny traffic by rule. You practise Network+ Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Network+ Academy?

No prior experience is required. Network+ Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Access Control Lists in Action” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Network+ Academy lesson?

Yes. Every Network+ Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. The CIA Triad in Networking
  2. Defense in Depth and Layered Security
  3. Network Segmentation and Zones
  4. Access Control Lists in Action
← Back to Network+ Academy