Skip to content

Firewall ACL practice

Free firewall ACL practice lab on a live company topology. Probe TCP and UDP ports, reorder shadowed rules, write narrow permit or deny entries, and see first-match evaluation and implicit deny in action.

Audit and fix FW-Edge

Lab 1 · Clean first try 0/0

Staff-PC (10.65.1.0/24) cannot connect to App-Srv (10.65.2.10) on DNS (UDP 53), even though an engineer added a rule for it earlier. Keep Finance-DB blocked and Guest HTTPS (:443) working.

Policy requirements
  • Allow Staff-PC → App-Srv on DNS (UDP 53)
  • Keep Guest-Laptop limited to HTTPS (TCP 443) on App-Srv (block Guest SSH and non-HTTPS ports)
  • Block Staff-PC from Finance-DB (all restricted ports & ICMP)
Live Packet Probe (Ping / Traceroute / Port)

Standard probes show realistic host output. SPAN capture reveals the matched firewall rule.

Device Config ConsoleFW-Edge
Connected interfaces
Staff: 10.65.1.1/24Guest: 10.65.9.1/24Servers: 10.65.2.1/24
Firewall ACL rules (top-to-bottom, first match wins)
#1 DENY ANY any → 10.65.2.20/32 (any port)
#2 PERMIT UDP 10.65.1.0/24 → 10.65.2.10/32 (port 8080)
#3 PERMIT TCP 10.65.9.0/24 → 10.65.2.10/32 (port 443)
Implicit: DENY ANY any → any (default drop at bottom)
Add ACL rule (inserted at top — reorder with ↑ / ↓)

Play the firewall shift

A learning simulation with invented company networks and documentation IP blocks (RFC 5737). Always follow your organization's change control and vendor manuals on production hardware.

Use it on a real shift

Network Engineer simulator: Carve CIDR subnets, configure gateways, static routes, firewall ACLs and NAT, and trace live packets across a company network.

Clock in

First-match rules, implicit deny, and common ports

How firewall ACLs evaluate packets

Network firewalls read access control list (ACL) rules strictly from top to bottom and stop at the first match. If a broad DENY rule sits above a specific PERMIT rule, the permit rule is shadowed and never runs.

When no rule matches a packet, an implicit deny (DENY any any) at the bottom drops it silently. When a firewall permits traffic to a server that is not listening on that port, the host itself replies with TCP RST (RFC 9293) or ICMP Port Unreachable (Type 3, Code 3, RFC 792). Note that DNS uses both UDP 53 and TCP 53 (RFC 7766).

Common IANA TCP & UDP ports

PortProtoService
22tcpSSH (TCP 22)
23tcpTelnet (TCP 23)
53udpDNS (UDP 53)
53tcpDNS (TCP 53)
80tcpHTTP (TCP 80)
443tcpHTTPS (TCP 443)
445tcpSMB file share (TCP 445)
3389tcpRDP desktop (TCP 3389)
5432tcpDatabase (TCP 5432)
9100tcpPrinter (TCP 9100)

Questions people ask

Why does rule order matter in a firewall ACL?

Access control lists evaluate packets strictly from top to bottom and stop at the first matching rule. If a broad DENY sits above a narrow PERMIT, the permit rule is shadowed and never matches.

What is an implicit deny?

Every standard firewall ACL ends with an invisible DENY any any rule. Any packet that fails to match an explicit PERMIT rule above it is dropped silently — unlike a closed destination port, which returns TCP RST (RFC 9293) or ICMP Port Unreachable (Type 3, Code 3, RFC 792).

Which TCP and UDP ports show up most in firewall rules?

Common IANA-assigned ports include HTTPS (TCP 443), HTTP (TCP 80), SSH (TCP 22), DNS (UDP/TCP 53, RFC 7766), SMB file sharing (TCP 445), RDP (TCP 3389), and raw network printing (TCP 9100).

More network engineer practice