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

相关推荐
handler0114 小时前
UDP协议与网络通信知识点
c语言·网络·c++·笔记·网络协议·udp
怀旧,15 小时前
【Linux网络编程】8. 网络层协议 IP
linux·网络·tcp/ip
cen__y15 小时前
Linux11(网络编程)
linux·运维·服务器·c语言·网络·网络协议·tcp/ip
CableTech_SQH15 小时前
商业地产和高端酒店该怎么选综合布线解决方案?
运维·服务器·网络
万点科技12315 小时前
定制软件开发公司实施方
网络
怀旧,16 小时前
【Linux网络编程】9. 数据链路层
linux·服务器·网络
CableTech_SQH16 小时前
华中科技大学同济医学院附属协和医院重庆医院智能化建设 F5G 全光方案百盛分析报告
大数据·网络·5g·运维开发·信息与通信
QotomPC16 小时前
Qotom Q30900GP多网口Mini PC:16网口设计在pfSense与工业网络中的应用
服务器·网络·边缘计算
冰冰的米咖16 小时前
20260430am9_10
网络·网络协议
高锰酸钾_17 小时前
计算机网络-链路层-差错控制
服务器·网络·计算机网络