-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[Bug] 开启TUN后无法连接到WG内网服务 #1819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
+1 for this. I have encountered the same issue when using wireguard along with mihomo. |
+1 |
可能和我遇到的问题类似 #1881 但是我是配置了 interface-name 后能访问,加了个 PR 来自动选择 interface-name |
kitty314
added a commit
to kitty314/mihomoabab
that referenced
this issue
Apr 10, 2025
commit 025ff19 Author: wwqgtxx <[email protected]> Date: Fri Mar 28 10:54:11 2025 +0800 fix: wrong conditional judgment in removeExtraHTTPHostPort MetaCubeX#1939 commit f615346 Author: anytls <[email protected]> Date: Thu Mar 27 20:25:31 2025 +0800 chore: anytls protocol version 2 (MetaCubeX#1936) commit 7b38261 Author: wwqgtxx <[email protected]> Date: Tue Mar 25 01:19:39 2025 +0800 chore: update gvisor commit 0f32c05 Author: enfein <[email protected]> Date: Thu Mar 20 05:58:04 2025 +0000 feat: support UDP over TCP in mieru (MetaCubeX#1926) commit 4f8b70c Author: 5aaee9 <[email protected]> Date: Wed Mar 19 12:20:48 2025 +0800 fix: buffer in tproxy not recycle (MetaCubeX#1923) commit dcef787 Author: wwqgtxx <[email protected]> Date: Tue Mar 18 09:09:54 2025 +0800 chore: update utls commit 7c444a9 Author: wwqgtxx <[email protected]> Date: Mon Mar 17 23:51:21 2025 +0800 fix: correctly handle ipv6 zone commit e3d4ec2 Author: wwqgtxx <[email protected]> Date: Mon Mar 17 14:00:51 2025 +0800 fix: race at interfaceName setting commit 14217e7 Author: xishang0128 <[email protected]> Date: Mon Mar 17 13:21:23 2025 +0800 chore: update service capabilities to include CAP_SYS_TIME and CAP_DAC_OVERRIDE commit 68abb13 Author: wwqgtxx <[email protected]> Date: Mon Mar 17 10:42:13 2025 +0800 chore: support longest-prefix matches in local interface finding commit dee5898 Author: Cesaryuan <[email protected]> Date: Sat Mar 15 13:27:29 2025 +0800 fix: memory leak due to unclosed session (MetaCubeX#1908) commit 1e22f4d Author: wwqgtxx <[email protected]> Date: Fri Mar 14 12:07:23 2025 +0800 chore: reduce data copying in quic sniffer and better handle data fragmentation and overlap commit a7a796b Author: wwqgtxx <[email protected]> Date: Thu Mar 13 16:27:29 2025 +0800 chore: cleanup quic sniff's code commit ff89bf0 Author: Cesaryuan <[email protected]> Date: Thu Mar 13 13:28:40 2025 +0800 feat: add gost-plugin in which only ws and mws are currently supported. (MetaCubeX#1896) commit 801f3c3 Author: 5aaee9 <[email protected]> Date: Thu Mar 13 13:19:36 2025 +0800 feat: support sniff quic fragment data (MetaCubeX#1899) commit 7ff046a Author: wwqgtxx <[email protected]> Date: Thu Mar 13 08:52:27 2025 +0800 chore: modify UDPSniff's function signature to prepare for its ability to handle multiple packets. commit 0ed159e Author: wwqgtxx <[email protected]> Date: Wed Mar 12 13:33:52 2025 +0800 chore: code cleanup commit 070eb31 Author: wwqgtxx <[email protected]> Date: Wed Mar 12 11:42:57 2025 +0800 chore: speedup system stack in tun commit f318b80 Author: wwqgtxx <[email protected]> Date: Tue Mar 11 22:50:55 2025 +0800 chore: better cache implement for group's getProxies commit c0de3c0 Author: wwqgtxx <[email protected]> Date: Mon Mar 10 11:10:39 2025 +0800 fix: some default value in dialer not restore in tun when config reload commit 4bd3ae5 Author: wwqgtxx <[email protected]> Date: Mon Mar 10 10:45:07 2025 +0800 chore: dialer will consider the routing of the local interface when auto-detect-interface in tun is enabled for MetaCubeX#1881 MetaCubeX#1819 commit 00e6466 Author: Skyxim <[email protected]> Date: Mon Mar 10 09:13:38 2025 +0800 chore: update checksum generation step commit c94b442 Author: Skyxim <[email protected]> Date: Mon Mar 10 09:02:08 2025 +0800 chore: add checksum generation for production artifacts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
验证步骤
操作系统
Linux
系统版本
Ubuntu Server 22.04
Mihomo 版本
配置文件
描述
同时运行
wireguard
和mihomo
时,可以ping通其他wireguard
节点,但是无法访问DNS结果为本机Wireguard IP的服务。例如,我在Cloudflare DNS面板将
test.mydomain.com
解析到10.88.10.2
(本机Wireguard IP),如果执行curl -I https://test.mydomain.com
,显示:$ curl -I https://test.mydomain.com curl: (35) error:0A000126:SSL routines::unexpected eof while reading
如果关闭
mihomo
,则是可以访问这个网址的:mihomo
日志如下:可以看出
mihomo
正确解析出了IP,但是无法路由,这是我的路由表信息:我院先是使用Clash,同样是TUN模式,没有额外为Wireguard配置Proxy,Clash时的路由表:
$ ip rule 0: from all lookup local 9500: not from all dport 53 lookup main suppress_prefixlength 0 9510: not from all iif lo lookup 1970566510 9520: from 0.0.0.0 iif lo uidrange 0-4294967294 lookup 1970566510 9530: from 198.18.0.1 iif lo uidrange 0-4294967294 lookup 1970566510 32766: from all lookup main 32767: from all lookup default $ ip route show table 1970566510 default dev utun proto static $ ip route show table main default via 192.168.5.1 dev eno1 proto dhcp src 192.168.5.20 metric 100 10.88.10.0/24 dev wg0 proto kernel scope link src 10.88.10.2 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 172.18.0.0/16 dev br-cedacbabdb88 proto kernel scope link src 172.18.0.1 172.19.0.0/16 dev br-7c2769437b03 proto kernel scope link src 172.19.0.1 172.20.0.0/16 dev br-2b1827af5547 proto kernel scope link src 172.20.0.1 172.21.0.0/16 dev br-9e904fb55376 proto kernel scope link src 172.21.0.1 192.168.5.0/24 dev eno1 proto kernel scope link src 192.168.5.20 metric 100 192.168.5.1 dev eno1 proto dhcp scope link src 192.168.5.20 metric 100 198.18.0.0/16 dev utun proto kernel scope link src 198.18.0.1
我的
wireguard
状态:我已经根据 #1728 添加了名为
WG
的Proxy(见上方配置文件),然而并没有什么用。重现方式
如上。
日志
The text was updated successfully, but these errors were encountered: