Encontranos en redes
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 AllowHabilitar ping para IPv6:
powershell
New-NetFirewallRule -DisplayName "Permitir ICMPv6 Ping" -Direction Inbound -Protocol ICMPv6 -IcmpType 128 -Action AllowMé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
- Abrí
wf.msc(Windows Firewall con Seguridad Avanzada) - Hacé clic en «Reglas de entrada»
- Buscá «File and Printer Sharing (Echo Request - ICMPv4-In)»
- Clic derecho → «Habilitar regla»
- Repetí para ICMPv6 si es necesario
Verificar que funciona
Desde otra máquina:
bash
ping TU_IP_DEL_VPSDeberí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 AllowDeshabilitar 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?