ICMPPingFirewall4 min de lectura

Habilitar ping (ICMP) en Windows Firewall

Habilitá respuestas ICMP en Windows Firewall para permitir ping y diagnóstico de red.


Por defecto, Windows Server bloquea las solicitudes de ping (ICMP Echo Request). Habilitarlo es útil para diagnóstico de red y monitoreo.

Método 1 — PowerShell (recomendado)

Habilitar ping para IPv4:

powershell
New-NetFirewallRule -DisplayName "Permitir ICMPv4 Ping" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -Action Allow

Habilitar ping para IPv6:

powershell
New-NetFirewallRule -DisplayName "Permitir ICMPv6 Ping" -Direction Inbound -Protocol ICMPv6 -IcmpType 128 -Action Allow

Método 2 — Habilitar regla existente

Windows Server ya tiene reglas predefinidas deshabilitadas:

powershell
# Ver reglas ICMP existentes
Get-NetFirewallRule -DisplayName "*ICMPv4*"

# Habilitar las reglas de echo request
Enable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)"
Enable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv6-In)"

Método 3 — Desde la interfaz gráfica

  1. Abrí wf.msc (Windows Firewall con Seguridad Avanzada)
  2. Hacé clic en «Reglas de entrada»
  3. Buscá «File and Printer Sharing (Echo Request - ICMPv4-In)»
  4. Clic derecho → «Habilitar regla»
  5. Repetí para ICMPv6 si es necesario

Verificar que funciona

Desde otra máquina:

bash
ping TU_IP_DEL_VPS

Deberías recibir respuestas.

Limitar ping a IPs específicas

Si querés permitir ping solo desde ciertas IPs:

powershell
New-NetFirewallRule -DisplayName "Ping desde monitoreo" -Direction Inbound -Protocol ICMPv4 -IcmpType 8 -RemoteAddress 203.0.113.0/24 -Action Allow

Deshabilitar ping nuevamente

powershell
Disable-NetFirewallRule -DisplayName "Permitir ICMPv4 Ping"

O eliminar la regla:

powershell
Remove-NetFirewallRule -DisplayName "Permitir ICMPv4 Ping"

Nota de seguridad

Habilitar ping facilita el diagnóstico pero también permite que escáneres de red detecten tu servidor. En producción, considerá habilitarlo solo desde IPs de confianza (tu oficina, sistemas de monitoreo).


¿Te resultó útil esta guía?