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

相关推荐
DC_BLOG2 小时前
IPv6(四)
运维·服务器·网络·ip
明朝百晓生2 小时前
无线感知会议系列【3】【基于WiFi和4G/5G的非接触无线感知:挑战、理论和应用-1】
网络·5g
城南云小白5 小时前
Linux网络服务只iptables防火墙工具
linux·服务器·网络
羌俊恩6 小时前
视频服务器:GB28181网络视频协议
服务器·网络·音视频
Flying_Fish_roe6 小时前
linux-网络管理-网络配置
linux·网络·php
hellojackjiang20117 小时前
即时通讯框架MobileIMSDK的H5端开发快速入门
网络·即时通讯·im开发
有时间要学习8 小时前
Linux——应用层自定义协议与序列化
linux·服务器·网络
Tony聊跨境8 小时前
什么是 SSL 代理?
网络·网络协议·ssl
我叫啥都行8 小时前
计算机基础知识复习9.7
运维·服务器·网络·笔记·后端
Monodye9 小时前
【Java】网络编程:TCP_IP协议详解(IP协议数据报文及如何解决IPv4不够的状况)
java·网络·数据结构·算法·系统架构