Mihomo/zh

Revision as of 14:55, 28 February 2025 by Oluceps (talk | contribs) (Created page with "=== 更多参考 ===")

mihomo (formerly known as clash-meta), is a widely-used anti-censorship proxy application.

在NixOS上啟用mihomo服務:

services.mihomo = {
  enable = true;
  configFile = "/path/to/config.yaml";
  #...
};

TUN模式

NOTICE: The tunMode option in NixOS module only grants necessary permissions for the service. To actually enable TUN, you need to edit the configFile. See official documentation.

錯誤排查

如果使用代理軟件透明代理遇到問題,請先:

查看dmesg有無異常,省哦出現大量refuse某一網絡設備的消息:

  • nixos 默認開啟防火牆,關掉防火牆再嘗試

如關掉防火牆後問題解決,依次嘗試:將tun device添加到 trustedInterfaces,關掉 checkReversePath。

更多參考