Skip to content
All articles
December 4, 2026 8 min read

Introducing the Firewall Rules Simulator: Free Rule-Table Practice for Security+

Chris Rees

Chris Rees

25+ years in IT · Pluralsight author, 4.6/5 across 2,000+ ratings

Share

Introducing the Firewall Rules Simulator: Free Rule-Table Practice for Security+
Skillthropicwww.skillthropic.com

A firewall rule table looks simple until two rules overlap. Today we're launching the Firewall Rules Simulator, a free tool where you write the rules, send test packets through them, and watch which rule decides each one. It comes with three graded scenarios, built the way rule-table questions are built on the Security+ exam, plus a sandbox for breaking things on purpose. It runs in your browser, and there's no sign-up.

Why we built a firewall simulator

Knowing the rules of a rule table and working one are two different skills. Most folks can recite "first match wins" and "implicit deny" on demand. Then they get a table with five rules, a packet, and a question about what happens to it, and the order of those five rules decides the answer.

That's the shape of a firewall performance-based question. Here's a network. Here are the requirements. Here's a rule table, or an empty one. Complete it, or find what's wrong with it. Rule tables sit under SY0-701 objective 4.5 and SY0-801 objective 4.1, and they're one of the PBQ types folks report most often.

You can't practice that from a flash card. You need a table you can edit and packets you can throw at it, and you need to see why each packet landed where it did. That's what the simulator gives you.

What's on the page

The simulator has three parts: the rule editor, the packet tester, and of course the test packets that grade each scenario.

The rule editor. Each rule has an action (ALLOW or DENY), a protocol (TCP, UDP, ICMP or ANY), a source and a destination, and source and destination ports. An address can be a single host, a CIDR block or ANY. A port field takes one port (443), a list (80, 443) or a range (1024-65535). You can switch a rule off, give it a comment, and move it with the arrow buttons or by dragging it. The bottom row is the implicit deny. It's locked, and it's always last.

The packet tester. Pick a protocol, fill in the source and destination, and send it. Nothing leaves the page. It's made-up traffic, checked against your rules right there in the browser.

The trace. This is the part I'd spend the most time with. For every packet you send, the trace walks the table from the top. Each rule it checks gets a line saying why it didn't match: wrong protocol, a source outside the block, a port that isn't on the list. Then it stops at the rule that decided, and it tells you which rules were never checked at all. You can think of it as the firewall showing its work.

Warnings as you type. The editor checks every field as you go. Type 10.10.10.5/24 and it tells you the host bits are set and the network is 10.10.10.0/24. When a rule can never match, because a rule above it already catches every packet it would, the editor flags it and tells you whether the two rules disagree or the lower one is only redundant.

Your rules stay put. Your tables are saved in your browser, one per scenario. Each scenario has its own link too, like /firewall-rules-simulator?s=quarantine, which means you can bookmark one or send it to a study partner.

How the simulator decides

It follows four rules: first match wins, the implicit deny, one packet at a time, and IPv4 at layers 3 and 4. These are the same assumptions Security+ rule-table questions make.

First match wins. Rules are read from the top. The first rule that matches the packet decides, and nothing below it is read.

Implicit deny. A packet that matches no rule is denied. You write what's allowed. Everything else is already blocked.

One packet at a time. Each packet is checked on its own, with no memory of connections, and the tests only send traffic in the direction a connection starts. On a real stateless ACL you'd need rules for the replies as well. A stateful firewall tracks replies for you, and that's the case the tests mirror.

IPv4, layers 3 and 4. Rules match a protocol, addresses or CIDR blocks, and ports. Nothing above the transport layer.

First match wins is the one that trips folks up, and the sandbox shows why in one move. It starts with a small office policy. Rule 1 keeps guest Wi-Fi off the office LAN. Rule 2 allows web traffic out. Send the "Guest to the intranet" packet and rule 1 denies it. Now move rule 1 below rule 2 and send the same packet again.

The same packet against the same four sandbox rules in two orders. The packet is TCP from the guest laptop 10.0.66.40, source port 50000, to the intranet server 10.0.2.30 on port 443. In the starting order, rule 1, DENY ANY from 10.0.66.0/24 to 10.0.0.0/16, matches and the packet is denied; rules 2, 3 and 4 are never read. With rule 1 moved below rule 2, the web rule, ALLOW TCP from 10.0.0.0/8 to ANY on ports 80 and 443, is now first. It matches, and the guest reaches the intranet. The guest deny is never read. SAME RULES, DIFFERENT ORDER, DIFFERENT ANSWER Packet: TCP 10.0.66.40:50000 → 10.0.2.30:443 Starting order Rule 1 moved below rule 2 1DENY · ANY 10.0.66.0/24 → 10.0.0.0/16 MATCH 2ALLOW · TCP 10.0.0.0/8 → ANY :80, 443 not read 3ALLOW · UDP 10.0.0.0/16 → 10.0.1.53 :53 not read 4ALLOW · TCP · off ANY → 10.0.1.25 :25 not read DENY everything else (implicit) Denied by rule 1 1ALLOW · TCP 10.0.0.0/8 → ANY :80, 443 MATCH 2DENY · ANY 10.0.66.0/24 → 10.0.0.0/16 not read 3ALLOW · UDP 10.0.0.0/16 → 10.0.1.53 :53 not read 4ALLOW · TCP · off ANY → 10.0.1.25 :25 not read DENY everything else (implicit) Allowed by rule 1 The guest is now on the intranet. The sandbox's starting rules. Rule 4 is switched off. Nothing in either table changed except the order.
Same packet, same rules. Moving the guest deny below the web rule lets the guest onto the intranet, because the web rule now matches first.

No rule changed. Only the order did, and a guest on the Wi-Fi is now on the intranet. That's the whole lesson of first match wins in one picture, and it's the mistake the exam likes to hide in a table.

The three scenarios

Each scenario gives you a short brief, a list of requirements, the hosts and networks involved, and a starting table. Sometimes that table is empty. Sometimes it's broken, and fixing it is the job.

Scenario Level What it teaches Test packets
1. Publish a web server, lock down SSH Beginner Least privilege and the implicit deny 22 (10 shown, 12 hidden)
2. Quarantine one laptop without breaking the office Intermediate Rule order: specific rules above general ones 15 (8 shown, 7 hidden)
3. Let workstations out for DNS and HTTPS only Intermediate Choosing the protocol: DNS uses UDP and TCP 20 (10 shown, 10 hidden)

Publish a web server. A new web server is going into the DMZ. Anyone can reach it over HTTPS, the admin subnet gets SSH, and nothing else gets in. You start from an empty table. Every field you leave wider than the requirement, whether that's the protocol, the destination or the port, lets one of the deny tests through.

Quarantine one laptop. A laptop has tripped an EDR alert. Until it's cleaned up it may reach the remediation portal over HTTPS and nothing else, while every other workstation keeps its file shares. A colleague wrote three rules in a hurry, and they don't work. Your job is to find out why and fix them. I won't give it away, but the trace for the laptop's SMB packet is a good place to start.

DNS and HTTPS out. Workstations may resolve names only through the company resolver, and browse over HTTPS. The catch is the protocol. Most DNS lookups use UDP 53, but DNS falls back to TCP 53 when an answer is too big for UDP, and a rule here names one protocol. Why not use ANY and be done with it? Well, ANY also opens ICMP and every port. The debrief for this one covers something a port-based rule table can't stop, and why packet filters get paired with next-generation firewalls.

There's also a hint or two on each scenario if you get stuck, and a "Show one correct answer" button after your first check. Try it without the button first.

Hidden tests, and how it's graded

Each scenario shows you some of its test packets up front. Checking your rules runs those and a set of hidden ones, and the hidden ones appear in the results after your first check.

Why hide any? Well, a table built to pass the visible list tends to cut a corner. Let's say the visible test sends admin SSH from 10.10.10.14. A rule for that one address passes it. The hidden tests also send SSH from 10.10.10.1 and 10.10.10.254, which are in the admin subnet, and from 10.10.9.254, which is one address outside it. A rule for one host fails the first two, and a /16 fails the third.

Grading is by behavior. Any table that handles every packet correctly passes, however it's written. There's more than one right answer.

The score multiplies two numbers: the share of packets that should get through and do, and the share that should be blocked and are. Here's scenario 1 graded four different ways.

Scenario 1 graded four ways. The score is the share of packets that should get through and do, multiplied by the share that should be blocked and are. Allow everything: 100 percent get through, 0 percent blocked, score 0, 7 of 22 tests pass. Block everything, an empty table: 0 percent through, 100 percent blocked, score 0, 15 of 22 pass. Admin rule with ports ANY: 100 percent through, 87 percent blocked, score 87 percent, 20 of 22 pass, and admin RDP and Telnet to the web server get through. A correct table of two narrow allow rules: 100 percent and 100 percent, solved, 22 of 22 pass. SCENARIO 1, GRADED FOUR WAYS Should get through, and do Should be blocked, and are Score Allow everything one ALLOW ANY rule · 7 of 22 pass 100% 0% 0 Block everything an empty table · 15 of 22 pass 0% 100% 0 Admin rule with ports ANY one field too wide · 20 of 22 pass 100% 87% 87% Admin RDP and Telnet to the web server get through A correct table two narrow ALLOW rules · 22 of 22 pass 100% 100% Solved Score = the first share × the second. Scenario 1 has 22 test packets: 7 that should get through and 15 that should be blocked.
Allow everything or block everything and you score 0. The 87% table looks close, and it lets admins RDP and Telnet into a public web server.
Table Should get through, and do Should be blocked, and are Score
Allow everything 100% 0% 0
Block everything 0% 100% 0
Admin rule with ports ANY 100% 87% 87%
A correct table 100% 100% Solved

Multiplying is the point. A table that allows everything gets every allowed packet through, and it still scores 0. So does a table that blocks everything.

Look at the third row, though. 87% sounds like a good grade. It isn't, because the two packets it gets wrong are admins reaching RDP and Telnet on a public web server. That's why the results call out any packet that must be blocked but gets through, separately from the score. On a real network, that's the failure that matters.

Practice, not exam questions. The scenarios are our own, written in the style of firewall PBQs, and every address in them is made up: public examples come from the documentation ranges in RFC 5737, internal ones from private address space. Nothing here comes from a CompTIA exam.

What the simulator leaves out

I'd rather you hear the limits from me. Real firewalls do a lot more than this one, and they differ from each other.

No connection tracking. Each packet is judged on its own. Real stateful firewalls remember connections and let replies back in on their own.

No zones, NAT or application inspection. Rules match protocol, address and port. Nothing above layer 4, which is also why a port filter can't tell DNS over HTTPS from any other HTTPS.

One rule-order model. First match wins is how most packet filters and ACLs work, and it's what exam questions assume. A few products order rules differently. Read the rules a question gives you before anything else.

The JSON export is a study note. "Copy as JSON" gives you your table in a tidy format. It isn't a configuration any real firewall will load.

How to study with it

Here's the routine I'd suggest.

  1. Read the requirements, then write the narrowest rule for each one. One protocol, one destination, one port, and leave the source port at ANY.
  2. Send a packet you expect to be allowed and one you expect to be denied. Read the trace for both before you check.
  3. Check, then read the hidden tests. Every hidden test has a "why" next to it. The ones you fail are the lesson.
  4. Break it in the sandbox. Move a rule, widen a CIDR block, switch a rule off, and predict the result before you send the packet.

If a port number stops you, the Security+ ports reference has the common ones. And when you're ready for the full range of performance-based questions, the SY0-801 PBQ Lab has 48 hands-on labs: rule tables, matching, ordering, diagrams and log evidence. You can try one lab free first.

Key takeaways

  • Write the rules, send the packets, read the trace. Free, in your browser, no sign-up.
  • Three graded scenarios and a sandbox. Least privilege, rule order, and choosing the protocol, with 57 test packets between them.
  • Hidden tests catch the shortcuts. One host instead of a subnet, a CIDR block too wide, a port range that opens more than was asked.
  • Graded by behavior. Any correct table passes, and a table that allows everything or blocks everything scores 0.
  • First match wins. Specific rules go above general ones. Moving one rule can change the answer.

Start with scenario 1. Then find out which Security+ domain needs the work with the free readiness quiz.

#FirewallRules #ACL #PBQ #NetworkSecurity #LeastPrivilege #SecurityPlus #SY0701 #SY0801 #CompTIA #CyberSecurity

Security+ Domain 4 · 28% of the exam

This is the biggest domain on your exam

Security Operations is 28% of Security+, more than any other domain. Master all 9 objectives, from hardening to incident response, in the Security+ Collection.

  1. Find your gapsA free readiness quiz scores you domain by domain.
  2. Study what's on the testWork through every objective, with practice questions.
  3. Book it with confidenceSchedule the exam when you're scoring well in every domain.

Read a free excerpt from Security+ Domain 4: Security Operations

Share this article

Keep reading

Follow Skillthropic

Keep learning between study sessions

The same exam-focused teaching, in smaller pieces, wherever you scroll.

Enjoyed this? Get the AI security news that matters.

Join The AI Security Brief for the top AI security news, plus what's important to the C-suite. Free, straight to your inbox.

No spam. Unsubscribe anytime.