Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Microsoft Defender Firewall

Direct answer

Microsoft Defender Firewall is the Windows host firewall for domain, private and public profiles, using application/service, address, port, interface and IPsec-aware rules with local and centrally managed policy precedence.

When to use this

Use it when configuring, checking or troubleshooting Microsoft Defender Firewall in Windows Security.

First 30 seconds

1. Windows Firewall: Domain, Private, Public profiles.

2. Default block inbound.

3. Manage with GPO/Intune.

4. Log dropped packets.

5. Remove broad allow rules.

Operational verification

packet → profile rules → allow/block

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

A Windows Firewall decision shows local enforcement for one flow/profile, but it does not show upstream delivery, process trust or application authorization.

Suspicious evidence: wrong profile, local rule merge, stale GPO/MDM, outbound default misunderstood, service path changed, IPv6 gap or logging disabled.

Platform / version applicability
Platform and workload security
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.

PlatformPlatform and workload security
Key commandGet-NetConnectionProfile
Scope / prerequisiteUse it when configuring, checking or troubleshooting Microsoft Defender Firewall in Windows Security.
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 Verification path Verify boundary

network category/profile → policy stores/precedence → effective inbound/outbound rule → state/action → socket/application outcome → event and remote evidence

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
  • Firewall service running ≠ intended profile and rules enforced.
  • Network firewall permit ≠ Windows host firewall permit.
  • Configured or assigned policy ≠ resultant policy and effective runtime state.
  • Feature healthy ≠ protected workload or absence of compromise.
Key checks
  • Get-NetFirewallProfile | ft Name,Enabled,DefaultInboundAction,LogAllowed,LogBlocked — profiles
  • Get-NetFirewallRule -Enabled True -Direction Inbound | ft DisplayName,Profile,Action — inbound rules
  • Get-NetConnectionProfile — network category
ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

A Windows Firewall decision shows local enforcement for one flow/profile, but it does not show upstream delivery, process trust or application authorization.

In depth

Microsoft Defender Firewall is the host firewall in Windows, with separate profiles for domain, private and public networks. It is a key control against lateral movement when configured with default-deny inbound rules.

Get-NetFirewallProfile | Select-Object Name, Enabled, DefaultInboundAction, LogFileName
New-NetFirewallRule -DisplayName 'RDP from admin hosts' -Direction Inbound -Protocol TCP -LocalPort 3389 `
  -RemoteAddress 10.0.10.0/24 -Action Allow -Profile Domain
Set-NetFirewallProfile -All -LogBlocked True -LogMaxSizeKilobytes 16384

Manage rules centrally (GPO, Intune), disable local rule merging on managed devices so local admins and malware cannot add exceptions, and block SMB/RDP/WinRM between workstations.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Commands

Get-NetFirewallProfile | Select Name,Enabled,DefaultInboundAction,DefaultOutboundAction
Get-NetFirewallRule -Enabled True -Direction Inbound | Select DisplayName,Profile,Action
Get-NetConnectionProfile          # which profile (Domain/Private/Public) each network uses

A domain network wrongly detected as Public applies stricter rules (check NLA and DC reachability). Enable logging of dropped packets for troubleshooting (%systemroot%\system32\LogFiles\Firewall\pfirewall.log).

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 docPlatform and workload security current

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

Basis: https://learn.microsoft.com/en-us/windows/security/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Windows FirewallDefender FirewallWindows host firewall
Embedded reference data

Quick lookup tables

Windows Security → Microsoft Defender Firewall proof map

Fast scope, effective-state, runtime-evidence and closure boundaries for Windows Security → Microsoft Defender Firewall.

BoundaryEstablishDoes not establish
ScopeExact host, role, build/kernel, identity, workload and expected controlDoes not prove policy receipt or effective runtime state
Effective stateResultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controlsConfiguration presence does not prove enforcement
Runtime evidenceCorrelated events/audit, process/token/credential, packet/syscall and workload resultOne event, clean status or allow/deny does not prove complete security
ClosureOriginal allowed/denied workload works, unsafe state is removed and recovery/regression passCommit, restart, block or compliance result alone is not closure
Confirmation

Confirm action

Continue?