/arcade

First Match

The first entry that matches decides. Nothing below it gets a say.

An access control list (ACL) on a Cisco router is read from the top, one entry at a time, and the first entry a packet matches permits or denies it; a packet that matches nothing meets the implicit deny at the end. Read the policy, pick the entries that implement it, put them in the right order and send the traffic.

See the First Match scoreboard

Kept in this browser · My desk

Best: -Played 0Where it comes from
100%
Level 1 of 20Par 1

The implicit deny

Web (HTTP, TCP 80) to the server 10.0.0.10 from anywhere. Nothing else.

Your list

ip access-list extended FIRST-MATCH

No entries yet. Add cards from the hand.

    Keys: the arrows move between entries, Shift with an arrow moves one, Delete removes it.

    The hand

    The wave

    1. 1TCP 203.0.113.7:51514 → 10.0.0.10:80 SYN (opening)
    2. 2TCP 198.51.100.20:49200 → 10.0.0.10:80 SYN (opening)
    3. 3TCP 203.0.113.7:51515 → 10.0.0.10:22 SYN (opening)
    4. 4UDP 192.0.2.9:5353 → 10.0.0.10:53
    5. 5ICMP 198.51.100.20 → 10.0.0.10

    A hint is offered after 3 more waves; each costs 20 points.

    Where it comes from

    Reading a rule list from the top and stopping at the first match is an old idea. In March 1989 Jeffrey C. Mogul of Digital Equipment Corporation's Western Research Laboratory described screend, which controls the datagrams that flow through a Unix-based gateway, in WRL Research Report 89/4, a preprint of his paper for the Summer 1989 USENIX Technical Conference. For each packet its rules are searched in the order they appear, and if none matches, a default action applies, normally rejection.

    Cisco IOS access control lists (ACLs) read the same way: the first entry a packet matches decides whether it is permitted or denied, and every list ends with an unwritten, implicit deny. So the order matters as much as the entries: a broad permit near the top hides everything below it.

    As a puzzle, First Match belongs with the programming games in which a few instructions, put in the right order, make a machine do the right thing, such as Zachtronics' TIS-100 and Tomorrow Corporation's Human Resource Machine.

    More on this site

    Sources

    1. Simple and Flexible Datagram Access Controls for Unix-based Gateways (WRL Research Report 89/4), Digital Equipment Corporation Western Research Laboratory (Bitsavers mirror) (accessed 6 November 2026)
    2. IP Access List Overview, Cisco (accessed 6 November 2026)
    3. TIS-100, Zachtronics (accessed 6 November 2026)
    4. Human Resource Machine, Tomorrow Corporation (accessed 6 November 2026)