Rule Inspector
Fifteen connections. One policy. The first match decides.
An office's edge firewall, a queue of connections and a policy that gets stricter as the shift goes on. Read the rules from the top, remember the connections the policy has already let open, and leave the rest to the implicit deny. The audit at the end shows every wrong call and the rule that decides it.
See the Rule Inspector scoreboard
Kept in this browser · My desk
Setting up the board…
Learn the real thing: the ACL first-match evaluator · access control lists on switches and routers · why a FortiGate rule did not fire · the Check Point rule base · private IPv4 address space
Rule Inspector reads traffic against a policy; to build the list instead, entry by entry, play First Match
Where it comes from
Rule Inspector borrows a familiar game formula: an inspector at a desk, a queue that keeps coming, a rulebook that grows stricter by the day, and someone checking the inspector's work afterwards. Here the queue is network connections, the rulebook is a firewall policy, and the check is the audit.
Reading rules from the top and stopping at the first that matches is as old as packet filtering. In March 1989 Jeffrey C. Mogul of Digital Equipment Corporation's Western Research Laboratory described screend, which screens the datagrams crossing a Unix gateway: its rules are evaluated in the order they appear, so specific exceptions go before a general rule, a default action (normally rejection) covers the rest, and both directions of a path take a rule each. The Internet Engineering Task Force (IETF) model for access control lists (RFC 8519, 2019) says the same of every vendor's lists: the actions of the first matching entry apply and the entries after it are not processed. Juniper writes the end out: every firewall filter on its EX Series switches ends with an implicit deny.
A rule for each direction is what a stateful filter saves. Request for Comments (RFC) 6092 (2011), written for home gateways, describes one: when an inside host opens a Transmission Control Protocol (TCP) flow with a SYN, or sends a User Datagram Protocol (UDP) packet out, the filter allocates a state record and forwards the flow's packets by it, and it refuses packets that match no active flow and do not conform to a rule that may create one. RFC 9293, the current TCP specification, opens every connection with the three-way handshake that starts with a SYN.
The numbers on the cards are the registries' own. The Internet Assigned Numbers Authority (IANA) keeps the protocol numbers (TCP 6, UDP 17, ESP, the Encap Security Payload, 50), the service names and port numbers (ssh on 22, https on 443, isakmp on 500; clients use the Dynamic Ports from 49152 to 65535, which are never assigned) and the IPv4 special-purpose address registry that RFC 6890 set up in 2013. The anti-spoofing rule refuses as sources from the internet the blocks that registry marks as not globally reachable: the three private-use blocks of RFC 1918 (1996), the shared address space of RFC 6598, loopback, link local and the rest. RFC 5737 (2010) set aside 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24 for documentation, which is why they stand in for the internet here, and asks that packet filters drop them.
- firewall
- stateful firewall
- stateful inspection
- ACL
- packet filter
- five-tuple
- RFC 1918 addresses
- bogon
- IANA
- port
Sources
- Simple and Flexible Datagram Access Controls for Unix-based Gateways (WRL Research Report 89/4), Digital Equipment Corporation Western Research Laboratory (Bitsavers mirror) (accessed 8 November 2026)
- RFC 8519: YANG Data Model for Network Access Control Lists (ACLs), RFC Editor (accessed 8 November 2026)
- Understanding How Firewall Filters Are Evaluated, Juniper Networks (accessed 8 November 2026)
- IP Access List Overview, Security Configuration Guide: Access Control Lists, Cisco IOS Release 15S (read in a browser on 2026-11-08: the site refuses automated reads), Cisco (accessed 8 November 2026)
- RFC 6092: Recommended Simple Security Capabilities in Customer Premises Equipment (CPE) for Providing Residential IPv6 Internet Service, RFC Editor (accessed 8 November 2026)
- RFC 9293: Transmission Control Protocol (TCP), RFC Editor (accessed 8 November 2026)
- Assigned Internet Protocol Numbers, IANA (accessed 8 November 2026)
- Service Name and Transport Protocol Port Number Registry, IANA (accessed 8 November 2026)
- Internet Control Message Protocol (ICMP) Parameters, IANA (accessed 8 November 2026)
- IANA IPv4 Special-Purpose Address Registry, IANA (accessed 8 November 2026)
- RFC 6890: Special-Purpose IP Address Registries, RFC Editor (accessed 8 November 2026)
- RFC 1918: Address Allocation for Private Internets, RFC Editor (accessed 8 November 2026)
- RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space, RFC Editor (accessed 8 November 2026)
- RFC 5737: IPv4 Address Blocks Reserved for Documentation, RFC Editor (accessed 8 November 2026)