Firewall Rule Builder

Six test connections, five rules in the wrong order. Learn first-match evaluation by fixing the rule set until every packet gets the right verdict.

A web server needs HTTPS from anyone and SSH only from the admin subnet. Every rule needed is already present, but a forgotten "allow any" sits at the top. Fix the order and watch six test connections change verdict live.

How to use it

  1. Watch how each test connection is matched.
  2. Reorder or remove rules.
  3. Get all six connections to the expected verdict.

What to take away

First match wins

Most firewalls and cloud security groups with ordered rules stop at the first rule that matches, so a broad rule above a specific one silently disables it.

Specific before general

Put narrow allow and deny rules first and broad ones later, then finish with a default deny so anything you did not anticipate is blocked.

Temporary rules are permanent

An "allow any any" added during setup is one of the most common real misconfigurations. Review rule sets regularly and remove what has no owner.

Frequently asked questions

What is a default deny?

A final rule, or the firewall's built-in behaviour, that drops any traffic no earlier rule allowed. It turns forgotten cases into blocked traffic rather than open ports.

What does 10.0.5.0/24 mean?

CIDR notation for 10.0.5.0 to 10.0.5.255: the first 24 bits are the network and the last 8 identify hosts. The subnet calculator tool shows the range for any prefix.

Where this fits in the course

This security lab pairs with Path 12 — Network Security — see all 26 learning paths.

It runs entirely in your browser: nothing is uploaded, no account is needed, and it is free.

Related

  • Subnet Calculator — IPv4 CIDR → network, broadcast, host range, mask, and host count.
  • Packet Capture Viewer — Load a sample capture and explore protocols, IPs, and payloads — the same "read the traffic" muscle Wireshark builds.
  • DNS Recon Playground — A simulated dig. Query a target's likely subdomains and build a map of its real, sometimes-forgotten attack surface.
  • Log Analysis / IR Lab — A messy auth.log dump from a compromised box. Reconstruct the timeline and find the breach — blue-team skills, not exploitation.

Browse all 50 security labs →