Communication Networks · Visualized
Firewalls & Packet Filtering
Network Security
Filtering the traffic at the door: firewall rules, stateful inspection and where each type sits.
1 interactive subtopic — each one animated, step-through and explained.
Firewalls & Packet Filtering
Network SecurityA firewall sits between your trusted network and the wild internet and decides, packet by packet, what may pass. Packet filters judge each packet in isolation by header fields — source/destination IP, ports, protocol — against an ordered rule list. Stateful firewalls go further: they remember active connections and only allow return traffic for sessions that inside hosts started.
How Firewalls & Packet Filtering Works
- Every packet arrives and is compared against the rule list from top to bottom.
- Each rule matches on 5 fields: protocol, source IP, source port, destination IP, destination port.
- First match wins: the rule says ALLOW or DENY, and the packet is forwarded or dropped.
- No match → the default policy applies (best practice: deny by default).
- A stateful engine additionally tracks connections: outbound SYN creates an entry; inbound packets must belong to it.
Firewalls & Packet Filtering Worked Example
Try it: Toggle rules on/off and send test packets — watch each one walk the rule list to its verdict.
A web reply from 93.0.0.7:443 matches the state entry (inside host asked) → ALLOW. A random inbound packet to port 3389 matches nothing and hits default-deny → DROP. One blocked port is all that stands between a LAN and random scanners.
Firewalls & Packet Filtering: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.