Pcornel
Security · Endpoint Security

Host Firewall

Cheat sheet · https://pcornel.dk/topic.php?topic=4536

Back to the Topic

Answer

A host firewall filters network traffic on the device itself (Windows Defender Firewall, nftables/firewalld on Linux), using rules based on ports, addresses, programs and network profile. It protects the device even on untrusted networks and complements network firewalls.

Remember

  • Host firewall enabled ≠ correct profile and rules active.
  • Network firewall permit ≠ host firewall permit.
  • Local port listening ≠ remotely reachable.
  • Firewall allow ≠ application authorization.

First checks

  • Get-NetFirewallProfile | ft Name,Enabled,DefaultInboundAction — Windows firewall
  • nft list ruleset — Linux
  • ufw status verbose — Ubuntu

Verify in this order

packet → host firewall rules → allow/drop

Where it usually breaks

First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.

Endpoint Security → Host Firewall proof map

BoundaryEstablishDoes not establish
Scope and intentExact endpoint identity, owner, role, platform, data, exposure and expected controlDoes not prove policy receipt, effective state or runtime health
Effective controlPolicy source/precedence, engine/sensor version, mode, exclusions, keys and local stateConfigured or licensed capability does not prove enforcement
Runtime evidenceCorrelated local events, backend telemetry, process/file/network context and safe testsOne alert, clean scan or healthy agent does not prove endpoint trust
ClosureOriginal protection/workload test passes; persistence, credentials, recovery and adjacent controls are verifiedBlock, isolation, deletion or ticket closure alone is not recovery

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4536

Confirmation

Confirm action

Continue?