Firewall
A filter that allows or blocks network traffic by rule, the oldest perimeter defense, and less sufficient on its own than it used to be.
A firewall filters network traffic according to rules, allowing some packets and connections and blocking others. The name comes from building construction, where a firewall is a barrier that stops fire spreading between sections. Network firewalls appeared in the late 1980s as the internet grew from a research network into something that needed defending.
They come in several kinds, each looking deeper into traffic:
- Packet filters judge each packet by its header: source and destination address, protocol, and Port. They are fast and simple but blind to context.
- Stateful firewalls track connections, so a reply to a request the inside made is allowed back in while unsolicited inbound traffic is blocked. Nearly all firewalls today, including those in home routers and operating systems, are stateful.
- Application-layer firewalls understand protocols such as HTTP. A web application firewall (WAF) inspects requests for attack patterns such as SQL injection and Cross-Site Scripting, usually deployed at a Reverse Proxy or Content Delivery Network.
- Host firewalls run on each machine, such as Linux's netfilter, controlled by tools like iptables, nftables, and ufw, or the Windows Firewall.
Good rule sets start from default deny: block everything, then allow what is needed. It is the network form of Least Privilege and a Defensive Default. Each open port is something an attacker can reach, so minimizing exposure narrows the target. Default allow with a list of things to block always lags behind what attackers try.
Firewalls have well-known failure modes:
- Breaking things silently. Blocking ICMP wholesale breaks path discovery and causes black holes in Maximum Transmission Unit handling. Blocking a port a service needs causes timeouts rather than clear errors, a classic Silent Failure. Many "the network is broken" mysteries are firewall rules, from LAN discovery protocols such as Multicast DNS to peer-to-peer media.
- Rule rot. Rules accumulate over years, nobody remembers why each exists, and nobody dares remove them, a Chesterton's Fence problem at scale.
- The perimeter fallacy. A firewall at the edge protects only against traffic that crosses the edge. Once an attacker is inside, through phishing, a compromised laptop, or a cloud service, a flat internal network offers no resistance.
That last weakness drove the move to Zero Trust Network designs, which treat every connection as untrusted regardless of where it comes from. Firewalls remain valuable, but as one layer among several rather than the wall around a trusted interior. NAT Traversal exists largely because firewalls and NAT block the unsolicited inbound connections peer-to-peer applications need.
See also3
Secure Shell
The encrypted protocol for logging into and running commands on remote machines, authenticated by key pairs, that also tunnels other traffic and underpins Git.
Systems & Tooling18 connections
Network Address Translation
Rewriting the addresses in packets as they cross a router so that many devices can share one public IPv4 address, a stopgap that became permanent and broke the internet's end-to-end design.
Networks & Distribution17 connections
Server-Side Request Forgery
Tricking a server into making requests on an attacker's behalf, reaching internal services and cloud credential endpoints that the attacker could never reach directly, behind some of the largest cloud breaches.
Web Platform14 connections
Linked from14
- Agent SandboxAgents & Language Models
Confining an agent's commands to a limited environment, so that a mistaken or hijacked action can only damage what the sandbox allows it to reach.
- Denial-of-Service AttackNetworks & Distribution
Making a service unavailable by overwhelming it with traffic or expensive requests, usually from many machines at once, and the layered defenses that absorb or filter the flood.
- Long PollingNetworks & Distribution
The ways a client learns that something changed on a server, from asking repeatedly, to holding a request open until there's news, to the push channels that replaced both.
- LoopbackNetworks & Distribution
The network address a computer uses to talk to itself, where packets go out and come straight back without touching any hardware, the home of development servers and a recurring blind spot in security.
- MQTTNetworks & Distribution
A lightweight publish-subscribe protocol in which devices send small messages to topics on a central broker, the common language of sensors, smart homes, and industrial telemetry.
- Multicast DNSNetworks & Distribution
How devices on a local network find each other by name, and discover printers, speakers, and screens, without any server or configuration, by asking everyone at once.
- NAT TraversalNetworks & Distribution
NAT traversal is the set of tricks two devices behind separate routers use to open a direct connection anyway.
- Network Address TranslationNetworks & Distribution
Rewriting the addresses in packets as they cross a router so that many devices can share one public IPv4 address, a stopgap that became permanent and broke the internet's end-to-end design.
- Network PartitionNetworks & Distribution
A network failure that splits a cluster into groups that can't reach each other but keep running, and the split brain that follows when each side thinks it is in charge.
- PortSystems & Tooling
The numeric endpoint a network service listens on, and a scarce shared resource on a developer machine.
- Port ScanningNetworks & Distribution
Probing a machine's network ports to find which services are listening, the first step of both attacks and audits, now done to the entire internet in minutes, so anything exposed gets found.
- Secure ShellSystems & Tooling
The encrypted protocol for logging into and running commands on remote machines, authenticated by key pairs, that also tunnels other traffic and underpins Git.
- Server-Side Request ForgeryWeb Platform
Tricking a server into making requests on an attacker's behalf, reaching internal services and cloud credential endpoints that the attacker could never reach directly, behind some of the largest cloud breaches.
- SubnetNetworks & Distribution
A block of IP addresses that share a common prefix, written in CIDR notation such as 192.168.1.0/24, which decides what a device can reach directly and what it must send through a router.