Mihomo: Difference between revisions

Oluceps (talk | contribs)
Add mihomo
 
Klinger (talk | contribs)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<languages/>
<translate>
<!--T:1-->
'''[https://github.com/MetaCubeX/mihomo/tree/Alpha mihomo]''' (formerly known as clash-meta), is a widely-used anti-censorship proxy application.
'''[https://github.com/MetaCubeX/mihomo/tree/Alpha mihomo]''' (formerly known as clash-meta), is a widely-used anti-censorship proxy application.


<!--T:4-->
Enable mihomo service on NixOS:
Enable mihomo service on NixOS:


<!--T:5-->
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
services.mihomo = {
services.mihomo = {
Line 12: Line 16:
</syntaxhighlight>
</syntaxhighlight>


=== TUN Mode ===
=== TUN Mode === <!--T:6-->
 
<!--T:2-->
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].
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 ===
=== Troubleshooting === <!--T:3-->
 
<!--T:7-->
If encountering issues with transparent proxy:
If encountering issues with transparent proxy:
* Check kernel logs with <code>dmesg</code>
* Check kernel logs with <code>dmesg</code>
Line 26: Line 34:
** Try allow the tproxy port in firewall if you're trying tproxy transparent proxy.
** Try allow the tproxy port in firewall if you're trying tproxy transparent proxy.


== See also ==
== See also == <!--T:8-->


<!--T:9-->
* [https://blog.nyaw.xyz/nixos-inwall-install NixOS installation and usage under a censored network (zh-cn)]
* [https://blog.nyaw.xyz/nixos-inwall-install NixOS installation and usage under a censored network (zh-cn)]
</translate>
[[Category:Applications]]
[[Category:Networking]]