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

相关推荐
Skrrapper12 分钟前
ubuntu?centos?还是 redhat?Linux 系统选哪个?
linux·ubuntu·centos
CryptoCrawler42 分钟前
文件包含与下载漏洞
网络·安全
自我陶醉@1 小时前
计算机网络---网络层
网络·计算机网络·考研·学习方法·408·王道考研
专家大圣2 小时前
Bililive-go+cpolar:跨平台直播录制的远程管理方案
开发语言·网络·后端·golang·内网穿透·设计工具
某不知名網友2 小时前
Reactor 模式:高并发网络编程的事件驱动利器
网络·设计模式·php
德迅--文琪2 小时前
SSL 证书的重要性
网络·网络协议·ssl
2501_915921432 小时前
TCP 抓包分析实战,从抓取到定位(命令、常见症状、排查流程与真机抓包补充)
网络·网络协议·tcp/ip·ios·小程序·uni-app·iphone
补三补四2 小时前
图卷积网络 (GCN)
网络·人工智能·深度学习·神经网络·算法·机器学习
余衫马3 小时前
实战指南:RVC 语音转换框架
人工智能·深度学习·ubuntu
艾莉丝努力练剑3 小时前
【Linux指令 (一)】Linux 命令行入门:从零开始理解Linux系统理论核心概念与基础指令
linux·c++·经验分享·ubuntu·centos