GRC Careers

HomeResourcesFirewalls

CS-043 · Network

Firewalls

The gatekeepers that filter network traffic against a set of security rules.

Executive Summary

A firewall is a security device or software that inspects network traffic and allows or blocks it according to defined rules. Firewalls range from simple packet filters to stateful inspection systems and next-generation platforms that understand applications and users. They are a foundational control for separating trusted networks from untrusted ones.

What It Is

A firewall enforces a boundary between networks by examining traffic and deciding, based on a rule set, what may pass. The earliest firewalls were packet filters that judged each packet by its source and destination address, port, and protocol. Stateful firewalls improved on this by tracking the state of active connections, so they can tell whether a packet belongs to an established, expected session. Next-generation firewalls add deeper capabilities such as identifying the specific application in use, tying rules to user identity, and integrating intrusion prevention. Firewalls can be hardware appliances at a network edge, software on individual hosts, or cloud services protecting virtual networks.

Why It Matters

Firewalls are one of the most recognizable and widely deployed security controls because they reduce attack surface at the boundary. By default-denying unwanted traffic, they stop a large volume of opportunistic scanning and unauthorized connections before those reach internal systems. They also enforce segmentation, keeping a compromise in one zone from spreading freely to others. A firewall is not a complete defense on its own, and over-reliance on the perimeter is a classic mistake, but a well-configured firewall is an essential layer. For professionals, firewall design and rule management are common responsibilities and frequent interview topics.

How It Works

A firewall processes traffic against an ordered rule set, typically evaluating rules top to bottom and acting on the first match. Each rule specifies conditions such as source, destination, port, and protocol, and an action to allow or deny. A strong configuration follows a default-deny posture, blocking everything that is not explicitly permitted. Stateful firewalls maintain a connection table so return traffic for an allowed outbound session is automatically permitted without a separate rule. Next-generation firewalls go further by inspecting the content and application layer, recognizing that traffic on port 443 could be many different applications, and applying policy accordingly. Logging every decision lets teams audit activity and investigate incidents.

Architecture Diagram

Incoming traffic arrivesMatch against ordered rulesFirst matching rule decidesAllow permitted traffic throughDeny everything else by defaultLog the decision for audit
Traffic arriving at a firewall is checked against rules in order; the first matching rule allows or denies it, and unmatched traffic is denied by default.

Visual Workflow

Define what the network needs to permit based on business requirements.Write explicit allow rules for that necessary traffic, most specific first.Set a default-deny rule so anything not permitted is blocked.Enable stateful tracking so return traffic for allowed sessions is handled automatically.Log firewall decisions and forward logs to central monitoring.Review and prune the rule set regularly to remove stale or overly broad rules.

Common Attacks

Common Mistakes

Best Practices

Quick Checklist

Recommended Tools

Network firewall appliance
Filters traffic between network zones at the perimeter or internally
Host-based firewall
Filters traffic to and from an individual system
Next-generation firewall
Adds application awareness, user identity, and integrated prevention
Firewall rule analyzer
Audits rule sets for conflicts, redundancy, and risky entries

Industry Standards

NIST SP 800-41
Guidelines on firewalls and firewall policy
PCI DSS Requirement 1
Requires firewall configuration to protect cardholder data
CIS Controls
Include boundary defense and network segmentation practices

Career Relevance

Firewall design, rule management, and troubleshooting are core duties for network security engineers and security engineers, and cloud security engineers apply the same concepts to security groups and virtual network policies. SOC analysts read firewall logs during investigations. Because firewalls are so widely deployed, they appear constantly in the interviews and daily work of the roles that AI-Governance-Jobs.com serves.

Interview Questions

Related Certifications

CompTIA Security+ CompTIA Network+ Cisco CCNA Security

Further Reading

Key Takeaways

Download PDFDownload PNG

FAQ

Is a firewall enough to secure a network?

No. A firewall is an essential boundary control, but it is one layer in a defense-in-depth strategy. Attackers can tunnel through allowed protocols or target exposed services, so firewalls must be paired with monitoring, patching, segmentation, and endpoint protection.

What is the difference between a stateful and a next-generation firewall?

A stateful firewall tracks connection state and filters mainly by address, port, and protocol. A next-generation firewall adds the ability to identify specific applications and users and often integrates intrusion prevention, so it can apply policy at a deeper level.

Can a firewall inspect encrypted traffic?

Not without extra steps. Encrypted traffic hides its contents, so a firewall sees only metadata unless it is configured to decrypt and re-encrypt the traffic. Many organizations use that decryption selectively because of privacy and performance considerations.

Get all 116 reference sheets
The complete AGJ Cybersecurity Professional Reference Library, print-ready PDFs and PNGs.
Browse the library

Related Careers

Related certifications

CompTIA Security+CompTIA Network+Cisco CCNA Security

Current openings

Live openings appear on the web version. Browse the job board for current GRC and security roles.
Browse all jobs

Suggested learning path

  1. Ground the basics with CS-001 Cybersecurity
  2. Study this sheet: Firewalls
  3. Go deeper: Ports & Protocols
  4. Go deeper: Intrusion Detection Systems (IDS)
  5. Validate it: work toward CompTIA Security+
  6. Find the role: browse current openings

Related sheets

More in Network

Share this LinkedIn Facebook X Email