Pcornel
Windows · Windows Firewall

Windows Filtering Platform

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

Back to the Topic

Answer

The Windows Filtering Platform (WFP) is the kernel framework under Windows Firewall, IPsec and third-party security products. Inspect it with netsh wfp show filters and audit events 5152 and 5157.

Remember

  • WFP is the kernel layer under the firewall.
  • netsh wfp show filters lists filters.
  • Audit events 5152 and 5157 show drops.

First checks

  • Get-NetFirewallProfile — profiles, enabled, default actions, logging
  • Get-NetFirewallRule -Enabled True -Direction Inbound — enabled inbound rules
  • Get-NetFirewallRule -DisplayName '<name>' | Get-NetFirewallPortFilter — ports of a rule
  • netsh advfirewall monitor show firewall — effective state

Verify in this order

packet → WFP layers → filters from firewall and third parties → permit/block

Where it usually breaks

First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.

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

Confirmation

Confirm action

Continue?