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

相关推荐
骥龙1 天前
3.10、构建网络防线:防火墙、WAF 与蜜罐实战
服务器·网络·数据库·网络安全
国科安芯1 天前
国产RISC-V架构MCU在工控系统中的节能性分析
网络·单片机·嵌入式硬件·fpga开发·性能优化·架构·risc-v
云宏信息1 天前
运维效率提升实战:如何用轻量化云管平台统一纳管与自动化日常资源操作
运维·服务器·网络·架构·云计算
starvapour1 天前
Ubuntu下sudo的免密操作
linux·ubuntu
TG:@yunlaoda360 云老大1 天前
如何了解腾讯云国际站代理商FL有什么跨境优势呢?
网络·云计算·腾讯云
飞Link1 天前
GDN:深度学习时代的图偏差网络异常检测全解析
网络·人工智能·深度学习
破刺不会编程1 天前
socket编程TCP
linux·运维·服务器·开发语言·网络·网络协议·tcp/ip
BullSmall1 天前
日志打印IP:安全与合规的最佳实践
网络·tcp/ip·安全
Better Bench1 天前
Ubuntu aarch64\arm64系统安装vscode
linux·vscode·ubuntu
易天ETU1 天前
短距离光模块 COB 封装与同轴工艺的区别有哪些
网络·人工智能·光模块·光通信·cob·qsfp28·100g