Firewall rule order and default deny
A firewall checks rules from the top and uses the first match. A final default deny rule blocks anything not allowed by an earlier rule.
Understanding Firewall rule order and default deny in ACARA Digital Technologies Years 9–10
What it does: The list allows only web traffic on ports 80 and 443, then DENY ALL at the end blocks everything else. This is default deny. Device 10.0.0.9 matches Rule 1 first and is blocked. Because the first match wins, Rule 2 is never checked for that device. Default allow lets through anything that is not specifically blocked. That is why it is riskier than default deny. Firewalls apply the first match, so a broad allow placed above a specific deny makes the deny useless. The specific deny must come first.
Common mistakes: The firewall uses the first matching rule. ALLOW all on line 2 matches every packet straight away, so telnet is never blocked. Line 2 should be DENY port 23. DENY all matches every packet, and it is on line 1, so it is the first match every time. The two ALLOW rules are never reached and all traffic is blocked. Line 1 should be ALLOW port 443, with DENY all last.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 116–154) and word search (Modules 116–225).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
default denyFill in the Blanks
Spot the Error
Student with a class code? Join your class →