【ubuntu 24 noble】踩坑!ping 只能使用网络,不能使用代理

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 就能访问

相关推荐
Elec_z3 小时前
网络深处的守门人
开发语言·网络
Alex-Leung4 小时前
VMware虚拟机 ubuntu22.04无法与共享粘贴板和拖拽文件的解决方案
ubuntu·vmware·ubuntu22.04·vmware-tools
车载测试工程师5 小时前
车载以太网网络测试-25【SOME/IP-报文格式-1】
网络·网络协议·tcp/ip
小安运维日记8 小时前
CKS认证 | Day3 K8s容器运行环境安全加固
运维·网络·安全·云原生·kubernetes·云计算
IEVEl8 小时前
Centos7 开放端口号
linux·网络·centos
今夜有雨.8 小时前
HTTP---基础知识
服务器·网络·后端·网络协议·学习·tcp/ip·http
Synfuture阳途8 小时前
关于终端安全管理系统的超全解析
网络·安全·web安全
echoHaha039 小时前
域渗透(web安全)
网络·安全
MobiCetus10 小时前
有关pip与conda的介绍
linux·windows·python·ubuntu·金融·conda·pip
开发小能手-roy10 小时前
ubuntu 安装mysql
mysql·ubuntu·adb