Mihomo/en: Difference between revisions
Updating to match new version of source page |
Updating to match new version of source page Tags: Mobile edit Mobile web edit |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
'''[https://github.com/MetaCubeX/mihomo/tree/Alpha mihomo]''' | '''[https://github.com/MetaCubeX/mihomo/tree/Alpha mihomo]''' (formerly known as clash-meta), is a widely-used anti-censorship proxy application. | ||
Enable mihomo service on NixOS: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 12: | Line 12: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== | === TUN Mode === | ||
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]. | |||
=== | === Troubleshooting === | ||
If encountering issues with transparent proxy: | |||
* | * Check kernel logs with <code>dmesg</code> | ||
* | * If seeing massive "refuse" messages for specific network devices: | ||
** | ** NixOS enables firewall by default, try disabling firewall | ||
** | ** If problem is solved, try sequentially: | ||
*** | *** Add tun device to <code>trustedInterfaces</code> | ||
*** | *** Disable <code>checkReversePath</code> | ||
* | * If seeing massive "refuse" messages for specific ports: | ||
** | ** Try allow the tproxy port in firewall if you're trying tproxy transparent proxy. | ||
== | == See also == | ||
* [https://blog.nyaw.xyz/nixos-inwall-install | * [https://blog.nyaw.xyz/nixos-inwall-install NixOS installation and usage under a censored network (zh-cn)] | ||
[[Category:Applications]] | |||
[[Category:Networking]] |