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

相关推荐
bohu832 小时前
亚博microros小车-原生ubuntu支持系列:16 机器人状态估计
ubuntu·机器人·imu·localization·microros·imu_tools
马立杰3 小时前
H3CNE-33-BGP
运维·网络·h3cne
Mason Lin3 小时前
2025年1月22日(网络编程 udp)
网络·python·udp
字节全栈_rJF4 小时前
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步
网络·智能路由器·php
EchoToMe4 小时前
电信传输基本理论/5G网络层次架构——超三万字详解:适用期末考试/考研/工作
网络·5g·架构
doubt。4 小时前
8.攻防世界Web_php_wrong_nginx_config
网络·安全·web安全·网络安全
没有名字的小羊5 小时前
Cyber Security 101-Build Your Cyber Security Career-Security Principles(安全原则)
运维·网络·安全
m0_465215795 小时前
TCP & UDP Service Model
服务器·网络·tcp/ip
esmember5 小时前
电路研究9.2.6——合宙Air780EP中HTTP——HTTP GET 相关命令使用方法研究
网络·网络协议·http·at指令
xianwu5436 小时前
反向代理模块jmh
开发语言·网络·数据库·c++·mysql