Closed chika0801 closed 1 year ago
如果只将客户端配置中的 "sniff_override_destination": true ,观察客户端日志,发给服务端的请求内容是域名。服务端能正常分流。
"sniff": true,
"sniff_override_destination": true
日志
服务端
客户端
Expected behavior. sniff by default use sniffed domains for routing only. If you want the destination to be overridden, enable sniff_override_destination
as well.
我的问题是
服务端入站用了
"sniff": true, "sniff_override_destination": true
sniff 参数并没正确生效
在服务端配置中添加了
"sniff_timeout": "500ms",
还是没有嗅探动作。这参数不写也是300ms默认值,应该不是这个原因。
服务端入站用域名嗅探参数
"sniff": true,
"sniff_override_destination": true
客户端使用v2rayNG,并使用 "routeOnly": true,发送IP到服务端。
此时服务端的 "sniff" 正常工作,嗅探到域名。
证明当客户端使用sing-box时,将IP发到服务端,服务端对sing-box发来的IP,"sniff"参数没能正常工作。
v2rayNG配置
Welcome
Description of the problem
两端都使用sing-box,客户端使用TUN模式,配置参数
服务端入站用域名嗅探参数,观察日志嗅探动作未执行
Version of sing-box
Server and client configuration file
服务端
客户端
Server and client log file
服务端
客户端 访问 chat.openai.com 进行测试