Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Windows Firewall

Direct answer

Windows Defender Firewall is the built-in host firewall. It filters inbound and outbound traffic with rules per profile (Domain, Private, Public) and is managed via wf.msc, netsh advfirewall, PowerShell or GPO.

When to use this

Use this when traffic to or from a Windows machine is blocked or must be controlled.

First 30 seconds

1. Get-NetFirewallProfile — enabled, default inbound Block?

2. Active profile: Get-NetConnectionProfile.

3. Rule for the service in that profile?

4. Logging for drops.

5. Test from another host.

Operational verification

active profile → rules → default action → packet allowed/blocked

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 · Windows PowerShell · Windows / Windows Server / PowerShell
Key commandGet-NetFirewallRule
Scope / prerequisiteUse this when traffic to or from a Windows machine is blocked or must be controlled.
Configure · 1Verify · 2Reference · 2
What next?3 suggested next steps
Child topics (this level)7
Catalog command links5
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

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
  • Allow rule created for the wrong profile.
  • Local rules ignored because GPO turns off local rule merging.
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • The default inbound action is block; outbound is allow.
  • The active profile (Domain, Private, Public) decides which rules apply.
  • GPO firewall rules merge with or override local rules.
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

How it works

Windows Defender Firewall is a stateful host firewall built on the Windows Filtering Platform. It applies one profile per network (Domain, Private, Public). By default inbound traffic is blocked unless a rule allows it, and outbound traffic is allowed. Replies to allowed outbound connections are permitted automatically. Rules can match program, service, port, protocol, address and profile; GPO rules merge with local rules unless local merging is disabled.

ReferenceImportant terms & boundaries1 section · depth on demand
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. 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%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Confirmation

Confirm action

Continue?