[BUG] Tun模式启动后无法连接外网,在适配器里勾选再取消网络共享后恢复正常。

Author: qq112293Created Aug 26, 2026Updated Sep 28, 2026
Labelsbugplatform:windowsarea:backend

问题描述 / Describe the bug

一切问题与已关闭的#244,#6970一样,希望官方加入一个修复功能

开机第一次开Tun模式时无法联网,日志报错 error: dns resolve failed: couldn't find ip和error: reject loopback connection to: 223.5.5.5:853。 打开Tun模式后再在网络适配器的Tun网卡或主网卡的共享设置中勾选“允许其他网络用户通过此计算机的internet连接来连接”并确定,再打开共享设置把刚才勾的选项去掉后,Tun模式正常运作。 只要不关机,操作过一次后重启Clash也能直接打开Tun模式正常使用。

软件版本 / CVR Version

v2.5.2

复现步骤 / To Reproduce

开机,打开Clash,打开tun模式,无法连接网络。 打开控制面板-网络和Internet-网络连接,选择主网卡或Tun的虚拟网卡设置勾选“允许其他网络用户通过此计算机的internet连接来连接”并确定。 打开刚才选择的网卡设置,把“允许其他网络用户通过此计算机的internet连接来连接”选项的勾去掉并保存。 Tun模式开始正常运作

操作系统 / OS

  • Windows
  • Linux
  • MacOS

操作系统版本 / OS Version

Win10 v22H2 19045.7663

日志(勿上传日志文件,请粘贴日志内容) / Log (Do not upload the log file, paste the log content directly)

log
08-26 19:51:07info
[TCP] 192.168.0.108:3694(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07info
[TCP] 192.168.0.108:3693(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3740(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3741(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3742(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3744(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3745(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3747(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
08-26 19:51:07warning
[TCP] dial  全球直连 (match GeoIP/cn) 192.168.0.108:3730(verge-mihomo.exe) --> 223.5.5.5:853 error: reject loopback connection to: 223.5.5.5:853
//恢复正常
08-26 19:51:07info
[TCP] 192.168.0.108:3705(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07info
[TCP] 192.168.0.108:3682(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07info
[TCP] 192.168.0.108:3706(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07info
[TCP] 192.168.0.108:3703(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]
08-26 19:51:07info
[TCP] 192.168.0.108:3704(verge-mihomo.exe) --> 223.5.5.5:853 match GeoIP(cn) using  全球直连[DIRECT]

Source: clash-verge-rev/clash-verge-rev