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:
@@ -48,6 +48,13 @@ Set-NetFirewallRule -DisplayGroup 'Windows Remote Management' -Enabled True -Pro
|
|||||||
# workstation invisible to a normal SMB scan.
|
# workstation invisible to a normal SMB scan.
|
||||||
Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing' -ErrorAction SilentlyContinue
|
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.
|
# RDP: useful for the instructor when a step misbehaves.
|
||||||
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' `
|
Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' `
|
||||||
-Name fDenyTSConnections -Value 0
|
-Name fDenyTSConnections -Value 0
|
||||||
|
|||||||
Reference in New Issue
Block a user