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.
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 →