Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Windows Filtering Platform

Direct 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.

When to use this

Use this when deep-diving into Windows packet filtering.

First 30 seconds

1. Drops not explained by firewall rules → WFP filters.

2. netsh wfp show filters / netsh wfp capture start.

3. Audit: auditpol /set /subcategory:"Filtering Platform Packet Drop" /failure:enable → Event 5152.

4. Third-party callouts (AV/VPN).

5. Disable audit after use.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse this when deep-diving into Windows packet filtering.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
Evidence references

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.

observation · 1
Key points
  • WFP is the kernel layer under the firewall.
  • netsh wfp show filters lists filters.
  • Audit events 5152 and 5157 show drops.
Key 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
ReferenceWhy it matters1 section · depth on demand

Internals and state

The Windows data path crosses application Winsock, namespace/name resolution, TCP/IP route/source selection, Windows Filtering Platform policy, NDIS miniport/virtual switch layers and the physical/virtual NIC.

ReferenceHow it works2 sections · depth on demand

In depth

The Windows Filtering Platform (WFP) is the kernel framework under Windows Firewall, IPsec and third-party security products (EDR, VPN clients). Filters live at layers (ALE connect/receive, transport, IP) with weights and arbitration.

netsh wfp show state file=C:\Temp\wfpstate.xml
netsh wfp show filters file=C:\Temp\filters.xml
auditpol /set /subcategory:"Filtering Platform Connection" /failure:enable

With auditing enabled, blocked connections log Security events 5152 (packet dropped) and 5157 (connection blocked) including the filter ID — map it to the rule in filters.xml.

State

The Windows data path crosses application Winsock, namespace/name resolution, TCP/IP route/source selection, Windows Filtering Platform policy, NDIS miniport/virtual switch layers and the physical/virtual NIC.

ReferenceImportant terms & boundaries1 section · depth on demand

Checks

netsh wfp show state
netsh wfp show filters
auditpol /set /subcategory:"Filtering Platform Connection" /failure:enable

Event 5157 (blocked) and 5152 (packet dropped) show which filter blocked traffic — useful when third-party software adds WFP filters.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in Windows Firewall → Windows Filtering Platform. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/ · confidence 94%
Confirmation

Confirm action

Continue?