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

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

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.
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.
| 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.
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.
- Read the requirements, then write the narrowest rule for each one. One protocol, one destination, one port, and leave the source port at ANY.
- Send a packet you expect to be allowed and one you expect to be denied. Read the trace for both before you check.
- Check, then read the hidden tests. Every hidden test has a "why" next to it. The ones you fail are the lesson.
- 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
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.
- Find your gapsA free readiness quiz scores you domain by domain.
- Study what's on the testWork through every objective, with practice questions.
- Book it with confidenceSchedule the exam when you're scoring well in every domain.
Read a free excerpt from Security+ Domain 4: Security Operations
Keep reading
Did AI Crack RSA-2048 or Bitcoin? The Rumor, What's Real, and What It Means
A rumor said a frontier AI lab cracked RSA-2048, and Bitcoin slid. No one has shown a break of RSA-2048 or Bitcoin's cryptography. Anthropic published theoretical lattice papers, and the US government told everyone to speed up post-quantum migration anyway. What's rumor, what's real, and what it means short, medium and long term.
Read Security+ deep divesWoolworths Breach: 14 Million Records, No Passwords, and Why Scammers Still Care
Woolworths Group says cyber criminals accessed a customer database holding about 14 million Australian records: names, dates of birth, addresses, emails, phone numbers and Everyday Rewards card numbers. What's on the record, what isn't, why the rewards app was locked while the tills stayed open, and why data with no passwords in it could still help a scammer.
Read Security+ deep divesOsaic Wealth Breach: 3.3 Million People, and What the Iowa Letter Says About APIs
Osaic Wealth says an intruder reached client names, Social Security numbers and account numbers. Oregon lists 3,336,120 people. A letter to Iowa's attorney general points to a vulnerability in internet-accessible API endpoints. What is on the record, what isn't, and how to protect an API.
ReadFollow 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.