Inbound Rules
Cheat sheet · https://pcornel.dk/topic.php?topic=3101
Answer
Inbound rules allow or block traffic coming into the computer by program, port, protocol, address, profile and interface. The default inbound action blocks anything not explicitly allowed.
Remember
- Inbound traffic is blocked by default.
- Limit rules by remote address scope.
- Apply rules to the right profile.
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
Verify in this order
inbound packet → matching allow rule (or block) → service
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=3101