Closed plusls closed 7 months ago
@nekohasekai 已补充配置文件,本地可复现
借楼问一下 TCP Brutal+TUN+REALITY+ipv6 应该怎么写配置
{ "log": { "level": "info", "timestamp": true }, "dns": { "servers": [ { "tag": "cloudflare", "address": "2606:4700:4700::1111" }, { "tag": "dnspod", "address": "2402:4e00::", "detour": "direct" }, { "tag": "block", "address": "rcode://success" } ], "rules": [ { "geosite": "category-ads-all", "server": "block", "disable_cache": true }, { "outbound": "any", "server": "dnspod" }, { "geosite": "cn", "server": "dnspod" } ], "strategy": "ipv6_only" }, "inbounds": [ { "type": "tun", "tag": "tun-in", "interface_name": "tun0", "inet6_address": "fdfe:dcba:9876::1/126", "auto_route": true, "strict_route": true, "stack": "system", "sniff": true } ], "outbounds": [ { "type": "vless", "tag": "vless-out", "server": "ipv6", "server_port": 443, "uuid": "uuid", "flow": "", "tls": { "enabled": true, "server_name": "www.docker.com", "utls": { "enabled": true, "fingerprint": "chrome" }, "reality": { "enabled": true, "public_key": "public_key", "short_id": "short_id" } }, "packet_encoding": "xudp", "multiplex": { "enabled": true, "protocol": "h2mux", "max_streams": 10, "padding": true, "brutal":{ "enabled": true, "up_mbps": 30, "down_mbps": 1000 } } }, { "type": "direct", "tag": "direct" }, { "type": "block", "tag": "block" }, { "type": "dns", "tag": "dns" } ], "route": { "geoip": { "download_url": "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", "download_detour": "vless-out" }, "geosite": { "download_url": "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", "download_detour": "vless-out" }, "rules": [ { "protocol": "dns", "outbound": "dns" }, { "geosite": "cn", "geoip": [ "cn", "private" ], "outbound": "direct" }, { "geosite": "category-ads-all", "outbound": "block" } ], "auto_detect_interface": true } } 这配置是抄荒岛博客的作业 进行的修改 但一直报错无法接连
应已在最新版本中修复。
操作系统
Linux
系统版本
debian
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
No response
版本
No response
描述
mixed inbound 在处理 ipv6 http proxy时存在 bug
对于如下的输入A
sing-box 会产生如下日志A:
并返回响应A:
对于如下的输入B
sing-box 会产生如下日志B:
对应的响应B为
对于A请求,根据日志A中的
inbound connection to 172.24.0.253:1089
可以发现 sing-box 在处理http://[2409:8087:7000:20::11]:80/index.m3u8
时会认为它将要连接 172.24.0.253:1089,因此返回了 400,并未正确的发出代理请求对于B请求,根据日志B中的
inbound connection to [2409:8087:7000:20::11]:80
可以得知 sing-box 在处理http://[2409:8087:7000:20::11]/index.m3u8
时能正确的识别目标地址,因此返回正确的结果 404 Not Found重现方式
需要本地有 ipv6
配置文件:
nc -C 127.0.0.1 8888 输入
日志
No response
完整性要求