Lion Cipher Lab
Test your lab firewall rules with an expected-versus-actual matrix
- Penetration Testing / Red Team
- Intermediate
- ~70 min
- Free · no account required
Why it matters
Almost every firewall review in real work starts from a policy document and ends in a spreadsheet of what actually happens. Rules that look right in a file often are not: order, a stray allow, a missing return rule. Testing from both sides, with the expectation written first, is the habit that catches the stray allow before an attacker does.
What you'll learn
- writing the expected result of a firewall policy before testing it
- testing from both sides of a router with Nmap and Ncat
- telling a filtered port from a closed port
- reading the nftables ruleset and its counters
- logging dropped traffic with a prefix
- fixing a rule that is too broad and re-testing
- keeping the matrix as evidence
Steps in this lab
- Authorization and a rollback plan
- Write the policy, then the expected column
- Load a reference ruleset, with a mistake in it on purpose
- Test from zone A with Nmap
- Test from zone B, which has no right to start connections
- Find the mismatch in the ruleset, not just in the matrix
- Fix the rule and run the identical test again
- The defender's view: read the router log
Open the full interactive lab →