From 31dae55b1fe78004778d5405d624098dfd38302a Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Thu, 22 Oct 2026 21:30:42 -0400 Subject: [PATCH] Allow ICMP echo on lab guests Windows drops echo by default, and 'ping the DC' is the first check anyone runs; prerequis.md tells participants to do exactly that. Adds a scoped ICMPv4-in rule in bootstrap.ps1 (lab only, all profiles). --- content/seed/payload/bootstrap.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/seed/payload/bootstrap.ps1 b/content/seed/payload/bootstrap.ps1 index d13adc6..77f3a81 100644 --- a/content/seed/payload/bootstrap.ps1 +++ b/content/seed/payload/bootstrap.ps1 @@ -48,6 +48,13 @@ Set-NetFirewallRule -DisplayGroup 'Windows Remote Management' -Enabled True -Pro # workstation invisible to a normal SMB scan. Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing' -ErrorAction SilentlyContinue +# ICMP echo: Windows drops it by default, and "ping the DC" is the first thing +# anyone does. A lab where ping fails looks broken even when it is not. +if (-not (Get-NetFirewallRule -DisplayName 'Norbourg ICMPv4' -ErrorAction SilentlyContinue)) { + New-NetFirewallRule -DisplayName 'Norbourg ICMPv4' -Protocol ICMPv4 -IcmpType 8 ` + -Direction Inbound -Action Allow -Profile Any | Out-Null +} + # RDP: useful for the instructor when a step misbehaves. Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' ` -Name fDenyTSConnections -Value 0