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

相关推荐
克莱因35818 小时前
思科 Cisco 标准ACL
网络·路由
SilentSamsara18 小时前
SSH 远程管理:密钥登录 + 隧道转发,一次性配置好
linux·运维·服务器·ubuntu·centos·ssh
资深数据库专家19 小时前
总账EBS 应用服务器1 的监控分析
java·网络·数据库
阿正的梦工坊19 小时前
拦截网络请求:一种更优雅的数据获取方式
网络·okhttp
TechWayfarer20 小时前
IP归属地API 技术解析与应用实践
网络·网络协议·tcp/ip
zhgjx-dengkewen21 小时前
eNSP实验:配置NAT Server
服务器·网络·华为·智能路由器
添砖java‘’21 小时前
NAT代理、内网打洞和内网穿透
linux·服务器·网络
Once_day1 天前
网络以太网之(3)LLDP协议
网络·以太网·lldp
m0_738120721 天前
渗透测试基础ctfshow——Web应用安全与防护(五)
前端·网络·数据库·windows·python·sql·安全
其实防守也摸鱼1 天前
XSS漏洞全景解析:从原理、实战利用到纵深防御
前端·网络·安全·xss·xss漏洞