【问题标题】:Disable Torsocks DNS feature禁用 Torsocks DNS 功能
【发布时间】:2016-02-08 12:46:18
【问题描述】:

如何阻止 torsocks 进行 DNS 查询?

相反,我想进行正常的 DNS 查询。我知道这意味着 DNS 泄漏,但我需要它。

由于某种原因,当我执行torsocks npm login 时,它会返回一个套接字挂起错误,我记得我在过去通过阻止那些 DNS 查询来修复它。

欢迎提出任何想法。

编辑: 使用这种方法:

tordns_enable = false 在conf文件中

在运行上面显示的命令时返回给我:

ERROR: npm is setuid. torsocks will not work on a setuid executable.

【问题讨论】:

    标签: dns npm tor torsocks


    【解决方案1】:

    如果您编辑 torsocks.conf 文件并添加一行:

    tordns_enable = false
    

    这应该会禁用 Tor 上的 DNS 解析,而是使用计算机的常规 DNS 解析器。

    【讨论】:

    • 我之前尝试过,但没有成功。它说:ERROR: npm is setuid. torsocks will not work on a setuid executable.。问题已更新。
    • 由于 torsocks 不能与 setuid 一起使用,请尝试从文件中删除该属性:sudo chmod a-s /path/to/npm。请注意,如果 npm 链接到某个东西,您可能还需要在链接的目标上运行 chmod。
    • 不再有效,Config file contains unknown value: tordns_enable = false
    猜你喜欢
    • 2021-08-19
    • 2015-01-06
    • 2021-03-27
    • 1970-01-01
    • 2014-02-01
    • 2014-03-21
    • 1970-01-01
    • 1970-01-01
    • 2011-12-04
    相关资源
    最近更新 更多