About this interactive
Firewalls differ by brand, so the lesson uses OPNsense, popular and open source. Picture one with three interfaces: LAN 1, LAN 2 and the WAN. Each interface has an in direction, from its network into the firewall, and an out direction.
OPNsense decides on the way in. It puts a restrictive access list in front of every in and leaves every out wide open. Out of the box, the WAN's guard stops anything that starts on the internet, so nobody outside can open a connection to anything inside. The first LAN gets a default rule that lets its devices go out to anywhere. Every interface added after it starts with no rules, so its devices can reach nothing until you write some.
Because the firewall is stateful, it records each conversation LAN 1 starts, its addresses and ports, so the replies come back in without a rule of their own. Three reasons, then: LAN 1's default rule, the state table, or blocked until someone opens a hole.
About TechKnowSurge
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →