A firewall controls which traffic is allowed in and out of a network based on rules. It is the core network security control and appears in every security conversation.
How a Firewall Evaluates Traffic
Ordered rules, first match wins, everything else denied.
Tap or hover a part to learn more.
Src/dst IP, port, protocol.
Every packet arriving at the firewall carries a source and destination IP, a port and a protocol. The firewall checks it against an ordered rule list to decide allow or deny.
Check your understanding
1. How are firewall rules evaluated?
2. What does a default-deny policy do?
Keep learning
The core idea
- Firewalls allow or deny traffic by source/destination IP, port and protocol.
- Stateless firewalls check each packet; stateful firewalls track whole connections.
- Next-generation firewalls (NGFW) add application awareness and intrusion prevention.
How it works in practice
- A default-deny policy blocks everything except what you explicitly allow.
- A DMZ hosts public-facing servers separated from the internal network.
- Egress (outbound) filtering is as important as inbound rules.
Common mistakes
- Overly permissive 'any-any' allow rules.
- Forgetting outbound/egress filtering.
- Confusing a firewall with NAT (they often coexist but differ).
Why it matters for your career
Firewall concepts bridge Networking Fundamentals into Network+ and Security+ — and every SOC or network role expects them.
Technical interview questions
- What is the difference between a stateless and stateful firewall?
- What is a default-deny policy?
- What is a DMZ?
Practice questions
- What tracks whole connections? (Stateful firewall)
- What blocks all but allowed traffic? (Default-deny)
- Where do public servers sit? (The DMZ)
Where this fits in your networking journey
This is one concept in the Networking Fundamentals path, which leads into CompTIA Network+ and Cisco CCNA. When this clicks, review NAT and continue with VPNs.
Practise with Missiora
- AI Interview™ — rehearse networking interview questions with scored feedback.
- Career Coach™ — build a fundamentals → certification → job plan.
- Job Intelligence™ — see which networking skills real adverts demand.
