Przejdลบ do treล›ci

๐Ÿงฑ Windows Firewall

Builtโ€‘in firewall for controlling inbound and outbound traffic.


๐Ÿ”ง Basic Commands

1
2
Get-NetFirewallProfile
Get-NetFirewallRule

๐Ÿงฉ Allowing Ports

1
2
New-NetFirewallRule -DisplayName "HTTP" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow
New-NetFirewallRule -DisplayName "HTTPS" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow

๐Ÿšจ Tips

  • Block by default, allow only what is needed
  • Separate rules for inbound and outbound