windows 禁止ping 和 允许 ping
以管理员身份启动 cmd.exe:
启用 ping:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
禁用 ping:
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=block
桂棹兮兰桨,击空明兮溯流光。