The Windows Defender firewall rule can be created using PowerShell.
New-NetFirewallRule -DisplayName "ICMPv4 Trippy Allow" -Name ICMPv4_TRIPPY_ALLOW -Protocol ICMPv4 -Action AllowNew-NetFirewallRule -DisplayName "ICMPv6 Trippy Allow" -Name ICMPv6_TRIPPY_ALLOW -Protocol ICMPv6 -Action Allow
The rules can be enabled as follows:
Enable-NetFirewallRule ICMPv4_TRIPPY_ALLOWEnable-NetFirewallRule ICMPv6_TRIPPY_ALLOW
The rules can be disabled as follows:
Disable-NetFirewallRule ICMPv4_TRIPPY_ALLOWDisable-NetFirewallRule ICMPv6_TRIPPY_ALLOW
The Windows Defender firewall rule may also be configured manually, see here for a step-by-step guide.