If you keep asking yourself what is a firewall, here is the short answer: a device or program that controls network traffic between networks or hosts, deciding what may pass. Think of it as a gatekeeper for your connection.
This guide is part of our tech basics series.
| Item | Value |
|---|---|
| Firewall, as NIST defines it | A device or program that controls the flow of network traffic between networks or hosts with differing security postures |
| NIST firewall guide | SP 800-41 Rev. 1, final in September 2009 |
| Typical placement | At the junction between a private network and a public network such as the Internet |
| Kinds named in NIST’s keywords | Network firewalls, host-based firewalls and personal firewalls |
These facts come from NIST’s SP 800-41 Rev. 1 page and its firewall glossary entry. Figures can change, so check the source before you rely on them.
What a firewall actually does
A firewall is a checkpoint for network traffic. NIST describes it as a device or program that controls traffic between networks or hosts whose security settings differ, as its firewall guidelines explain.
A second NIST definition, listed in the glossary, is more specific. It calls a firewall a part of a computer system or network designed to block unauthorized access while still permitting outward communication.
In everyday terms, that gives a firewall a few jobs:
- Stop unauthorized access from the outside.
- Let your own outward traffic leave.
- Limit access between networks according to a local security policy.
Where does a firewall sit, and why is it called that?
The NIST glossary says a firewall sits at the gateway between two networks. Usually one is private, such as your home or office network, and the other is public, such as the Internet.
The name is borrowed from physical barriers. By splitting a network into separate subnetworks, firewalls limit damage that could spread from one part to another, much like fire doors or the firewalls in cars.

Network, host-based and personal firewalls
Firewalls come in more than one form. NIST’s guide gives an overview of several firewall technologies and weighs their strengths and weaknesses, and its keyword list names network firewalls, host-based firewalls and personal firewalls.
The same list mentions packet filtering and proxies, two techniques the guide covers. You do not need the technical detail to benefit from the idea: some firewalls guard a whole network, and others guard a single machine.
NIST’s October 2009 bulletin says firewalls can help home users protect their computers from hostile attacks, break-ins, viruses and malicious software. It adds that they can also protect mobile devices placed directly onto external networks.
What a firewall cannot catch on its own
A firewall is a layer, not a complete shield. The same NIST bulletin notes that early firewalls were installed at the edge of a network to stop outside intruders.
Those early designs had clear limits:
- They could not recognize every instance or form of attack.
- Attacks passing from one internal host to another often never crossed the network firewall.
- Viruses and malicious code went undetected.
As of that October 2009 bulletin, networks could be designed to protect the edge and other locations too, and to spot both external and internal attacks. Firewalls could also restrict connectivity to internal networks that handle personal information, such as accounting and personnel systems.
Using a firewall well
Switching a firewall on is only the start. NIST’s guidelines, final in September 2009, also recommend setting up firewall policies and managing the solution over time.
The guide’s advice covers these stages:
- Selecting a firewall solution.
- Configuring it to match your policy.
- Testing it before you trust it.
- Deploying it.
- Managing it as your needs change.
Firewalls are one piece of a larger set of tech vocabulary. If you want more background, read about what is open source software to understand how code is shared. You can also see what is saas for how software is delivered as a service.
This site is independent and has no vendor affiliation, so nothing here pushes a particular product. Any affiliate link is disclosed on the page and never affects a verdict.
Frequently asked questions
Is a firewall hardware or software?
Show answer
It can be either. NIST’s wording covers both, calling firewalls devices or programs, so a physical box and an installed application can do the same job.
Does a firewall protect me from viruses?
Show answer
Not by itself. NIST’s bulletin describes firewalls as an extra layer of security that prevents unauthorized access to systems and information, so pair one with other protection.
Do home users need a firewall?
Show answer
NIST says firewalls are not just for companies. Its bulletin lists home users among the people who can use them to guard their computers.
Why does a firewall need a policy?
Show answer
A policy tells the firewall which traffic to allow and which to refuse. Without one, a firewall has no rules to enforce, which is why NIST’s guide recommends establishing firewall policies.



