Mihomo/zh: Difference between revisions
Appearance
Created page with "如果使用代理软件透明代理遇到问题,请先: 查看dmesg有无异常,省哦出现大量refuse某一网络设备的消息: * nixos 默认开启防火墙,关掉防火墙再尝试 如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath。" |
Created page with "=== 更多参考 ===" |
||
Line 30: | Line 30: | ||
如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath。 | 如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath。 | ||
< | <span id="See_also"></span> | ||
== | === 更多参考 === | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
* [https://blog.nyaw.xyz/nixos-inwall-install <span lang="en" dir="ltr">NixOS installation and usage under a censored network (zh-cn)</span>] | * [https://blog.nyaw.xyz/nixos-inwall-install <span lang="en" dir="ltr">NixOS installation and usage under a censored network (zh-cn)</span>] | ||
</div> | </div> |
Revision as of 14:55, 28 February 2025
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。