What this miniature lab demonstrates
Evaluate zone-to-zone traffic against a written allowlist without scanning or contacting any network.
Set up a harmless offline test
Requires Python 3. Run only on your own computer in a text console. No packages, accounts, network connections, malware, production logs or cloud credentials are required. Copy the example into a file or download the runnable script. The script includes assertions that fail if the expected behaviour changes.
allowed = {("guest", "dns", 53), ("admin", "server", 22),
("workstation", "server", 443)}
flows = [("guest", "dns", 53), ("guest", "server", 22),
("admin", "server", 22), ("workstation", "server", 445)]
expected = [True, False, True, False]
for flow, desired in zip(flows, expected):
accepted = flow in allowed
assert accepted == desired
print(f"{flow[0]} -> {flow[1]}:{flow[2]}", "permit" if accepted else "deny")
Output from the bundled script
The following text was generated by running this exact script in an offline Python environment during package validation. It is not a product or attacker simulation result.
guest -> dns:53 permit
guest -> server:22 deny
admin -> server:22 permit
workstation -> server:445 deny
Interpretation and limits
Each row is a fictional connection request. This table models policy intent only. Real segmentation needs authorised packet-path testing and comparison with effective firewall policy.
Questions to discuss
Which exceptions are business necessities, and how will you verify that a production rule follows the written matrix?
To practise further, open the network labs learning track and download a three-case CSV from any individual guide. Those records are fictional and deliberately contain an ambiguous case for analysis.
Primary sources
Scope: An illustrative educational model tested for deterministic output; no real-world security effectiveness or deployed vulnerability assessment is claimed. If a command, API or framework changes, follow the current official documentation and obtain approval before changes to real systems.