Firewall
Also known as: Network firewall, Packet filter
Security control that monitors network traffic and allows or blocks connections according to a set of rules, separating trusted and untrusted networks.
A firewall is a hardware device, software program or cloud service that sits between networks, or between a device and a network, and decides which traffic may pass. Rules typically consider source and destination addresses, ports, protocols and the state of a connection. The name borrows from building construction, where a firewall stops fire spreading between sections. Network firewalls protect whole sites, while host-based firewalls built into operating systems such as Windows, macOS and Linux protect individual machines.
Early packet filters of the late 1980s inspected each packet in isolation. Stateful firewalls, which appeared in the first half of the 1990s, track connections so that replies to legitimate outgoing requests are allowed automatically. Application-layer proxies and later next-generation firewalls added awareness of specific applications, user identities and intrusion prevention signatures, and web application firewalls specialize in filtering HTTP traffic to websites. Open-source options such as OPNsense and the PF packet filter in OpenBSD are widely used alongside commercial appliances.
Firewalls enforce a basic principle of network segmentation: deny by default and allow only what is needed. They remain a standard control, but a perimeter firewall alone is no longer considered sufficient, because encrypted traffic, cloud services, remote work and compromised internal devices let threats bypass a single boundary. This shift underlies zero trust architecture and defense in depth. Home routers include a basic firewall and network address translation, and keeping their firmware updated and remote administration disabled is a practical step for households and small offices.
Key points
- Firewalls filter traffic using rules based on addresses, ports, protocols and connection state.
- Types range from simple packet filters to stateful and application-aware next-generation firewalls.
- A deny-by-default policy that permits only required traffic is the core firewall principle.
- Perimeter firewalls alone cannot address cloud, remote work and insider threats, which motivates zero trust designs.
Related entries
Network Segmentation
Practice of dividing a computer network into smaller isolated zones with controlled connections, limiting how far an attacker or fault can spread.
Intrusion Detection System
Security system that monitors network traffic or host activity for signs of malicious behavior or policy violations and raises alerts for investigation.
Zero Trust
Security model that treats no user, device or network location as trusted by default and verifies every access request continuously.
Defense in Depth
Security strategy that layers multiple independent safeguards so that if one control fails, others still protect systems and data.
OPNsense
Open-source firewall and routing platform based on FreeBSD, forked from pfSense in 2015 and managed through a web interface.
Router
Networking device that forwards data packets between computer networks, choosing paths based on destination addresses and routing tables.
Proxy Server
Intermediary server that forwards requests between clients and other servers, used for caching, filtering, load balancing, privacy and access control.
Virtual Private Network
Technology that creates an encrypted tunnel between a device and another network, protecting traffic on untrusted links and connecting remote users securely.
Referenced by
Other entries that discuss or point to Firewall.