In general you can't. ping needs a direct network connection on the IP
level to do its work. A proxy works on a higher layer of the TCP/IP
network model, where there is no direct access to the IP protocol.
You would need to somehow circumvent the proxy (change firewall
settings, use a VPN, ...). Whether this is possible (and allowed)
depends on your network configuration, but it's probably not possible.
As a workaround, there are many web-based ping services available
(search for "web-based ping"). These will work.
简单的说就是 ping 命令需要直接网络,不能使用代理,所以每一次ping google 的时候,都是 timeout
作为替代的方法,可以使用基于 web 的 ping 工具
在这里我使用 wget 就能访问