Reviewed by: Mansoor Ali, Technical Editor, PenPonder | Last Updated: July 2026
A firewall is a security system that decides which traffic gets into your network and which gets blocked. That is it. Everything else, the technical terms, the product names, the marketing language, builds on that one idea.
This guide explains firewalls in plain English. No assumed knowledge. By the end you will know what each type does, why it matters in 2026, and which one fits your situation.
What a Firewall Actually Does
Think of your network like a building. Data comes in and goes out through doors. A firewall is the security guard at those doors, checking every person (data packet) that wants to enter or leave, comparing them against a list of rules, and deciding whether to let them through.
Without a firewall, your network is a building with no security guard. Anyone can walk in. Anything can walk out.
When data travels across the internet, it moves in small chunks called packets. Each packet has a header, like the address on an envelope, containing information about where it came from, where it is going, and what type of data it is. Firewalls read these headers and compare them against their rule sets. Some also read what is inside the envelope. More on that shortly.
A firewall can do three things with a packet:
- Accept — allow it through
- Reject — block it and tell the sender it was blocked
- Drop — block it silently, with no response to the sender
Drop is generally preferred for malicious traffic. Reject tells attackers your firewall exists and is active. Drop reveals nothing.
Why Firewalls Still Matter in 2026
Over 90% of web traffic is now encrypted. That creates a real problem for older firewalls, they cannot see inside encrypted packets, which means attackers can hide malicious payloads inside HTTPS traffic and walk straight through basic firewall defenses.
Modern firewalls address this through TLS inspection, they decrypt traffic, inspect it, then re-encrypt it before passing it on. This is now a standard capability in enterprise firewalls and a key reason organisations still need up-to-date firewall technology rather than relying on older equipment.
The global next-generation firewall market exceeded $5.4 billion in 2025 and continues growing. That growth reflects the reality that firewalls remain the foundation of network security, but the technology has changed significantly from the basic packet filters of the 1990s.
The 7 Types of Firewalls Explained
| Firewall Type | How It Works | Best For | Main Weakness |
|---|---|---|---|
| Packet Filtering | Checks packet headers only | Basic filtering, small networks | Cannot see inside packets |
| Stateful Inspection | Tracks connection state | Most standard networks | Slower, blind to encrypted content |
| Proxy Firewall | Acts as middleman between you and the internet | Anonymity, content filtering | Adds latency, complex to manage |
| Next-Generation (NGFW) | Deep packet inspection + app awareness + IPS | Enterprise networks, regulated industries | Expensive, complex to configure |
| Web Application Firewall (WAF) | Inspects HTTP/HTTPS traffic to web apps | Websites, APIs, SaaS products | Protects apps only, not networks |
| Cloud Firewall (FWaaS) | Firewall delivered as a cloud service | Cloud environments, remote teams | Dependent on internet connection |
| Unified Threat Management (UTM) | Firewall + antivirus + VPN + filtering in one box | Small to mid-size businesses | Throughput drops when features are on |
1. Packet Filtering Firewall
This is the oldest and simplest type. It reads the address on the envelope, source IP, destination IP, port number, protocol, and decides whether to allow or block based on those details alone. It never looks inside the envelope.
Fast and lightweight. But it has a critical blind spot: it cannot tell whether the traffic inside a permitted packet is malicious. An attacker can send harmful code inside a packet with a legitimate-looking header and a basic packet filter will let it through.
In 2026, standalone packet filtering firewalls are rarely used except in very simple environments or as part of a broader layered defense. Most modern firewalls include packet filtering as one layer among several.
2. Stateful Inspection Firewall
A significant upgrade from packet filtering. Stateful firewalls do not just check each packet individually, they track the context of the entire conversation it belongs to.
Here is the difference in plain terms. If your computer requests a web page, a stateful firewall remembers that request. When the response comes back, it checks whether the response matches an outgoing request it already knows about. If someone tries to push unsolicited data into your network disguised as a response, the firewall spots the mismatch and blocks it.
Most standard business firewalls in use today are stateful firewalls. They are significantly more secure than basic packet filters and handle most common attack patterns well. Their main limitation is that they still cannot inspect encrypted traffic content without additional capabilities.
3. Proxy Firewall
A proxy firewall sits between your computer and the internet and acts as a middleman. When you request a web page, your request goes to the proxy. The proxy fetches the page on your behalf, inspects it, then passes the result back to you.
This means your actual IP address is never exposed to the external server, the proxy’s IP is what the outside world sees. It also means the proxy can inspect the full content of what comes back before it reaches your network.
Proxy firewalls are good for content filtering (blocking certain websites or categories of content) and providing anonymity. They add latency because every request goes through an extra step. They are commonly used in organisations that need to control what websites employees can access.
4. Next-Generation Firewall (NGFW)
This is the current enterprise standard. An NGFW combines everything a stateful firewall does with three additional capabilities that older firewalls lack:
Deep Packet Inspection (DPI) — the NGFW reads the actual content of packets, not just the headers. It can identify malware, policy violations, and attack patterns hidden inside traffic that looks legitimate from the outside.
Application Awareness — older firewalls control traffic by port number. Port 80 is HTTP, port 443 is HTTPS. An NGFW recognises specific applications regardless of which port they are using. It can block Dropbox specifically without blocking all HTTPS traffic.
Intrusion Prevention System (IPS) — actively monitors for known attack signatures and blocks them in real time, not just after the fact.
Most enterprise NGFWs also include TLS inspection, they decrypt encrypted traffic, inspect it, and re-encrypt it. This is critical since over 90% of web traffic is encrypted and a firewall that cannot inspect HTTPS is effectively blind to most modern attack vectors.
Leading NGFW vendors include Palo Alto Networks, Fortinet FortiGate, Cisco Firepower, Check Point, and Sophos. These are not cheap, enterprise NGFWs typically cost $3,000 to $50,000+ depending on throughput requirements.
5. Web Application Firewall (WAF)
A WAF protects web applications specifically. It inspects HTTP and HTTPS requests coming into your website or API and blocks attacks that target application-layer vulnerabilities.
The OWASP Top 10, the most common web application vulnerabilities, are what a WAF is designed to stop. These include:
- SQL injection — attackers inserting malicious database commands into form fields
- Cross-site scripting (XSS) — injecting malicious scripts into web pages viewed by other users
- Broken access control — accessing data or functions without proper authorisation
A WAF does not replace a network firewall. They protect different things. The network firewall protects your infrastructure. The WAF protects your web applications. If you run a website, API, or SaaS product, you need both.
Cloud WAF services like Cloudflare WAF, AWS WAF, and Azure Web Application Firewall make WAF protection accessible without hardware. Cloudflare’s free plan includes basic WAF rules.
6. Cloud Firewall (Firewall-as-a-Service, FWaaS)
Traditional firewalls are physical devices or software installed on your own infrastructure. A cloud firewall is delivered as a service, the vendor hosts and manages the firewall, and you route your traffic through it.
For organisations with remote teams and cloud-hosted workloads, this makes more sense than routing all traffic through a physical firewall at a central office. Traffic from a remote employee in a different country can be inspected by the cloud firewall without being backhauled through headquarters.
Major cloud platforms offer native firewall services: AWS Network Firewall, Azure Firewall, and GCP Cloud Armor. Third-party FWaaS providers like Zscaler, Cloudflare Gateway, and Palo Alto Prisma Access sit in front of all your internet traffic regardless of where users or workloads are.
For hybrid environments, offices plus cloud, the best practice is an NGFW at each physical location plus a cloud-native firewall in each cloud environment, with logs flowing to a centralised SIEM.
7. Unified Threat Management (UTM)
A UTM bundles multiple security functions into one box: stateful firewall, antivirus, VPN, web filtering, spam filtering, and sometimes IPS. The appeal is simplicity, one device, one vendor, one management console.
UTMs are popular with small and mid-size businesses that do not have the IT resources to manage separate specialised systems. Vendors include Fortinet, Sophos, WatchGuard, and SonicWall.
The main trade-off is throughput. When you enable multiple scanning features simultaneously, UTM devices can slow down significantly under heavy traffic loads. Enterprise-scale organisations generally prefer separate specialised systems. For a 50-person business, a UTM is often the most practical choice.
Hardware vs Software vs Cloud Firewalls
Firewall type describes how it works. Delivery method describes how it is deployed. These are separate questions.
| Delivery Method | What It Is | Best For | Main Trade-off |
|---|---|---|---|
| Hardware | Physical device on your network | Offices with on-premise infrastructure | Expensive, requires maintenance |
| Software | Installed on a computer or server | Individual devices, small networks | Uses device resources, complex to update at scale |
| Cloud | Hosted and managed by a vendor | Remote teams, cloud workloads | Dependent on internet connection quality |
Most organisations use all three. A hardware NGFW at the office, software firewalls (like Windows Defender Firewall) on individual devices, and cloud firewalls protecting cloud workloads and remote access.
What a Firewall Cannot Do
This is the part most guides skip. Knowing a firewall’s limitations matters as much as knowing what it does.
It cannot stop threats that come through permitted channels. If your firewall allows email and an employee opens a malicious attachment, the firewall did not fail, it did exactly what it was configured to do. Email was permitted. The threat came through email.
It cannot protect against insider threats. A firewall controls traffic between your network and the outside world. It has limited visibility into what authorised users do once they are inside the network.
It cannot compensate for misconfiguration. The most common firewall failure mode is not a technical flaw, it is an overly permissive rule set. A firewall rule that allows all inbound traffic from any IP address to any port is worse than no firewall at all because it creates a false sense of security.
It cannot see inside encrypted traffic without TLS inspection. Over 90% of web traffic is HTTPS. A firewall without TLS inspection is blind to most of the traffic passing through it.
It is not a complete security solution. A firewall is one layer. It works alongside endpoint detection and response (EDR), SIEM, MFA, employee training, and regular vulnerability assessments. None of those replaces the others.
How to Choose the Right Firewall for Your Situation
Individual or home user: The software firewall built into your operating system, Windows Defender Firewall or macOS firewall, is sufficient for most home users combined with a properly secured router. Your router also has a basic built-in firewall. Enable it and ensure WPA3 encryption is active.
Small business (under 50 people): A UTM appliance from Fortinet, Sophos, or WatchGuard covers your needs without requiring a dedicated IT team to manage it. Add Cloudflare WAF if you have a public-facing website or API.
Mid-size business (50-500 people): An NGFW from Palo Alto, Fortinet FortiGate, or Cisco Firepower at your network perimeter. Separate WAF for web applications. Cloud firewall for remote users and cloud workloads. Centralised logging through a SIEM.
Enterprise or regulated industry: Full NGFW deployment at every physical site. Cloud-native firewall in each cloud environment. WAF for all public-facing applications. TLS inspection enabled. Logs flowing to SIEM with active monitoring. Regular firewall audits and penetration testing.
Cloud-first or fully remote team: Cloud Firewall-as-a-Service (Zscaler, Cloudflare Gateway, or Palo Alto Prisma Access) plus WAF for any web applications. No physical firewall hardware needed.
Firewall Configuration Best Practices
A poorly configured firewall is often worse than no firewall, it creates a false sense of security while leaving real gaps open.
Start with deny-all. Configure your firewall to block everything by default. Then explicitly allow only the traffic your business needs. This is far more secure than allowing everything and trying to block the bad parts.
Change default credentials immediately. Firewall devices ship with default admin passwords. Change them the moment you set up the device. Default credentials are publicly known and are the first thing attackers try.
Enable TLS inspection on your NGFW. If your firewall supports it, enable it. A firewall that cannot see inside HTTPS traffic is blind to the majority of modern threats.
Keep firmware updated. Security vulnerabilities in firewall software are discovered and patched regularly. An unpatched firewall is an open door with a “please exploit me” sign.
Review rules regularly. Firewall rule sets accumulate over time. Rules added for a specific project three years ago may still be active long after the project ended. Audit your rule set at least annually and remove anything that is no longer needed.
Disable remote management unless you need it. If your firewall’s admin interface is accessible from the internet, it is a target. Disable remote management or restrict it to specific trusted IP addresses.
Log everything and review it. Firewall logs tell you what traffic is being blocked, what is being allowed, and whether anything looks suspicious. Logs that nobody reads are wasted information. Feed them into a SIEM or review them regularly.
Firewalls and Compliance Requirements
Several regulatory frameworks require specific firewall controls:
PCI DSS requires firewalls between cardholder data environments and untrusted networks. Requirement 1 of PCI DSS v4.0 specifically covers network security controls including firewall configuration and rule management.
HIPAA requires technical safeguards to control access to electronic Protected Health Information. Firewalls are a standard implementation of these safeguards.
SOC 2 requires logical access controls, firewalls are a core component of demonstrating the Security Trust Service Criterion.
NIST CSF 2.0 addresses network security through the Protect function, firewall controls map directly to several NIST subcategories.
For a full breakdown of cybersecurity compliance frameworks and what each requires, see our Cybersecurity Frameworks 2026 guide. For cloud-specific firewall requirements, see our Cloud Security Compliance guide.
Final Verdict
A firewall is not optional. It is the foundation layer of network security, the first thing you put in place and the last thing you remove.
In 2026 the question is not whether you need a firewall. It is whether your current firewall is capable of inspecting modern encrypted traffic, detecting application-layer threats, and integrating with the rest of your security stack.
For most small businesses, a UTM appliance covers all the bases. For organisations in regulated industries or with complex network environments, an NGFW with TLS inspection and centralised logging is the current standard. For cloud-first organisations, FWaaS removes the hardware requirement entirely.
The most expensive firewall misconfiguration is not the wrong vendor choice. It is a rule set that allows everything and blocks nothing. Start with deny-all, explicitly permit what you need, and review it regularly.
Frequently Asked Questions
What is a firewall in simple terms?
A firewall is a security system that checks every piece of data trying to enter or leave your network and decides whether to allow it or block it based on a set of rules you define. Think of it as a security guard at the door of your network.
What is the difference between a firewall and antivirus?
A firewall controls what traffic can enter and leave your network. Antivirus scans files and programs on your device for malware. They protect different things and work best together. A firewall stops threats at the network level. Antivirus catches threats that reach individual devices.
Do I need a firewall if I have antivirus?
Yes. They do different jobs. Antivirus scans files on your device. A firewall controls network traffic before it reaches your device. You need both. Most operating systems include a built-in software firewall, make sure it is enabled.
What is a next-generation firewall?
An NGFW is a firewall that combines traditional stateful inspection with deep packet inspection, application awareness, and intrusion prevention. It can identify specific applications, inspect encrypted traffic, and block sophisticated threats that older firewalls miss. It is the current standard for enterprise network security.
What is the difference between a firewall and a WAF?
A network firewall controls traffic entering and leaving your network. A Web Application Firewall (WAF) protects specific web applications from application-layer attacks like SQL injection and cross-site scripting. They protect different things and most organisations with public-facing web applications need both.
Can a firewall be hacked?
Yes. Firewall vulnerabilities are discovered and patched regularly. The most common ways firewalls are compromised: default credentials left unchanged, firmware not updated, overly permissive rules, or misconfigurations that leave management interfaces exposed to the internet. Keeping firmware updated and following configuration best practices addresses most of these risks.
What firewall do I need for my small business?
For most small businesses under 50 people, a Unified Threat Management (UTM) device from Fortinet, Sophos, or WatchGuard provides firewall, VPN, antivirus, and web filtering in one manageable device. If you have a public website, add a cloud WAF like Cloudflare. If your team is fully remote, consider a cloud firewall service instead of hardware.
Market size data from IDC Firewall Market Report 2025. Traffic encryption statistics from Google Transparency Report 2026. Compliance framework references from NIST, PCI Security Standards Council, and AICPA publications. PenPonder does not have commercial relationships with any firewall vendors mentioned in this article.

