vless+xtls-rprx-vision+reality偶发ERR_SSL_PROTOCOL_ERROR
Author: gyokuseiCreated Jul 9, 2025Updated Sep 21, 2026
### 完整性要求
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
### 描述
- 服务端版本 25.6.8
- 客户端版本 25.6.8
- 提供日志的客户端macos,使用xray core+ZeroOmega插件
- 其他不同环境的客户端,也会发生此现象
现象为浏览网页时偶发的ERR_SSL_PROTOCOL_ERROR,请求快速失败,刷新即恢复
抓取了一次报错前后10秒的日志,报错时间和url如下
SSL Protocol Error Detected at: 2025/7/9 11:59:02
URL: https://www.v2ex.com/
### 重现方式
无法稳定复现,浏览网页大概几十分钟会出现一次
### 客户端配置
### 服务端配置
### 客户端日志
{
"log": {
"access": "/Users/rigyokusei/xray/access.log",
"error": "/Users/rigyokusei/xray/error.log",
"loglevel": "debug",
"dnsLog": true,
"maskAddress": "half"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 2296,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
}
},
{
"listen": "127.0.0.1",
"port": 3128,
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "mydomain.com",
"port": 443,
"users": [
{
"id": "uuid1",
"encryption": "none",
"flow": "xtls-rprx-vision",
"level": 0
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"serverName": "www.mydomain.com",
"fingerprint": "chrome",
"publicKey": "myPublicKey",
"shortId": ""
}
},
"tag": "osaka_proxy"
},
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"dns": {
"servers": [
{
"address": "1.1.1.1",
"domains": [
"geosite:geolocation-!cn"
]
},
{
"address": "223.5.5.5",
"domains": [
"geosite:cn"
],
"expectIPs": [
"geoip:cn"
]
},
{
"address": "114.114.114.114",
"domains": [
"geosite:cn"
]
},
"localhost"
]
},
"routing": {
"domainStrategy": "IPIfNotMatch",
"rules": [
{
"type": "field",
"ip": [
"223.5.5.5",
"114.114.114.114"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
//some rules
],
"outboundTag": "osaka_proxy"
},
{
"type": "field",
"ip": [
"geoip:private",
"geoip:cn"
],
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:cn"
],
"outboundTag": "direct"
}
]
}
}
{
"log": {
"loglevel": "debug",
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log",
"dnsLog": true,
"maskAddress": "half"
},
"dns": {
"servers": [
"https+local://1.1.1.1/dns-query",
"localhost"
]
},
"stats": {},
"api": {
"tag": "api",
"services": [
"StatsService"
]
},
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundUplink": true,
"statsInboundDownlink": true,
"statsOutboundUplink": true,
"statsOutboundDownlink": true
}
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "uuid1",
"email": "admin",
"flow": "xtls-rprx-vision",
"level": 0
},
{
"id": "uuid2",
"email": "mo",
"flow": "xtls-rprx-vision",
"level": 0
},
{
"id": "uuid3",
"email": "xhd",
"flow": "xtls-rprx-vision",
"level": 0
}
],
"decryption": "none"
},
"streamSettings": {
"network": "raw",
"security": "reality",
"realitySettings": {
"show": false,
"dest": "8001",
"xver": 1,
"serverNames": [
"mydomain.com", "www.mydomain.com"
],
"privateKey": "myPrivateKey",
"shortIds": [
""
]
}
}
},
{
"listen": "/tmp/xray.sock",
"protocol": "dokodemo-door",
"settings": {
"address": "/tmp/xray.sock",
"network": "unix"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "proxy-out",
"proxySettings": {
"tag": "warp-proxy"
}
},
{
"protocol": "socks",
"tag": "warp-proxy",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 40000
}
]
}
},
{
"protocol": "freedom",
"tag": "direct-out"
},
{
"protocol": "blackhole",
"tag": "block"
}
],
"routing": {
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "block"
},
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api"
},
{
"type": "field",
"outboundTag": "block",
"ip": [
"geoip:cn",
"geoip:private",
"223.5.5.5",
"119.29.29.29",
"180.76.76.76",
"114.114.114.114"
],
"user": [
"mo",
"xhd"
]
},
{
"type": "field",
"domain": [
"geosite:category-ads-all"
],
"outboundTag": "block"
},
{
"type": "field",
"network": "tcp,udp",
"outboundTag": "warp-proxy"
}
]
}
}
2025/07/09 11:58:50.159617 [Info] [2907197281] proxy: Xtls Unpadding new block, content 3288 padding 77 command 0
2025/07/09 11:58:50.159865 [Info] [2907197281] proxy: XtlsFilterTls found tls 1.3! 1163 TLS_AES_128_GCM_SHA256
2025/07/09 11:58:50.200321 [Info] [2907197281] proxy: Xtls Unpadding new block, content 207 padding 763 command 0
2025/07/09 11:58:50.202219 [Info] [2907197281] proxy: XtlsPadding 64 1008 0
2025/07/09 11:58:50.202556 [Info] [2907197281] proxy: XtlsPadding 1216 34 2
2025/07/09 11:58:50.277310 [Info] [1408330512] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:50.446498 [Info] [2907197281] proxy: Xtls Unpadding new block, content 158 padding 1182 command 2
2025/07/09 11:58:50.446702 [Info] [2907197281] proxy: CopyRawConn readv
2025/07/09 11:58:50.589007 [Info] [1692349301] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2025/07/09 11:58:50.589071 [Info] [1692349301] app/dispatcher: taking detour [osaka_proxy] for [tcp:www.google-analytics.com:443]
2025/07/09 11:58:50.589103 [Info] [1692349301] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:50.589133 [Debug] [1692349301] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:50.653052 [Info] [1593292891] proxy/socks: TCP Connect request to tcp:mqtt-web.zhihu.com:443
2025/07/09 11:58:50.653178 [Info] [1593292891] app/dispatcher: taking detour [osaka_proxy] for [tcp:mqtt-web.zhihu.com:443]
2025/07/09 11:58:50.653261 [Info] [1593292891] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:50.653375 [Debug] [1593292891] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:50.738835 [Info] [1692349301] proxy/vless/outbound: tunneling request to tcp:www.google-analytics.com:443 via myDomain.com:443
2025/07/09 11:58:50.739092 [Info] [1692349301] proxy: XtlsFilterTls found tls client hello! 1830
2025/07/09 11:58:50.739162 [Info] [1692349301] proxy: XtlsPadding 1830 71 0
2025/07/09 11:58:50.806336 [Info] [1593292891] proxy/vless/outbound: tunneling request to tcp:mqtt-web.zhihu.com:443 via myDomain.com:443
2025/07/09 11:58:50.806481 [Info] [1593292891] proxy: XtlsFilterTls found tls client hello! 1924
2025/07/09 11:58:50.806598 [Info] [1593292891] proxy: XtlsPadding 1924 4 0
2025/07/09 11:58:50.970161 [Info] [1593292891] proxy: Xtls Unpadding new block, content 156 padding 960 command 0
2025/07/09 11:58:50.970280 [Info] [1593292891] proxy: XtlsFilterTls found tls 1.2! 156
2025/07/09 11:58:50.970568 [Info] [1593292891] proxy: XtlsPadding 51 988 0
2025/07/09 11:58:50.970689 [Info] [1593292891] proxy: XtlsPadding 1494 105 1
2025/07/09 11:58:51.368079 [Info] [1593292891] proxy: Xtls Unpadding new block, content 444 padding 580 command 1
2025/07/09 11:58:51.812085 [Info] [1692349301] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:51.818689 [Info] [2598172057] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2025/07/09 11:58:51.818780 [Info] [2598172057] app/dispatcher: taking detour [osaka_proxy] for [tcp:www.google-analytics.com:443]
2025/07/09 11:58:51.818822 [Info] [2598172057] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:51.818875 [Debug] [2598172057] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:51.938241 [Info] [413774576] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:51.945622 [Info] [2384979843] proxy/socks: TCP Connect request to tcp:91.108.*.*:443
2025/07/09 11:58:51.945758 [Info] [2384979843] app/dispatcher: default route for tcp:91.108.*.*:443
2025/07/09 11:58:51.945846 [Info] [2384979843] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:51.945915 [Debug] [2384979843] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:51.986547 [Info] [2598172057] proxy/vless/outbound: tunneling request to tcp:www.google-analytics.com:443 via myDomain.com:443
2025/07/09 11:58:51.986735 [Info] [2598172057] proxy: XtlsFilterTls found tls client hello! 1798
2025/07/09 11:58:51.986871 [Info] [2598172057] proxy: XtlsPadding 1798 6 0
2025/07/09 11:58:52.120572 [Info] [2384979843] proxy/vless/outbound: tunneling request to tcp:91.108.*.*:443 via myDomain.com:443
2025/07/09 11:58:52.120753 [Info] [2384979843] proxy: XtlsPadding 185 114 0
2025/07/09 11:58:52.377266 [Info] [2384979843] proxy: Xtls Unpadding new block, content 89 padding 173 command 0
2025/07/09 11:58:53.068669 [Info] [2598172057] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:53.429762 [Info] [2271682064] proxy/socks: TCP Connect request to tcp:mtalk.google.com:5228
2025/07/09 11:58:53.429918 [Info] [2271682064] app/dispatcher: taking detour [osaka_proxy] for [tcp:mtalk.google.com:5228]
2025/07/09 11:58:53.429954 [Info] [2271682064] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:53.429988 [Debug] [2271682064] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:53.606538 [Info] [2271682064] proxy/vless/outbound: tunneling request to tcp:mtalk.google.com:5228 via myDomain.com:443
2025/07/09 11:58:53.606618 [Info] [2271682064] proxy: XtlsFilterTls found tls client hello! 1795
2025/07/09 11:58:53.606654 [Info] [2271682064] proxy: XtlsPadding 1795 90 0
2025/07/09 11:58:53.911229 [Info] [2271682064] proxy: Xtls Unpadding new block, content 5472 padding 232 command 0
2025/07/09 11:58:53.911348 [Info] [2271682064] proxy: XtlsFilterTls inconclusive server hello 1163 52
2025/07/09 11:58:53.911419 [Info] [2271682064] proxy: XtlsFilterTls found tls 1.3! 2372 TLS_AES_128_GCM_SHA256
2025/07/09 11:58:53.952937 [Info] [2271682064] proxy: Xtls Unpadding new block, content 922 padding 228 command 0
2025/07/09 11:58:53.954262 [Info] [2271682064] proxy: XtlsPadding 64 1195 0
2025/07/09 11:58:53.954910 [Info] [2271682064] proxy: XtlsPadding 209 878 2
2025/07/09 11:58:54.182427 [Info] [2271682064] proxy: Xtls Unpadding new block, content 537 padding 407 command 2
2025/07/09 11:58:54.182503 [Info] [2271682064] proxy: CopyRawConn readv
2025/07/09 11:58:56.222485 [Info] [3835591963] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:56.230766 [Info] [2834027574] proxy/socks: TCP Connect request to tcp:91.108.*.*:443
2025/07/09 11:58:56.232396 [Info] [2834027574] app/dispatcher: default route for tcp:91.108.*.*:443
2025/07/09 11:58:56.232682 [Info] [2834027574] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:56.235633 [Debug] [2834027574] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:56.430572 [Info] [2834027574] proxy/vless/outbound: tunneling request to tcp:91.108.*.*:443 via myDomain.com:443
2025/07/09 11:58:56.430752 [Info] [2834027574] proxy: XtlsPadding 185 219 0
2025/07/09 11:58:56.676617 [Info] [2834027574] proxy: Xtls Unpadding new block, content 89 padding 154 command 0
2025/07/09 11:58:57.339290 [Info] [2834027574] proxy: Xtls Unpadding new block, content 377 padding 244 command 0
2025/07/09 11:58:57.342708 [Info] [2834027574] proxy: XtlsPadding 169 134 0
2025/07/09 11:58:57.508014 [Info] [2834027574] proxy: Xtls Unpadding new block, content 4 padding 126 command 0
2025/07/09 11:58:57.524737 [Info] [2834027574] proxy: Xtls Unpadding new block, content 425 padding 55 command 0
2025/07/09 11:58:57.986376 [Info] [490402130] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:58:57.994626 [Info] [3480636805] proxy/socks: TCP Connect request to tcp:91.108.*.*:443
2025/07/09 11:58:57.994806 [Info] [3480636805] app/dispatcher: default route for tcp:91.108.*.*:443
2025/07/09 11:58:57.994946 [Info] [3480636805] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:58:57.995102 [Debug] [3480636805] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:58:58.184461 [Info] [3480636805] proxy/vless/outbound: tunneling request to tcp:91.108.*.*:443 via myDomain.com:443
2025/07/09 11:58:58.184670 [Info] [3480636805] proxy: XtlsPadding 201 102 0
2025/07/09 11:58:58.425374 [Info] [3480636805] proxy: Xtls Unpadding new block, content 89 padding 242 command 0
2025/07/09 11:59:02.511699 [Info] [1702841787] proxy/socks: TCP Connect request to tcp:clients4.google.com:443
2025/07/09 11:59:02.511884 [Info] [1702841787] app/dispatcher: taking detour [osaka_proxy] for [tcp:clients4.google.com:443]
2025/07/09 11:59:02.511986 [Info] [1702841787] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:59:02.512279 [Debug] [1702841787] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:59:02.553705 [Info] [3976135507] proxy/socks: TCP Connect request to tcp:www.gstatic.com:80
2025/07/09 11:59:02.553851 [Info] [3976135507] app/dispatcher: taking detour [osaka_proxy] for [tcp:www.gstatic.com:80]
2025/07/09 11:59:02.553900 [Info] [3976135507] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:59:02.553942 [Debug] [3976135507] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:59:02.688614 [Info] [1702841787] proxy/vless/outbound: tunneling request to tcp:clients4.google.com:443 via myDomain.com:443
2025/07/09 11:59:02.688797 [Info] [1702841787] proxy: XtlsFilterTls found tls client hello! 2284
2025/07/09 11:59:02.688884 [Info] [1702841787] proxy: XtlsPadding 2284 146 0
2025/07/09 11:59:02.704139 [Info] [3976135507] proxy/vless/outbound: tunneling request to tcp:www.gstatic.com:80 via myDomain.com:443
2025/07/09 11:59:02.704484 [Info] [3976135507] proxy: XtlsPadding 358 25 0
2025/07/09 11:59:02.837562 [Info] [3976135507] proxy: Xtls Unpadding new block, content 127 padding 154 command 0
2025/07/09 11:59:02.894588 [Info] [1702841787] proxy: Xtls Unpadding new block, content 1468 padding 140 command 0
2025/07/09 11:59:02.894813 [Info] [1702841787] proxy: XtlsFilterTls inconclusive server hello 1163 58
2025/07/09 11:59:02.894976 [Info] [1702841787] proxy: XtlsFilterTls found tls 1.3! 305 TLS_AES_128_GCM_SHA256
2025/07/09 11:59:02.896710 [Info] [1702841787] proxy: XtlsPadding 74 1058 0
2025/07/09 11:59:02.896862 [Info] [1702841787] proxy: XtlsPadding 92 1159 2
2025/07/09 11:59:02.983580 [Info] [1702841787] proxy: Xtls Unpadding new block, content 968 padding 121 command 2
2025/07/09 11:59:02.983809 [Info] [1702841787] proxy: CopyRawConn readv
2025/07/09 11:59:03.829502 [Info] [1593292891] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:59:04.380600 [Info] [2384979843] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2025/07/09 11:59:04.388255 [Info] [41008816] proxy/socks: TCP Connect request to tcp:91.108.*.*:443
2025/07/09 11:59:04.388463 [Info] [41008816] app/dispatcher: default route for tcp:91.108.*.*:443
2025/07/09 11:59:04.388718 [Info] [41008816] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:59:04.388884 [Debug] [41008816] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:59:04.546773 [Info] [41008816] proxy/vless/outbound: tunneling request to tcp:91.108.*.*:443 via myDomain.com:443
2025/07/09 11:59:04.546897 [Info] [41008816] proxy: XtlsPadding 185 251 0
2025/07/09 11:59:04.794304 [Info] [41008816] proxy: Xtls Unpadding new block, content 89 padding 85 command 0
2025/07/09 11:59:05.203789 [Info] [2099735101] proxy/socks: TCP Connect request to tcp:mtalk.google.com:5228
2025/07/09 11:59:05.203937 [Info] [2099735101] app/dispatcher: taking detour [osaka_proxy] for [tcp:mtalk.google.com:5228]
2025/07/09 11:59:05.204026 [Info] [2099735101] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:59:05.204210 [Debug] [2099735101] transport/internet: dialing to tcp:myDomain.com:443
2025/07/09 11:59:05.360083 [Info] [2099735101] proxy/vless/outbound: tunneling request to tcp:mtalk.google.com:5228 via myDomain.com:443
2025/07/09 11:59:05.360290 [Info] [2099735101] proxy: XtlsFilterTls found tls client hello! 1795
2025/07/09 11:59:05.360469 [Info] [2099735101] proxy: XtlsPadding 1795 219 0
2025/07/09 11:59:05.461905 [Info] [3601940430] proxy/socks: TCP Connect request to tcp:alive.github.com:443
2025/07/09 11:59:05.462265 [Info] [3601940430] app/dispatcher: taking detour [osaka_proxy] for [tcp:alive.github.com:443]
2025/07/09 11:59:05.462402 [Info] [3601940430] transport/internet/tcp: dialing TCP to tcp:myDomain.com:443
2025/07/09 11:59:05.462504 [Debug] [3601940430] transpoSource: XTLS/Xray-core