In the game, this was a building managerPlay “The Building Manager”
| In the game | In real IT |
|---|---|
| Visitor | Incoming traffic (packet) |
| Address | Source IP address |
| Town and block | First half of the IP address (network part) |
| Notice | Rule table |
| Come in / Sorry | Allow / Deny |
| Everyone else: Sorry | Default deny |
What does it look at?
A firewall looks at a connection’s source and destination IP addresses, its destination port number (which service it’s for: 443 is HTTPS, 22 is SSH, and so on) and its protocol, and checks them against the rule table. This is called packet filtering.
Rules are read from the top; the first match decides
The rule table is checked one row at a time from the top, and the “allow” or “deny” of the first matching row decides. Rows below are not checked. That’s why order matters. For example, if you put “allow SSH from inside the company” below “deny all SSH,” SSH from inside gets stopped by the upper row too.
The last rule: “block everything else”
At the very bottom of the rule table goes a row that says “block any traffic that matched nothing above.” Allowing only what you need and blocking everything else is called default deny. It keeps intruders out of entrances you never opened.
- Decide “allow or block” by source/destination IP address and port number
- Rules are checked from the top, and the first matching row decides
- The last row is “deny everything else”