-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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官网的配置文档,就导入用默认的了) |
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是可以用的) |
简单一点的解决方案可以参考我这条回复,有精力的可以去一个个测试下再来回复 |
看一下设置里的dns设置把里面的默认设置全删了再试 |
您好!Tun模式下进行游戏有时玩一段时间后突然变得比较卡,这时发现sing-box.exe进程占用了大量内存和CPU(30%CPU, 500+MB内存),重启后会恢复正常,但是我不想暴露我的真实IP, 这就得先关了游戏然后重新进,比较麻烦。这个问题大概平均几天就会出现一次。我搜了一下这个问题,似乎是sing-box的tun设置里面udp_timeout值设置的小一些就能解决(我是小白完全不懂这些,不知道这样做到底能不能解决),但是我在v2rayN里面找不到自定义json配置的地方,tun设置里面只支持设置部分选项没有这个udp_timeout。请问v2rayN是否会考虑支持自定义导入sing-box的tun设置呢?DNS设置似乎是可以json自定义的,但是这种tun设置我没有找到。 |
开了debug级别的日志并且存到了文件。今天又出现了这个问题,文件大小(49M)明显大于没出问题的昨天时的日志文件(7M)。发现出问题的时候开始大量出现这一种记录:
240e:97c:2f:1::46这个地址就是在这个时候第一次出现的,从这开始就疯狂地出现这个IP地址。 |
你这个记录看起来是没什么问题,之所以出现这样长的记录,是因为singbox这个进程处于process路由规则的direct里,这里只是一种描述,不是错误信息,你需要注意的是疯狂出现的那个ip,看它是否是合法连接,通过反查看能不能找出是哪个软件发出的,是哪个域名,再结合你自己实际使用看它是否是正常的 |
感谢回复。这个IP似乎是腾讯的IP, 我在游戏的时候有打开QQ和微信电脑版,可能是这两个软件发出的,但具体是哪个还有待排查。但无论如何不用Tun模式的时候这两个软件不可能会占用这么多的内存(开Tun模式出现这个问题的时候sing-box.exe会占用500多M内存),并且这个连接请求一直是疯狂地发送,仅仅二十多分钟记录的日志就有了40多M大,因此我感觉这不是正常现象。 |
这个肯定不正常,还有一个问题,如果是qq或者微信连接的那个ip,照道理应该是qq和wecat这两个进程发起连接,但是现在看起来好像全部由singbox发起了,这块我觉得不正常,至少我这里qq和WeChat都是由客户端自己发起的连接,比如: +0800 2024-06-27 13:14:41 INFO [3557094680 0ms] router: found process path: E:\Program Files (x86)\Tencent\TIM\Bin\TIM.exe 你这个情况要大佬们分析一下,我感觉不是v2rayN本身的问题,我这里tun开启singbox只占用60多m内存,xray也只占100多m |
又看了一下上面的我的记录,第一次连接发起的时候([fdfe:dcba:9876::1]:58481那次)好像是QQ发起的,之后(58482开始)就变成sing-box了,并且是疯狂地发起请求。之后又出现了类似的一些请求,也是这个样子,一开始QQ发起,然后变成了sing-box发起并且疯狂发送。总之非常感谢你的回复。 |
#5308 |
I run sing-tun manually and there is no problem, but v2rayN don't turn it on itself for xray custom json configs |
Run v2rayN with naiveproxy core, had the same problem, but it's solved now by turn off "strict route" in tun mode setting |
Good news is that Xray-core want to add Tun inbound XTLS/Xray-core#3576 |
#5595 DNS的报错可以尝试删除"tcp://" |
均衡负载/最低延迟 使用tun模式无法使用ipv6,即使设置里打开了也用不了,关闭tun模式可以使用ipv6。版本是v6.55 |
我把热点关了就可以用了 |
我现在想用负载均衡(新版本)和TUN(老版本) 怎么办? |
我已经试过了把老版本sing-box.exe复制到新版本中 还是不行。 |
电脑是windows11 以太网有线连接 |
使用app自带默认配置和网友建议的配置都不行的情况下,换一个app试一试,如果还是不行就放弃吧
从 v6.50 开始,Tun模式的启动内核已经有新的模式
试一试替换下面的dns设置
The text was updated successfully, but these errors were encountered: