Use it when an endpoint blocks or allows traffic regardless of the network policy.
Host Firewall (CCNA)
A host firewall filters traffic on the endpoint itself (Windows Defender Firewall, nftables), protecting it even from other hosts in the same VLAN.
1. A host firewall filters traffic on the endpoint.
2. Default deny inbound.
3. Centrally managed (GPO/MDM).
4. Logs for investigation.
5. Complements network controls.
traffic → host firewall rules → allow/deny
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-NetFirewallProfile | Select Name,Enabled,DefaultInboundActionVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Host firewall disabled to fix an application instead of adding a rule.
- Different rules on the same server role because they were set by hand.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- NGFW policy can combine identity, application, URL/content, state and threat intelligence
- IPS inspects exploit/signature/behavior evidence and may detect or prevent
- Endpoint posture, anti-malware, host firewall and EDR cover activity beyond the network boundary
- Encrypted traffic, bypass rules and telemetry gaps create blind spots.
Get-NetFirewallProfile— Windows firewallufw status / nft list ruleset— Linux firewall
ReferenceWhat it is1 section · depth on demand
What it is
Layered threat defense combines segmentation and access control with stateful/application inspection, IPS, malware protection and endpoint posture/EDR/host controls.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Host firewalls
A host-based firewall runs on the protected computer and controls its own inbound and outbound traffic. NIST SP 800-41 Rev. 1 recommends configuring host firewalls to allow only necessary traffic, which protects against attacks from other hosts on the same subnet that network firewalls may not see, and notes that limiting outbound traffic helps stop malware spreading.
Recommendations (SP 800-41 Rev. 1)
| Recommendation | Reason |
|---|---|
| Allow only necessary traffic | Smallest exposure per host |
| Restrict outbound traffic | Limits malware spread |
| Enable logging | Evidence and troubleshooting |
| Central management | Consistent policy across many hosts |
| Location-based profiles | Stricter rules on untrusted networks |
| Keep UPnP disabled | Prevents applications from changing firewall policy |
Examples
PS> Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, DefaultOutboundAction
Name Enabled DefaultInboundAction DefaultOutboundAction
---- ------- -------------------- ---------------------
Domain True Block Allow
Private True Block Allow
Public True Block Allow
PS> New-NetFirewallRule -DisplayName "Block SMB from users" -Direction Inbound -Protocol TCP -LocalPort 445 -RemoteAddress 10.110.0.0/16 -Action Block
host$ sudo nft list ruleset | head -8
table inet filter {
chain input {
type filter hook input priority filter; policy drop;
ct state established,related accept
iifname "lo" accept
tcp dport 22 ip saddr 10.99.0.0/24 accept
}
}
Host firewalls and network firewalls together
| Network firewall | Host firewall |
|---|---|
| Between zones | Within a zone, even within a subnet |
| Central policy point | Policy travels with laptops |
| Sees traffic crossing it | Sees every connection to the host |
Common uses
Block workstation-to-workstation SMB and RDP (lateral movement), restrict server management ports to admin networks, and keep strict profiles for laptops on public Wi-Fi.
Documented example, not captured output.
Quick reference
Host firewalls (Windows Defender Firewall, nftables/firewalld, macOS Application Firewall) filter traffic at the endpoint, protecting against lateral movement even inside a trusted VLAN.
Baseline: default deny inbound, allow only required services from defined sources, block SMB/RDP between workstations, log drops centrally. Manage rules through GPO/Intune/config management so they are consistent and auditable.
ReferenceConfiguration & state1 section · depth on demand
Configuration examples
# Windows
Get-NetFirewallProfile | Select Name,Enabled,DefaultInboundAction
New-NetFirewallRule -DisplayName "Allow RDP from admin net" -Direction Inbound -Protocol TCP -LocalPort 3389 -RemoteAddress 10.99.0.0/24 -Action Allow
# Linux (nftables)
nft add rule inet filter input ip saddr 10.99.0.0/24 tcp dport 22 accept
Documented example, not captured output. Default deny inbound, manage rules centrally (GPO/Intune), and block workstation-to-workstation traffic to stop lateral movement.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Security → Endpoint Security → Host Firewall. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%