Use this when deep-diving into Windows packet filtering.
Windows Filtering Platform
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.
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.
packet → WFP layers → filters from firewall and third parties → permit/block
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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
- Third-party filters overriding Windows Firewall without visibility.
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.
- WFP is the kernel layer under the firewall.
- netsh wfp show filters lists filters.
- Audit events 5152 and 5157 show drops.
Get-NetFirewallProfile— profiles, enabled, default actions, loggingGet-NetFirewallRule -Enabled True -Direction Inbound— enabled inbound rulesGet-NetFirewallRule -DisplayName '<name>' | Get-NetFirewallPortFilter— ports of a rulenetsh 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.
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 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%