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

相关推荐
2021_fc3 小时前
WebSocket技术分享
网络·websocket·网络协议
zizisuo4 小时前
为什么TCP设计中要设计ACK不重传?
网络·网络协议·tcp/ip
偶像你挑的噻4 小时前
Linux应用开发-17-套接字
linux·网络·stm32·嵌入式硬件
AI分享猿4 小时前
小白学规则编写:雷池 WAF 配置教程,用 Nginx 护住 WordPress 博客
java·网络·nginx
AORO20255 小时前
遨游科普:三防平板是指哪三防?有哪些应用场景?
大数据·网络·5g·智能手机·电脑·信息与通信
鸢尾掠地平5 小时前
DNS的正向、反向解析的服务配置知识点及实验
运维·服务器·网络
草莓熊Lotso5 小时前
C++ 方向 Web 自动化测试实战:以博客系统为例,从用例到报告全流程解析
前端·网络·c++·人工智能·后端·python·功能测试
GhostGuardian5 小时前
DNS报文结构全解析
网络·网络协议
宁雨桥6 小时前
WebSocket 完全指南:从原理到实战,搭建实时通信桥梁
网络·websocket·网络协议
陌路206 小时前
操作系统(11)进程描述与控制--5种IO状态(1)
linux·ubuntu