Use this when restricting outbound traffic.
Outbound Rules
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.
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.
outbound packet → rules → default action
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
- Blocking outbound DNS/Windows Update by default rules.
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.
- Outbound is allowed by default.
- Block rules restrict programs or ports.
- A default-block policy needs many allow rules.
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
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.
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 → 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%