Virtualization, Cloud, Infrastructure and all that stuff in-between
My ramblings on the stuff that holds it all together
Allow ICMP Ping through Windows firewall from command line
March 6, 2021
Posted by on Leaving this here for the next time I can’t remember how to do it.. Windows by default ships with the firewall slammed shut (and rightly-so) however if you can’t easily see the console of the machine like if it’s in Azure sometimes it’s hard to figure out when it’s up and ready to go – I have a jump box in Azure that I power-up when I need it.
so, to do-so you need to run this command once the first time you use it then, ICMP (Ping) will be allowed for evermore
netsh advfirewall firewall add rule name="Allow ICMP Ping" protocol=icmpv4:8,any dir=in action=block