ansitest/winstuff/win10-firewall-allow-ping.cmd
2024-04-29 15:25:27 -06:00

14 lines
542 B
Batchfile

echo PK to allow ping
echo Run as admin!
pause
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
rem ipv6
rem netsh advfirewall firewall add rule name="ICMP Allow incoming V6 echo request" protocol=icmpv6:8,any dir=in action=allow
rem https://www.thewindowsclub.com/how-to-allow-pings-icmp-echo-requests-through-windows-firewall
rem disable:
rem netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=block