Mihomo/zh: Difference between revisions

Weijia (talk | contribs)
No edit summary
mNo edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 13: Line 13:


<span id="TUN_Mode"></span>
<span id="TUN_Mode"></span>
<div class="mw-translate-fuzzy">
=== TUN 模式 ===
=== TUN模式 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
注意:[https://search.nixos.org/options?channel=unstable&show=services.mihomo.tunMode&from=0&size=50&sort=relevance&type=packages&query=mihomo tunMode option]仅为服务提供必要的权限。 如果你需要真正的使用TUN,你需要修改'''configFile'''。详见[https://wiki.metacubex.one/config/inbound/listeners/tun/?h=tun official documentation]
NOTICE: The [https://search.nixos.org/options?channel=unstable&show=services.mihomo.tunMode&from=0&size=50&sort=relevance&type=packages&query=mihomo tunMode option] in NixOS module only grants necessary permissions for the service. To actually enable TUN, you need to edit the '''configFile'''. See [https://wiki.metacubex.one/config/inbound/listeners/tun/?h=tun official documentation].
</div>


<span id="Troubleshooting"></span>
<span id="Troubleshooting"></span>
<div class="mw-translate-fuzzy">
=== 故障===
=== 错误===
</div>


<div class="mw-translate-fuzzy">
如果使用透明代理遇到问题:
如果使用代理软件透明代理遇到问题,请先
* 使用 <code>dmesg</code> 检查内核日志
 
* 如果看到量关于特定网络设备的 refuse 消息:
查看dmesg有无异常,省哦出现量refuse某一网络设备的消息:
** NixOS 默认启用了防火墙,关掉防火墙再尝试
* nixos 默认启防火墙,关掉防火墙再尝试
** 如关掉防火墙后问题解决得到解决,可以依次尝试:
如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath
*** 将 tun 设备添加到 <code>trustedInterfaces</code>
</div>
*** 禁用 <code>checkReversePath</code>
* 如果看到大量关于特定端口的 refuse 消息:
** 如果你正在使用 tproxy 透明代理,尝试在防火墙中允许 tproxy 端口。


<span id="See_also"></span>
<span id="See_also"></span>
<div class="mw-translate-fuzzy">
== 更多参考 ==
=== 更多参考 ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">