Jump to content

Translations:Mihomo/7/zh: Difference between revisions

From Official NixOS Wiki
Oluceps (talk | contribs)
Created page with "如果使用代理软件透明代理遇到问题,请先: 查看dmesg有无异常,省哦出现大量refuse某一网络设备的消息: * nixos 默认开启防火墙,关掉防火墙再尝试 如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath。"
 
Weijia (talk | contribs)
No edit summary
 
Line 1: Line 1:
如果使用代理软件透明代理遇到问题,请先
如果使用透明代理遇到问题:
 
* 使用 <code>dmesg</code> 检查内核日志
查看dmesg有无异常,省哦出现量refuse某一网络设备的消息:
* 如果看到量关于特定网络设备的 refuse 消息:
* nixos 默认启防火墙,关掉防火墙再尝试
** NixOS 默认启用了防火墙,关掉防火墙再尝试
如关掉防火墙后问题解决,依次尝试:将tun device添加到 trustedInterfaces,关掉 checkReversePath
** 如关掉防火墙后问题解决得到解决,可以依次尝试:
*** 将 tun 设备添加到 <code>trustedInterfaces</code>
*** 禁用 <code>checkReversePath</code>
* 如果看到大量关于特定端口的 refuse 消息:
** 如果你正在使用 tproxy 透明代理尝试在防火墙中允许 tproxy 端口

Latest revision as of 16:31, 28 August 2025

Message definition (Mihomo)
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.

如果在使用透明代理时遇到问题:

  • 使用 dmesg 检查内核日志
  • 如果看到大量关于特定网络设备的 refuse 消息:
    • NixOS 默认启用了防火墙,关掉防火墙再尝试
    • 如关掉防火墙后问题解决得到解决,可以依次尝试:
      • 将 tun 设备添加到 trustedInterfaces
      • 禁用 checkReversePath
  • 如果看到大量关于特定端口的 refuse 消息:
    • 如果你正在使用 tproxy 透明代理,尝试在防火墙中允许 tproxy 端口。