NETWORKING / A CONCEPT NOTE
Firewalls
who gets in, who gets out
Overview · mechanism
pitfall · examples
01 / THE SHORT VERSION
The idea in a few sentences.
A security barrier that inspects incoming and outgoing network traffic based on rules (IP, port, protocol). Statefulness lets it automatically allow return traffic for established sessions.
02 / FOLLOW THE MECHANISM
How firewall rule checking flows
Connection request
lands on the network interface card.
Rules check
firewall evaluates rules sequentially (IP, Port, Action).
State tables
if stateful, outbound packets update tables so return traffic passes without explicit rules.
Drop/Allow
matching packets are either accepted or silently dropped/rejected.
04 / COMMAND NOTES
Read the command, then the result.
Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.
list active Linux firewall rules
iptables -L -n -vcheck Ubuntu firewall status
ufw status verbose05 / CHECK YOURSELF
Could you explain Firewalls to a teammate?
Try it out loud in two sentences: what it is, and the one detail that changes the picture. If you stall, the gap is the part to reread.
Up next in NetworkingLatency vs Bandwidthwhy 'fast' means two things