TechKnowSurge
CompTIA Security+ 4.5 CompTIA Security+ 2.5
InteractiveSecurityFree

Which Rule Decides It?

A host-specific deny above a network-wide permit, a permit for port 80 above a deny for one host: walk each packet down the list and find the rule that decides it.

⚑ Complete this interactive to capture a CTF flag worth 5 points.

About this interactive

Every rule in a network ACL has the same parts: the action it takes, permit or deny, and the traffic it matches, a source, a destination and a port. The source or destination can be one host (all 32 bits must match, as in "host 10.10.10.10"), a network range (10.10.10.0/24 matches any address from 10.10.10.0 to 10.10.10.255), or "any", which matches everything. The port is the TCP or UDP port the packet is going to, or any. The router compares each packet with the rules in order. It starts at rule 1 and moves down, and the first rule whose source, destination and port all match decides: permit and the packet goes on, deny and it is dropped without a word. No later rule is read, so a broad permit written above a narrow deny decides every packet the deny was meant for. At the bottom of every list sits a rule you never typed: the implicit deny any. It is not shown, but it is always there, and it drops whatever matched nothing above it. A list that permits two services therefore denies everything else.

What you'll learn

Aligned to

CompTIA Security+
4.5 Given a scenario, modify enterprise capabilities to enhance security.
2.5 Explain the purpose of mitigation techniques used to secure the enterprise.

Key terms

Access Control Entry
ACE
An individual rule within an access control list that specifies whether to permit or deny access for a particular user, group, or traffic pattern matching defined criteria. A complete ACL is made up of an ordered sequence of ACEs.
ACL Rule Ordering
The sequential evaluation of ACL entries on a Cisco router, where the first matching rule is applied and subsequent rules are not evaluated; incorrect ordering can cause traffic to be permitted or denied unintentionally.
Implicit Deny
A foundational access control principle in which any traffic or request not explicitly permitted by a rule is automatically blocked. It appears as a hidden deny-all rule at the end of every access control list.
Access Control List
ACL
A set of rules that defines which users or systems are granted or denied access to a resource.
Explicit Rule
An access control rule that is directly stated and deliberately configured by an administrator.
Implicit Rule
An access control rule that is not directly stated but is automatically applied by default, such as a deny at the end of an ACL.

Topics

Access Control List Access Control Entry Acl Rule Ordering Implicit Deny Interactive Predict

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →