# What is a firewall?

> A firewall is a gateway that limits access between networks under local security policy. NIST's SP 800-41 Rev. 1 describes several types.

*NIST's firewall guidance describes types including packet filters, stateful inspection, application firewalls, application-proxy gateways and host-based firewalls.*

- Type: Explainer
- Section: Tech
- By: Tech Desk
- Published: 2026-11-19T12:27:00-05:00
- Updated: 2026-11-19T12:27:00-05:00
- Checked: 2026-11-19T12:26:00-05:00
- URL: https://factsdesk.com/tech/what-is-a-firewall/

## Key facts

- A firewall is a gateway that limits access between networks in accordance with local security policy. Source: [NIST Computer Security Resource Center](https://csrc.nist.gov/glossary/term/firewall). Confirmed 2026-11-19T12:25:00-05:00. Cite: https://factsdesk.com/tech/what-is-a-firewall/#a-firewall-is-a-gateway-that-limits-access-between-networks
- NIST SP 800-41 Rev. 1 describes firewalls as devices or programs that control the flow of network traffic between networks or hosts that employ differing security postures. Source: [National Institute of Standards and Technology](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf). Confirmed 2026-11-19T12:26:00-05:00. Cite: https://factsdesk.com/tech/what-is-a-firewall/#nist-sp-800-41-rev-1-describes-firewalls-as-devices-or
- Stateless packet filters do not track the state of each flow of traffic, while stateful inspection keeps track of each connection in a state table. Source: [National Institute of Standards and Technology](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf). Confirmed 2026-11-19T12:26:00-05:00. Cite: https://factsdesk.com/tech/what-is-a-firewall/#stateless-packet-filters-do-not-track-the-state-of-each-flow
- Host-based and personal firewalls are software that resides on the host they protect and monitors and controls the network traffic for that single host. Source: [National Institute of Standards and Technology](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf). Confirmed 2026-11-19T12:26:00-05:00. Cite: https://factsdesk.com/tech/what-is-a-firewall/#host-based-and-personal-firewalls-are-software-that-resides
- Firewalls cannot read application data that is encrypted, such as email encrypted with the S/MIME or OpenPGP protocols. Source: [National Institute of Standards and Technology](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf). Confirmed 2026-11-19T12:26:00-05:00. Cite: https://factsdesk.com/tech/what-is-a-firewall/#firewalls-cannot-read-application-data-that-is-encrypted

A firewall is a gateway that limits access between networks in accordance with local security policy, according to the [NIST glossary](https://csrc.nist.gov/glossary/term/firewall). It sits at the junction between two networks, usually a private network and a public network such as the Internet, and it limits how far damage can spread from one part of a network to another.

## Firewall types that NIST describes

The [NIST guidance on firewalls, Special Publication 800-41 Revision 1](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf) describes each type below in its own section. The table covers five of them. The same publication also covers virtual private networking, network access control, unified threat management, web application firewalls and personal firewall appliances.

| Type | What it checks | Section of SP 800-41 Rev. 1 |
| --- | --- | --- |
| Packet filtering | Each packet against a ruleset, using its source and destination addresses, its protocol and its ports | 2.1.1 |
| Stateful inspection | Each packet against a state table that records each connection | 2.1.2 |
| Application firewalls | How an application's protocol is running, through stateful protocol analysis | 2.1.3 |
| Application-proxy gateways | A proxy agent that sits between two hosts and never allows a direct connection between them | 2.1.4 |
| Host-based and personal firewalls | The traffic to and from one host, in software on that host | 2.2.1 |

Packet filtering is the base layer. The publication says these devices "do not keep track of the state of each flow of traffic that passes though the firewall," so they cannot tie several requests in one session to each other. Stateful inspection adds that tracking. It checks each packet against the state of its connection and blocks packets that deviate from the expected state.

## What changed and when

The [NIST publication page for SP 800-41 Rev. 1](https://csrc.nist.gov/pubs/sp/800/41/r1/final) lists the revision as published in September 2009, as the replacement for the earlier SP 800-41 dated 01/01/2002, and as Final. The [executive summary of the publication](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf) describes the earlier pattern. It says that "At one time, most firewalls were deployed at network perimeters," which gave some protection to internal hosts, but the perimeter placement "could not recognize all instances and forms of attack."

## What a reader meets next: host and network firewalls

The network firewall at the edge of a network is one kind. The publication says network firewalls "are not able to recognize all instances and forms of attack," and that attacks sent from one internal host to another may not pass through a network firewall at all. Host-based firewalls for servers and personal firewalls for desktop and laptop computers "provide an additional layer of security against network-based attacks," in software on each host they protect.

## What a firewall cannot read

The publication states that "firewalls can only work effectively on traffic that they can inspect." Traffic that is encrypted is one case. Firewalls "also cannot read application data that is encrypted, such as email that is encrypted using the S/MIME or OpenPGP protocols, or files that are manually encrypted." For the basics of encryption, see [what encryption is](/tech/what-is-encryption/).

## Sources

1. [firewall, Glossary](https://csrc.nist.gov/glossary/term/firewall), NIST Computer Security Resource Center, 2026-11-19 (primary source)
2. [SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy](https://csrc.nist.gov/pubs/sp/800/41/r1/final), NIST Computer Security Resource Center, 2009-09 (primary source)
3. [Guidelines on Firewalls and Firewall Policy (NIST SP 800-41 Revision 1)](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-41r1.pdf), National Institute of Standards and Technology, 2009-09 (primary source)

## Asked next

- [What is zero trust?](https://factsdesk.com/tech/what-is-zero-trust/): Zero trust is a set of cybersecurity concepts for per-request access decisions on a network viewed as compromised. NIST SP 800-207 sets out its tenets.
- [What is a virtual private network?](https://factsdesk.com/tech/what-is-a-virtual-private-network/): A virtual private network is a restricted-use logical network built on a physical network by encryption or tunneling, according to NIST's glossary.
- [What is encryption?](https://factsdesk.com/tech/what-is-encryption/): Encryption transforms data into ciphertext that hides its meaning. AES encrypts 128-bit blocks, and NIST finalized post-quantum standards in 2024.
- [What is a denial of service attack?](https://factsdesk.com/tech/what-is-a-denial-of-service-attack/): NIST defines denial of service as preventing authorized access to resources or delaying time-critical operations.
- [What is a botnet?](https://factsdesk.com/tech/what-is-a-botnet/): NIST defines a botnet as infected machines a criminal can remotely manage. CISA and the FBI list the signs of infection and the steps to remove one.
- [CrowdStrike says a Windows content update caused its July 2024 outage](https://factsdesk.com/tech/what-caused-the-crowdstrike-outage/): CrowdStrike's root cause analysis says a content update for its Windows sensor, released July 19, 2024, caused the widespread outage.
