mihomo icon indicating copy to clipboard operation
mihomo copied to clipboard

[Feature] 希望增加指定分组可关闭 override-destination(Tor 不能开这个)

Open arkxfly opened this issue 11 months ago • 9 comments

Verify steps

  • [X] 我已经在 Issue Tracker 中找过我要提出的请求 I have searched on the issue tracker for a related feature request.
  • [X] 我已经仔细看过 Documentation 并无法找到这个功能 I have read the documentation and was unable to solve the issue.

Description

Tor 开了 override-destination 将连不上

(主要是找不到Tor使用的域名列表,无法配置 skip-domain 名单,但是可以指定其代理 sock5 端口)。

可能 tor 的域名是伪装用的,实际这个域名解析不到这个 ip,所以不能 override-destination


但是其他一些网站比如 https://huggingface.co/ 需要开 override-destination,不然会报下面错误

image

Possible Solution

希望增加指定分组可关闭 override-destination 或者 socks5 入站关闭 sniff 功能。

或者是否可以加个和 no-resolve 类似的选项?匹配到指定规则,该会话可以关闭 overirde-destination

arkxfly avatar Mar 05 '24 03:03 arkxfly

使用skip-domain跳过嗅探

xishang0128 avatar Mar 05 '24 06:03 xishang0128

使用skip-domain跳过嗅探

不知道 Tor 的连接域名列表的。

arkxfly avatar Mar 05 '24 08:03 arkxfly

@arkxfly 那就只能关闭嗅探,sniff是作用在入站的,而不是组

xishang0128 avatar Mar 05 '24 08:03 xishang0128

@arkxfly 那就只能关闭嗅探,sniff是作用在入站的,而不是组

socks5 入站,没看到有配置关闭 sniff 啊。你说的是全局关闭?全局关闭也不行, https://huggingface.co/ 访问不了。

arkxfly avatar Mar 05 '24 08:03 arkxfly

@arkxfly 使用尝试socks5h,或者http,或者socks5有个远程dns啥的开关打开,应该就能通过socks/http传递域名,不需要嗅探

xishang0128 avatar Mar 05 '24 08:03 xishang0128

https://github.com/torproject/tor/blob/3cb6a690be60fcdab60130402ff88dcfc0657596/src/test/conf_examples/large_1/torrc#L142

tor 应该没得配置 sock5h,而且 tor 是不能 override-destination。

arkxfly avatar Mar 05 '24 08:03 arkxfly

@arkxfly tor连接域名不是固定后缀吗,我记得可以匹配后缀的啊

xishang0128 avatar Mar 05 '24 08:03 xishang0128

image

Tor 是这样的,现在就想 TorBr 这个组直接关闭 override-destination。然后全局保持开启 override-destination,这样就完美解决了。

Tor 域名很多,也不知道在哪可以获取到完整列表。应该很难吧,这个服务器可能是社区某志愿者的机器。。域名估计也是伪装,如果 override-destination ,那肯定连不上了。

arkxfly avatar Mar 05 '24 08:03 arkxfly

是否可以加个和,no-resolve 类似的选项?匹配到指定规则,该会话可以关闭 overide destination

arkxfly avatar Apr 13 '24 00:04 arkxfly