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).
This commit is contained in:
2026-10-22 21:30:42 -04:00
parent 0206eb6110
commit 31dae55b1f
+7
View File
@@ -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