-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
关于6.31+版本Tun模式问题的统一回复 #4539
Comments
我这里windows 10 无论何版本都不能开启TUN模式上网,不是断网就是DNS无法解析或者虚拟网卡无法开启。我还试了nekoray开启TUN模式也不能上网。TUN模式还不成熟。还有v2rayN 6.31版本对Hysteria2类型的节点无法测速。 |
@2dust |
Copy the guiConfigs folder in the 6.31 ,paste to 6.23 , replace |
我的情况是:
其他说明:以上情况均是在 dns 设置中的 singbox dns设置导入的默认配置的情况下产生的,xray的dns没问题(我暂时也还在研究singbox官网的配置文档,就导入用默认的了) |
https://github.com/chika0801/sing-box-examples/blob/main/Tun/config_client_windows_local_dns.json |
Hysteria2测速会解决的,需要时间 |
这个用这个模版的DNS配置转换的config.json会有错
另外 就像我上面提到的 其实如果用默认的DNS的话 我这儿的tun是可以使用的(虽然DNS会有问题,但是我看了默认的dns配置,好像又没啥问题),只是不论直连还是代理都会被统计到proxy的网速和流量统计中 。(如果是自己用命令行手动运行singbox的话,还真分辨不出到底配置好没,因为至少能将就用 ) 考不考虑加个导入外部config.json配置的选项?有时候图方便在外部改了DNS或者是一些没有经V2rayN里图形化 的配置 等打开v2rayN后又变成之前的了 |
singbox 1.8 版本還要去除geoip,要不等singbox 1.8穩定了再改tun的config? 如果6.31版本配1.7.6的singbox使用 tun確實會有DNS解析的問題,能用但是有報錯。這個是那邊沒有出現的issue。
|
把完整配置发出来 |
正确, |
我使用的就是默认的config 如果仅仅使用sing box作为内核而不启动tun的话,是没有这些DNS error的。 |
不是tunconfig.json,6.31在开启tun后路由规则会从v2ray格式自动转换成sing-box格式,应该是开启tun后的config.json,tunconfig.json是6.23的 |
tunConfig.json 在6.31已经废弃了 |
抱歉,这份是我开启tun后的配置,仅去除了server name 作为对比,这是仅用sing box内核不开启tun的配置 |
从config上看并没有什么问题 |
The TUN problem which doesn't show up in Network Connections has been fixed in the new version of v2rayN 6.32 |
you should update your V2rayN app to 6.32. the link: |
It works now! Thanks! |
我更新到6.32还是一样的问题,感觉没变啊 |
在tun设置中打开strict route试试 |
Try turning off ipv6 in Tun settings and check |
默认开着的,不是这个问题 |
It works now, and I hope it is the reason. |
v6.33,TUN模式會有一些問題:
2024/01/18 09:12:59 System proxy setting is changedForcedClear
2024/01/18 09:13:02 The ping of current service: 921 ms
-0800 2024-01-18 09:15:36 ERROR [3972850357 2m4s] inbound/tun[tun-in]: download: read tcp 192.168.31.171:9903->74.48.186.57:40916: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
{
"servers": [
{
"tag": "remote",
"address": "https://1.1.1.1/dns-query",
"detour": "proxy"
},
{
"tag": "local",
"address": "223.5.5.5",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
}
],
"rules": [
{
"geosite": [
"cn"
],
"server": "local",
"disable_cache": true
},
{
"geosite": [
"category-ads-all"
],
"server": "block",
"disable_cache": true
}
],
"strategy": "ipv4_only"
} |
@2dust 问题已修复,修改配置由 "address": "tcp://8.8.8.8", -> 修改为 "address": "udp://8.8.8.8",即可(反正vmess是可以用的) |
this is v2rayn 6.42 xray1.8.10 singbox 1.8.11 问题包括两部分: 首先,我使用了xray,在开启tun模式后,关于网络连接的log消失了。 其次,偶尔会出现类似如下的errorlog:ERROR [1047510101 20.99s] inbound/tun[tun-in]: download: raw-read tcp 192.168.1.104:61132->23.210.215.73:443: An existing connection was forcibly closed by the remote host. 反映在具体情况上,就是原本可以使用chatgpt的节点在开启tun模式后,变得无法使用。但是目前为止,可以完成国内外的网站访问。一些游戏(如战争雷霆)登陆不进去 |
上条评论发送于tun模式下,立马又蹦出来一条: |
还没好啊,tun模式死活连不上网 |
tun mode doesnt work ver 6.43 it only works in 6.23 and it uses 43% of my cpu |
难受啊,上周发现突然TUN失效了,重装了中文win11系统后,还是不行,装了英文系统可以用了,然后今天TUN模式可以打开但是上不了网,现在是打开tun模式连虚拟网卡都不能用了,6.31.6.33.6.43都试过了感觉是WIN11更新的问题了 |
是window的问题?我win10也不行啊 |
6.43 版本启用TUN模式,系统中没有出现对应的虚拟网卡。 |
贴一下自己的sing-box DNS设置-Tun模式设置,跟上面的区别在于address_resolver的出站选择proxy,防止dns污染,现在这个配置Tun开启没有问题。
v2rayn版本是:V6.43
|
开启tun模式经常魔法失败,不知道是设置问题、线路问题还是软件问题。 |
我现在用tun没什么问题,你可以先用代理模式看看你的线路稳不稳定,然后切换成tun模式 |
tun模式就是魔法和直连流量会分开走的?开了之后,旁边的“系统代理”和“路由”怎么选的,我的总是真连接延迟-1 |
|
好的,谢谢。我是看了油管有个博主视频,改成ASIS的。 |
sing-box域名解析策略改成:prefer_IPv4,我咋看你截图是ipv4_only |
我没有ipv6 所以ipv4_only, 如果你也没有,改成ipv4_only也可以 |
好兄弟,还在吗,我的TUN模式开了能用,但是过了一会儿就消失了,就用不了了,是v2rayn的原因吗 |
默认带的sing-box是可以开启tun模式全局的,但是更新sing-box以后就不走代理了,回退以后又能行了。 这是啥问题 6.43版本和之前版本好像都有这个问题 |
当我启动 TUN 模式的时候报出了下面的错误。 |
我试了下v6.39的tun模式在我的配置下可用,但是最新的稳定版就友不可用了 有时候报错DNS回环 可以回退下v6.39版本试一试 配置什么的都没有变 |
试一试替换下面的dns设置
The text was updated successfully, but these errors were encountered: