Lion Cipher Lab

Build a three-zone network in namespaces and prove the firewall policy with tests

Why it matters

Most breaches spread because one machine could talk to another it had no reason to reach. Network zones are the standard answer: public-facing servers sit in a DMZ, internal machines sit behind the firewall, and each zone is only allowed to start the connections it needs. The firewall rules are short. The hard part is knowing they do what you meant, and keeping them that way when somebody adds a quick fix in a hurry. Writing the policy as tests first, and running them every time the rules change, is how you turn a firewall from something you hope works into something you have shown works.

What you'll learn

Steps in this lab

  1. Zones, and who may start a connection
  2. Build the three zones around a firewall namespace
  3. Start a listener in every zone
  4. Write the policy as a test table first
  5. Run the tests with no firewall: they should fail
  6. Write the ruleset: forward chain, default drop
  7. Run the tests again: green
  8. Break it on purpose: a bad quick fix
  9. What a professional does differently
  10. Clean up

Open the full interactive lab →

Keep learning