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

相关推荐
旺仔.2914 小时前
Linux 信号详解
linux·运维·网络
源远流长jerry7 小时前
在 Ubuntu 22.04 上配置 Soft-RoCE 并运行 RDMA 测试程序
linux·服务器·网络·tcp/ip·ubuntu·架构·ip
虾..8 小时前
UDP协议
网络·网络协议·udp
w-w0w-w8 小时前
Unix网络编程
服务器·网络·unix
未知鱼8 小时前
Python安全开发之子域名扫描器(含详细注释)
网络·python·安全·web安全·网络安全
寂柒8 小时前
序列化与反序列化
linux·网络
lay_liu9 小时前
ubuntu 安装 Redis
linux·redis·ubuntu
志栋智能9 小时前
超自动化巡检:应对复杂IT环境的必然选择
运维·网络·安全·web安全·自动化
上海云盾-小余10 小时前
云主机安全加固:从系统、网络到应用的零信任配置
网络·安全·php
QCzblack11 小时前
见面考复现
网络