Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Outbound Rules

Direct answer

Outbound rules control traffic leaving the computer. The default allows all outbound traffic, but blocking rules or a default-block policy can restrict which programs may connect out.

When to use this

Use this when restricting outbound traffic.

First 30 seconds

1. Default outbound action (usually Allow).

2. Restricted environments: outbound block with allow rules.

3. Rule for the app/port?

4. Logging for drops.

5. Test outbound connection.

Operational verification

outbound packet → rules → default action

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 restricting outbound traffic.
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
  • Outbound is allowed by default.
  • Block rules restrict programs or ports.
  • A default-block policy needs many allow 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

Using outbound rules

Outbound default is Allow. To restrict, set DefaultOutboundAction Block per profile and allow what is needed — this is a lot of work on clients but useful on servers (block internet access from domain controllers except updates). Example: New-NetFirewallRule -DisplayName "Block PS internet" -Direction Outbound -Program "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -RemoteAddress Internet -Action Block.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Outbound rules: default outbound action is allow on most systems. Outbound filtering is useful on high-value servers (block internet except updates/proxy) and to stop specific tools from reaching the network.

New-NetFirewallRule -DisplayName 'Block certutil outbound' -Direction Outbound -Program '%SystemRoot%\System32\certutil.exe' -Action Block
Set-NetFirewallProfile -Profile Domain -DefaultOutboundAction Block   # only with a complete allow list!

Default-deny outbound requires allowing DNS, Kerberos, LDAP, SMB to DCs, updates, time, monitoring and backup — plan and test first.

Example

Set-NetFirewallProfile -Profile Domain,Private,Public -DefaultOutboundAction Block
New-NetFirewallRule -DisplayName "Allow DNS" -Direction Outbound -Protocol UDP -RemotePort 53 -RemoteAddress 10.0.0.53 -Action Allow
New-NetFirewallRule -DisplayName "Allow HTTPS" -Direction Outbound -Protocol TCP -RemotePort 443 -Action Allow

Documented example, not captured output. Default-block outbound needs a full list of required flows — test on a pilot group first.

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 → Outbound Rules. 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?