-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
QQ音乐(p2p/udp?)导致VPN断开 #1890
Comments
感谢测试,是否可以再测试 sniff + protocol stun block 能否识别到? 以及网易云也有类似的情况,不知道有没有解决办法。 |
是否是这样。下面两个配置分别是: // 这样也试过,也有问题。
{
"route": {
"rules": [
{ "protocol": "stun","outbound":"🚫_拦截" }
]
},
"outbounds": [
{ "tag": "🚫_拦截", "type": "block" }
]
} 配置文件{
"log": { "level": "trace", "disabled": false, "output": "box.log", "timestamp": true },
"experimental": {
"clash_api": { "external_controller": "0.0.0.0:9090", "default_mode": "📜 规则" },
"cache_file": { "enabled": true, "path": "cache.db", "store_fakeip": true, "store_rdrc": true }
},
"dns": {
"strategy": "ipv4_only",
"servers": [
{ "tag": "🏠_local_dns", "address": "h3://223.5.5.5/dns-query", "detour": "📶_不代理" },
{ "tag": "🚫_dns_block", "address": "rcode://success" }
],
"rules": [
{ "protocol": ["stun"], "server": "🚫_dns_block" }
]
},
"inbounds": [
{ "tag": "🚇", "type": "tun", "stack": "gvisor", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false, "endpoint_independent_nat": false, "sniff": true }
],
"route": {
"final": "📶_不代理", "auto_detect_interface": true,
"rules": [
{ "outbound": "🧩_DNS解析", "protocol": "dns" },
{ "outbound": "🧩_DNS解析", "port": 53 },
{ "outbound": "📶_不代理", "ip_is_private": true }
]
},
"outbounds": [
{ "tag": "📶_不代理", "type": "direct" },
{ "tag": "🧩_DNS解析", "type": "dns" }
]
} 日志: 配置文件{
"log": { "level": "trace", "disabled": false, "output": "box.log", "timestamp": true },
"experimental": {
"clash_api": { "external_controller": "0.0.0.0:9090", "default_mode": "📜 规则" },
"cache_file": { "enabled": true, "path": "cache.db", "store_fakeip": true, "store_rdrc": true }
},
"dns": {
"strategy": "ipv4_only",
"servers": [
{ "tag": "🏠_local_dns", "address": "h3://223.5.5.5/dns-query", "detour": "📶_不代理" },
{ "tag": "🚫_dns_block", "address": "rcode://success" }
],
"rules": [
{ "protocol": ["stun"], "server": "🚫_dns_block" }
]
},
"inbounds": [
{ "tag": "🚇", "type": "tun", "stack": "gvisor", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false, "endpoint_independent_nat": false,
"sniff": true, // 这个之前的上面的配置就是这样。
"sniff_override_destination": true // 增加了这里
}
],
"route": {
"final": "📶_不代理", "auto_detect_interface": true,
"rules": [
{ "outbound": "🧩_DNS解析", "protocol": "dns" },
{ "outbound": "🧩_DNS解析", "port": 53 },
{ "outbound": "📶_不代理", "ip_is_private": true }
]
},
"outbounds": [
{ "tag": "📶_不代理", "type": "direct" },
{ "tag": "🧩_DNS解析", "type": "dns" }
]
} |
你能提供首个连接到端口 3478 的 UDP 数据包 Wireshark 抓包文件吗? |
Wireshark 我之前没有实际使用过。我按照以下步骤操作提供日志和抓包文件。 测试准备: 这一次测试出现了很多个IP(测试设备不同)(最后断开VPN断开时的IP是 ![]() ![]() ![]() 配置文件(也就是最开始的【会导致断开的配置】){
"log": { "level": "trace", "disabled": false, "output": "box.log", "timestamp": true },
"experimental": {
"clash_api": { "external_controller": "0.0.0.0:9090", "default_mode": "📜 规则" },
"cache_file": { "enabled": true, "path": "cache.db", "store_fakeip": true, "store_rdrc": true }
},
"dns": {
"strategy": "ipv4_only",
"servers": [
{ "tag": "🏠_local_dns", "address": "h3://223.5.5.5/dns-query", "detour": "📶_不代理" }
]
},
"inbounds": [
{ "tag": "🚇", "type": "tun", "stack": "gvisor", "inet4_address": "172.19.0.1/30", "auto_route": true, "strict_route": false, "endpoint_independent_nat": false, "sniff": true }
],
"route": {
"final": "📶_不代理", "auto_detect_interface": true,
"rules": [
{ "outbound": "🧩_DNS解析", "protocol": "dns" },
{ "outbound": "🧩_DNS解析", "port": 53 },
{ "outbound": "📶_不代理", "ip_is_private": true }
]
},
"outbounds": [
{ "tag": "📶_不代理", "type": "direct" },
{ "tag": "🧩_DNS解析", "type": "dns" }
]
} sing-box 日志: Wireshark 的抓包文件超过25MB了,我上传到了这里: 然后好像我看了下这些建立UDP连接的IP,在日志中没有看到是哪个域名的解析结果。
|
环境与楼主相同,只不过手机是14 plus,用gvisor就会断开,屏蔽了楼主提供的域名也不行,只能缓解而已,改system就没问题了,另外这个问题实在是很久了,从1.7时代应该就有。 |
操作系统
iOS
系统版本
iOS 17.5.1(21F90):iPhone 15 Pro、iPhone 11 Pro Max
安装类型
sing-box 原始命令行程序
如果您使用图形客户端程序,请提供该程序版本。
1.9.3
版本
No response
描述
使用QQ音乐听歌听一会就会导致VPN断开。(下面有我自己的解决方法。)
之前提过一次 #1858 (可忽略),我希望我这里能提供更多信息,所以又进行测试后再提一次。
断开后 metacubexd 的截图。
重现方式
我获取日志的代码
因为我不知道怎么能拿到iOS上的日志文件。所以在手机上点了 Enabled 后马上运行这个脚本来监听ws拿日志。
下面两个配置的区别
如果让这个域名
twns.p2ptun.qq.com
🚫_dns_block
或者🎭_fakeip
VPN都不会断开。会导致断开的配置
会导致断开的配置的日志
mobile-realip.log
可以正常使用的配置
可以正常使用的配置的日志
🚫_dns_block
mobile-dns_block.log
可以正常使用的配置的日志
🎭_fakeip
mobile-fakeip.log
日志
支持我们
完整性要求
The text was updated successfully, but these errors were encountered: