Search pages, tools, PowerShell commands and ports
Design rules once, export to Windows Firewall, nftables and UFW.
Ports: 443, 80,443 or 5000-5100. Remote: blank for any, or IPs/CIDRs separated by commas.
1# Windows Defender Firewall — run as Administrator2 3New-NetFirewallRule -DisplayName 'RDP from IT subnet' `4 -Direction Inbound `5 -Action Allow `6 -Protocol TCP `7 -LocalPort '3389' `8 -RemoteAddress '10.10.20.0/24' `9 -Profile Domain, Private10 11New-NetFirewallRule -DisplayName 'HTTPS' `12 -Direction Inbound `13 -Action Allow `14 -Protocol TCP `15 -LocalPort '443' `16 -Profile Domain, Private17 18New-NetFirewallRule -DisplayName 'Block SMB from guests' `19 -Direction Inbound `20 -Action Block `21 -Protocol TCP `22 -LocalPort '445' `23 -RemoteAddress '10.10.30.0/24' `24 -Profile Domain, PrivateReview before applying. The nftables output replaces the inbound policy with drop — make sure your own SSH access is allowed first.