Blog | G5 Cyber Security

Block Nmap Scans on Windows

TL;DR

Nmap is a powerful network scanning tool often used by attackers to find vulnerabilities. This guide shows you how to block common Nmap scan types on your Windows machine using the Windows Firewall with Advanced Security.

Blocking Nmap Scans: A Step-by-Step Guide

  1. Open Windows Firewall with Advanced Security
  • Create a New Inbound Rule
  • Rule Type: Port
  • Specify Protocol and Ports
  • Action: Block the Connection
  • Profile: Domain, Private, Public
  • Name and Description
  • Repeat for UDP ports (Important!)
  • Block ICMP (Ping) Scans
  • Advanced Blocking: Custom Rules for Specific Nmap Techniques
  • Nmap uses various techniques beyond simple port scans. While blocking all ports and ICMP covers many common attacks, more sophisticated scans might still get through.

  • Verify Your Rules
  • Exit mobile version