Firewall Profiles
Cheat sheet · https://pcornel.dk/topic.php?topic=3100
Answer
Windows Firewall has three profiles — Domain, Private and Public — chosen by Network Location Awareness for each network. Each has its own default actions and rules; Public should be strictest.
Remember
- Network Location Awareness picks the profile.
- Public should be the strictest.
- Domain profile needs a reachable DC.
First checks
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
Commands
Get-NetFirewallProfile- Firewall profile enablement/default policy.
Verify in this order
network category → firewall profile → its rules
Where it usually breaks
First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3100