Firewalls
A firewall is a network or host control that permits or blocks traffic according to a policy. It sits on a traffic path, examines available connection information, and applies rules that reduce unwanted access without replacing security on the systems behind it.
itDefensive security and security operations | OpenSkills.info
Course pathWalk it in order
Look it upDip in anytime
Go furtherLeaves this page
Don't Panic
Don't Panic — Firewalls
A firewall is the traffic bouncer that reads a policy rather than a guest list. It sits on a network path, gathers the facts it can see, and decides whether traffic continues, waits in silence, or receives a firm no. Before this arrangement, every reachable service was largely left to make its own introductions. That is a lively way to discover which services had opinions about strangers.
The durable idea is policy enforcement point. A rule only matters when the traffic actually crosses the device or service that enforces it. Routes, tunnels, another interface, or a return trip on a different path can leave a beautifully written ruleset guarding an empty doorway. The map of the real forward and return paths therefore comes before admiration of a firewall interface.
A second idea is stateful inspection, which remembers an observed connection in a state table. That memory lets return traffic belong to an allowed conversation instead of requiring a generous inbound rule. It also means that a firewall can become fussy when it sees only half the conversation, or when its state table has no room left. Packets are not rude. They are merely arriving without the paperwork the firewall expected.
Rules are usually ordered, and their actions are not interchangeable. A broad early rule can shadow a careful later one. Drop denies traffic quietly, so the sender often waits for a timeout. Reject denies it with an error when the protocol supports one. Network address translation may share the same device, but changing an address or port does not grant permission. A translated visitor still needs a rule that says it may enter.
The surprise is that a successful connection is not the finish line. It proves an allowed path worked; it does not prove that the narrow rule matched or that a neighboring path remains blocked. The useful test has two halves: try the required flow, then try a similar flow that should fail. Check the rule, state, counters, and logs afterward. Evidence is less glamorous than a green test, but it is considerably harder to argue with.
Firewalls belong in layers. A perimeter control, internal segmentation control, host firewall, or cloud firewall can each enforce different paths. None proves that permitted traffic is safe, repairs vulnerable software, or makes network location a substitute for identity and device checks. The Intro explains the architecture and limits. Slides compress the decisions into a path you can follow. The Cheatsheet is where rule actions, state failures, and verification questions wait with their clipboards. The practice reference and exercise turn the theory into a safe, isolated test.
Where this skill leads
Relevant careers
See how this topic contributes to broader role-level skill maps.
Sources
- https://csrc.nist.gov/pubs/sp/800/41/r1/final
Supports
- Firewall definition, technologies, policy, placement, selection, configuration, testing, deployment, management, failure considerations, quiz answers, and infographic factual base
- Primary source and Reference rationale
- September 2009 timeline milestone
- https://nvlpubs.nist.gov/nistpubs/legacy/sp/nistspecialpublication800-41r1.pdf
Supports
- Packet filtering, stateful inspection, application proxies, host firewalls, DMZ placement, deny-by-default policy, logging, testing, change management, high availability, and performance
- Intro, slides, cheatsheet, quiz, video script, and infographic factual base
- https://www.rfc-editor.org/rfc/rfc2647.html
Supports
- Firewall terminology for packet filtering, stateful filtering, proxies, rulesets, policy, protected networks, and performance
- Quiz answers, Reference rationale, and August 1999 timeline milestone
- https://www.rfc-editor.org/info/rfc2979/
Supports
- Firewall interoperability, Path MTU Discovery, application negotiation, and protocol design limits
- Reference rationale and October 2000 timeline milestone
- https://www.rfc-editor.org/rfc/rfc3234
Supports
- IP and application firewall behavior, middlebox path dependence, fragmentation, restart, and protocol effects
- Failure analysis, quiz answers, and Reference rationale
- https://www.rfc-editor.org/info/rfc4487/
Supports
- Five-tuple filtering and state-table behavior
- Stateful filtering quiz answer and cheatsheet flow key
- https://csrc.nist.gov/pubs/sp/800/207/final
Supports
- Zero trust resource focus, removal of implicit trust from network location, and coexistence with perimeter controls
- Firewall limits, quiz answer, and Reference rationale
- https://www.nist.gov/news-events/news/2020/08/zero-trust-architecture-nist-publishes-sp-800-207
Supports
- August 2020 publication date and shift from wide perimeters toward resources
- Zero trust timeline milestone
- https://netfilter.org/
Supports
- Linux packet filtering, connection tracking, NAT, logging, iptables, and nftables
- Reference rationale and implementation context
- https://www.netfilter.org/about.html
Supports
- Netfilter project history and relationship to earlier Linux firewall systems
- https://netfilter.org/news.html
Supports
- January 2014 nftables kernel merge and release history
- nftables timeline milestone
- https://kernelnewbies.org/Linux_3.13
Supports
- Linux 3.13 release date and inclusion of nftables as the iptables successor
- January 2014 timeline milestone
- https://www.openbsd.org/faq/pf/
Supports
- PF filtering, NAT, tables, anchors, logging, traffic control, redundancy, and OpenBSD 3.0 inclusion
- Reference rationale and timeline detail
- https://www.openbsd.org/30.html
Supports
- December 2001 OpenBSD 3.0 release and introduction of PF with NAT
- PF timeline milestone
- https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/
Supports
- Host-based firewall policy, profiles, centralized management, and operating-system enforcement
- Reference rationale
- https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ics/portal
Supports
- Windows Firewall first release with Windows XP Service Pack 2
- 2004 timeline milestone
- https://www.cisco.com/c/dam/en_us/about/ac123/ac147/ac174/ac200/about_cisco_ipj_archive_article09186a00800c8a17.pdf
Supports
- DEC SEAL architecture and June 1991 delivery
- Early commercial firewall timeline milestone
- https://www.nist.gov/publications/keeping-your-site-comfortably-secure-introduction-internet-firewalls
Supports
- December 1994 firewall guidance on components, access policies, implementation, planning, and purchasing
- NIST timeline milestone
- https://www.rfc-editor.org/info/rfc2196/
Supports
- September 1997 Site Security Handbook firewall filtering, proxy, and architecture guidance
- Timeline milestone
- https://www.nist.gov/publications/guidelines-firewalls-and-firewall-policy-recommendations-national-institute-standards
Supports
- January 2002 original NIST firewall publication
- Timeline milestone
- https://github.com/sindresorhus/awesome
Supports
- Required starting catalog and discovery of Awesome Security
- https://github.com/sbilly/awesome-security
Supports
- Discovery of pfSense, OPNsense, and ModSecurity as firewall ecosystem projects
- https://docs.netgate.com/pfsense/en/latest/firewall/index.html
Supports
- pfSense stateful rules, aliases, NAT, logging, and troubleshooting
- pfSense Awesome Links rationale
- https://www.netgate.com/pfsense-plus-software
Supports
- pfSense appliance, software, virtual, cloud, support, and subscription forms
- pfSense Landscape placement
- https://wiki.opnsense.org/manual/firewall.html
Supports
- OPNsense stateful filtering, interface rules, rule order, actions, state sessions, and diagnostics
- OPNsense Awesome Links rationale, quiz answer, and Landscape placement
- https://wiki.opnsense.org/
Supports
- OPNsense FreeBSD-based firewall and routing platform, Community Edition, and documentation scope
- https://modsecurity.org/faq/
Supports
- ModSecurity as an open-source web application firewall
- ModSecurity Awesome Links rationale
- https://www.paloaltonetworks.com/network-security/next-generation-firewall
Supports
- Hardware, virtual, container, and cloud firewall forms with application, user, content, and threat context
- Palo Alto Networks Landscape placement
- https://www.fortinet.com/products/next-generation-firewall
Supports
- FortiGate branch, campus, data center, virtual, and cloud deployments with inspection and centralized services
- FortiGate Landscape placement
- https://www.checkpoint.com/quantum/next-generation-firewall/
Supports
- Check Point centrally managed hardware, virtual, and cloud firewalls, threat prevention, and clustering
- Check Point Quantum Force Landscape placement
- https://secure.cisco.com/secure-firewall/v7.0/docs/secure-firewall
Supports
- Cisco Secure Firewall appliance and virtual forms, centralized management, stateful policy, application detection, and threat inspection
- Cisco Secure Firewall Landscape placement
- https://docs.aws.amazon.com/network-firewall/
Supports
- AWS managed stateful network firewall and intrusion detection and prevention for virtual private clouds
- AWS Network Firewall Landscape placement
- https://learn.microsoft.com/en-us/azure/firewall/overview
Supports
- Azure managed stateful firewall, north-south and east-west inspection, rule tiers, availability, and scale
- Azure Firewall Landscape placement
- https://www.cloudflare.com/products/network-firewall/
Supports
- Cloudflare layer three and layer four firewall as a service for on-premises networks and wide area networks
- Cloudflare Network Firewall Landscape placement
- https://man7.org/linux/man-pages/man8/ip-netns.8.html
Supports
- Network namespace isolation for the Linux nftables practice reference and exercise
- A network namespace has its own network stack, routes, firewall rules, and devices
- https://aws.amazon.com/blogs/security/hands-on-walkthrough-of-the-aws-network-firewall-flexible-rules-engine/
Supports
- Field Notes on stateful rule evaluation, action order, and matching only after the required protocol context exists
