[BUG] ipv6 through socks proxy not working
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- go
- 领域
- networking
调研方向
首先构建二进制文件,并使用提供的 ./socks 命令和 curl -4/-6 SOCKS5 请求重现该问题。根据日志中的 IPv6 目标地址跟踪 SOCKS 服务器的出站拨号路径,并调查为什么它报告 "no route to host",而 IPv4 却能成功。完成的标准是:能够通过代理获取支持 IPv6 的目标,而不会出现 SOCKS5 连接错误。
由索引模型根据 Issue 内容生成。
描述
After building the binary, run the socks server with
./socks --addr :26480 --user-auth [REDACTED] --password [ALSO REDACTED] --country "United States"
It should open a socks server, listening on 26480 both on 127.0.0.1 and ::1 (it did)
When fetching through ipv4:
http_proxy=socks5://localhost:26480 https_proxy=socks5://localhost:26480 curl -4 ip.sb
It works fine, returning a ip which indicates that the traffic do go through the vpn network.
Howver, when fetching through ipv6:
http_proxy=socks5://localhost:26480 https_proxy=socks5://localhost:26480 curl -6 ip.sb
It returns
curl: (97) cannot complete SOCKS5 connection to ip.sb. (4)
The following is the console log of the socks proxy:
socks5 server is listening on :26480
Dialing tcp [2606:4700:20::681a:d1f]:80
socks5: 2025/04/29 19:07:41 [E]: server: connect to [2606:4700:20::681a:d1f]:80 failed, connect tcp [2606:4700:20::681a:d1f]:80: no route to host
Dialing tcp [2606:4700:20::681a:c1f]:80
socks5: 2025/04/29 19:07:43 [E]: server: connect to [2606:4700:20::681a:c1f]:80 failed, connect tcp [2606:4700:20::681a:c1f]:80: no route to host
which indicates that seems ipv6 is not properly supported.
(Need to note that ip.sb by default resolve to a ipv6 address, so it's not caused by the website's lack of ipv6 support. Any sites supported ipv6 should share the same problem with it.)
- 主要语言
- Go
- 星标
- 9
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
urnetwork/proxy 的其他 Issue
相似的 Issue
-
🕷️ bug
难度 2/5 1-3 小时 新手友好度 70/100
sysadminsmedia/homebox#1805 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 70/100
router-for-me/CLIProxyAPI#6851 ·
维护者通常 1 天内回复
-
usage: a custom provider's balance meters ("…%" in the balance path) ignore the Left/Used switch未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
[bug]: docs: Update webhook delete examples to use the correct flag (--webhook-id)可能已有人在做 @MuhammadHassan968 今天认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 84/100
goharbor/harbor-cli#1127 ·
维护者通常 12 天内回复