How to write firewall rules with iptables/nftables

Build Wallspire, host firewall rule labs with iptables, nftables, allow/deny.

  • Difficulty Intermediate
  • Parts 10
  • Stack iptables, nftables, allow/deny

What you are learning

Wallspire is host firewall rule labs. The teaching focus is Firewall (iptables, nftables, allow/deny).

Work in order. Early parts set vocabulary and environment; later parts assume the earlier checkpoints.

How to use these lessons

Read the goal, open the matching GitHub folder, complete the lab or exercises, then return for the explanation. If a command fails, check you are in the numbered folder first.

Open the Wallspire GitHub repo →

Parts in order

Each chapter below is one checkpoint in this lab.