mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
14 lines
542 B
Batchfile
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
|