What is Firewall?

A device or program that decides which network traffic is allowed through, using rules about addresses, ports and protocols. Firewalls enforce the boundary between networks with different levels of trust, and their logs show what was blocked.

A firewall applies an ordered rule set to traffic: allow this source to reach that port, deny everything else. Modern firewalls track connection state, so a reply is allowed back in without a separate rule, and "next-generation" firewalls also identify applications and users rather than just ports. They exist at the network edge, between internal segments, and on each host. Good practice is default deny: block everything and allow only what a business need justifies. The common failures are rule sprawl (years of "temporary" exceptions nobody removes), overly broad "any" rules, and assuming the perimeter is enough when most attacks now arrive through allowed paths such as email and the web.

Source: NIST CSRC Glossary (NIST SP 800-41 Rev. 1).

Practice it in a lab

Free, hands-on labs that teach Firewall. 38 more labs also cover it.

Related terms

All glossary terms

Related