| 场景 | 代理导致的联网异常 |
|---|---|
| 组合 | env 检查 + curl -x + -v 看 CONNECT |
现状检查
现状检查
env | grep -i proxy
curl -v -sS https://example.com -o /dev/null 2>&1 | grep -E 'Connected|CONNECT|proxy' | head显式走/绕过
显式走/绕过
curl -sS -x http://proxy.corp:3128 -o /dev/null -w '%{http_code}\n' https://example.com
curl -sS --noproxy '*' -o /dev/null -w '%{http_code}\n' http://10.0.0.9/health # 强制直连内网
export NO_PROXY='10.0.0.0/8,internal.example.com' # 内网不走代理常见根因:内网地址没排除导致走了代理、或代理要求认证(407)。-v 看 CONNECT 行最直接。