firewall
Software or a device that allows or blocks network traffic according to rules about direction, interface, protocol, port and source.
In more detail
On Linux the kernel's netfilter framework does the filtering, configured with nftables (or the older iptables) or front-ends such as ufw and firewalld. A good rule states the interface, direction, protocol, port and source it applies to. When a connection fails, inspect the exact rule path rather than treating the firewall as one global switch.
Examples
On Linux, nftables is the kernel packet filter; a quarantine ruleset sets the default policy to drop and allows only the incident response workstation and the EDR relay.In AWS: A control that inspects network traffic and allows or blocks it according to rules.Allow TCP port 22 to the bastion only from the management subnetin=tcp p=443 src=any act=allow def=deny is a narrow inbound rule followed by a default deny policy.Related terms
- host isolation — Cutting a compromised machine off from the network, except for the responders' tools, so the attacker cannot use it or spread from it.
- security group — A stateful firewall attached to a resource’s network interface, made only of allow rules for ports, protocols and sources.
- network ACL — A stateless list of numbered allow and deny rules applied to all traffic entering or leaving a subnet.
- stateful firewall — A firewall that remembers connections it has allowed, so reply packets for an established connection are let back in without a broad inbound rule.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- segmentation — Dividing a network into separate zones with controlled paths between them, so a problem or attacker in one zone cannot freely reach the others.
- defense in depth — Using several independent protections, so that if one fails another still limits the damage.
- default deny — A starting policy that blocks all traffic, so only connections you then explicitly allow are possible.
- rule order — The sequence in which firewall rules are checked; in first-match systems the first rule that matches a packet decides its fate.
- reject and drop — The two ways a firewall can refuse traffic: reject sends back an error so the client fails fast; drop silently discards it so the client times out.
- traffic direction — Whether traffic is arriving at a host (inbound) or leaving it (outbound), which firewall rules must state explicitly.
Taught in
- The Host Footprint: Six Doors On A Worker — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Network Exposure: NodePorts, Host Firewalls And Egress — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Virtual Private Clouds — Cloud Infrastructure & Hyperscaler Architecture
- Network Address Translation — Cloud Infrastructure & Hyperscaler Architecture
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- Disaster Recovery Sites: Hot, Warm & Cold — Cybersecurity Fundamentals, GRC & Cryptography
- Security Architecture Gap Analysis — Cybersecurity Fundamentals, GRC & Cryptography
- Seven Findings, Two Owners: The 4Cs And Shared Responsibility — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Pinned For Stability: Images, Registries And Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Port 30080 On Every Node: kube-proxy, Networking And Clients — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Draw The Boundaries: Trust And Data Flow — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- The Report That Ate The Node: Denial Of Service And Malicious Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Ports, Sockets And What Listening Means — Linux Fundamentals & Systems Administration
- Refused, Timed Out, Reset: Reading A Failure — Linux Fundamentals & Systems Administration
- Firewalls: Default Deny, State And Rule Order — Linux Fundamentals & Systems Administration
- The Diagnostic Ladder: Is It Up, Is It Named, Is It Routed — Linux Fundamentals & Systems Administration
- The Diagnostic Ladder: Is It Listening, Answering, Arriving — Linux Fundamentals & Systems Administration
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)
- Event Correlation Rules, Thresholds & Anomaly Pipelines — Security Operations & Threat Hunting (SOC)
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)
- NIST SP 800-61 Incident Lifecycle & Management — Security Operations & Threat Hunting (SOC)
- Containment & Eradication: Host, Net & Identity — Security Operations & Threat Hunting (SOC)
- Infrastructure As Code, And One Workflow For Every Platform — HashiCorp Terraform Associate (004) Exam Prep
- The Pager Goes Off At 2 A.M.: A Three-Question Triage — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Two Kinds Of Question: How Linux+ Is Scored — CompTIA Linux+ (XK0-006) Exam Prep
- Twelve Old Servers, Two New Hosts: KVM, QEMU, libvirt And Disk Images — CompTIA Linux+ (XK0-006) Exam Prep
- Clocks, Names, Addresses And Pages: The Services Every Depot Runs — CompTIA Linux+ (XK0-006) Exam Prep
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep
- One Rule, Four Firewalls: firewalld, ufw, nftables And iptables — CompTIA Linux+ (XK0-006) Exam Prep
- The Pager Command That Opened A Root Shell: sudo, su And Least Privilege — CompTIA Linux+ (XK0-006) Exam Prep
- Root Over SSH From Anywhere: Keys, sshd, setuid Files And Attributes — CompTIA Linux+ (XK0-006) Exam Prep
- A New Depot By Friday: OpenTofu, Cloud-init, Pipelines And Kubernetes — CompTIA Linux+ (XK0-006) Exam Prep
- The Assistant Was Confident: Reviewing AI-Generated Code, Prompts And Data — CompTIA Linux+ (XK0-006) Exam Prep
- The Tracker Is Down, For Some People: Link, Address, Route, Name And Port — CompTIA Linux+ (XK0-006) Exam Prep
- Patched On Paper: Missing Updates, Broken Chains, Old Protocols And Open Doors — CompTIA Linux+ (XK0-006) Exam Prep
- Three PBQs Against The Clock: A Performance-Based Mock On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep