Xray-core
Xray-core copied to clipboard
VMess+[VLESS+XTLS+REALITY] 链式代理无法连接
完整性要求
- [x] 我读完了 issue 模板中的所有注释,确保填写符合要求。
- [x] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [x] 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
- [x] 我搜索了 issues, 没有发现已提出的类似问题。
- [x] 问题在 Release 最新的版本上可以成功复现
描述
在使用链式代理的时候使用 Local -> VMess -> [VLESS+XTLS+REALITY] -> Web 无法正常连接 VMess和VLESS都可以单独正常连接 链式则不可用 VMess可以正常连接到VLESS服务器的端口
重现方式
运行客户端 curl -x socks5://localhost:10808 ip.sb
客户端配置
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks",
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "0.0.0.0",
"port": 443,
"users": [
{
"id": "24ce8152-7a02-496f-a869-cff2866d478d",
"encryption": "mlkem768x25519plus.native.0rtt.hfVRV7WC8wdga9pbIus4H7MPcZKWMiNQJDMx8SRLSWyqHPiGxcg_o9p8m7NAQTFcRssxZFl8boHNojmhNyMFAGs9tNZgxiRoF0Zh3OyEtVBG7dF0GVJrXFt-7RYKztCCzKOcdZubmKWxXWu35AmyvGtAj3YzHfolZoVL00rC8IDHxoSXWPyMbxVYP-hy9jgeZVFkkad9qOc_w2YZnxcomVUMWNQaL5wgZGnMUiMmDYOU65WYZNNHfZp6hQUgPrObNUW1wpGSmFIvMFCwOiUZanEjpjpP8fVpNik3sYox1DF8eEHCDAR3hNZj53THh0JfQthoTKsk5DBsJ_yVpbXGmxBtRpTHlsF1uslufwkQePw4x8pbu7W5zdpGbPO7ILukdJyYbayuzGVQEmGxaxln1PaF5TBOFYS92ds4Fxu7v2isbLT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DAa0UURpAyMfcWhPnE3oyoxEWdR8LJT80O4TfiStKKI9TMhMZ-2dwblhmg3pA",
"flow": "xtls-rprx-vision"
}
]
}
]
},
"streamSettings": {
"network": "raw",
"security": "reality",
"realitySettings": {
"show": true,
"fingerprint": "chrome",
"serverName": "example.com",
"publicKey": "8L3-CJaxPHPfcna7OikWhKsVVaMxeMzNxEFtRBUEz0Q",
"spiderX": "",
"shortId": "c47c4980"
},
"sockopt": {
"dialerProxy": "input"
}
},
"tag": "proxy"
},
{ // VMess部分由机场提供 无服务器配置信息
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "[Private]",
"port": 80,
"users": [
{
"id": "[Private]"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "http",
"host": "azure.com"
}
}
},
"tag": "input"
}
]
}
服务端配置
{
"log": {
"loglevel": "debug"
},
"inbounds": [
{
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "24ce8152-7a02-496f-a869-cff2866d478d",
"flow": "xtls-rprx-vision"
}
],
"decryption": "mlkem768x25519plus.native.600s.gcAwPIC20BzcJhT8OD4lhGodVgRskUXQeE-0JXAtd5yVzmOzta1E-YEEH6MqeWr1rULYXi2X8BMnIROVvJR1nw"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"dest": "example.com:443",
"serverNames": [
"example.com"
],
"privateKey": "OB5ulDdHcWCJ-rS-zjYAYphojuCqXx78FrlFZimEcFA",
"shortIds": [
"c47c4980"
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
}
// VMess部分由机场提供 无服务器配置信息
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
]
}
客户端日志
2026/03/17 05:11:39.807159 [Warning] core: Xray 26.2.6 started
2026/03/17 05:11:41.181947 [Info] [1348317145] proxy/socks: TCP Connect request to tcp:104.26.12.31:80
2026/03/17 05:11:41.182114 [Info] [1348317145] app/dispatcher: sniffed domain: ip.sb
2026/03/17 05:11:41.182159 [Info] [1348317145] app/dispatcher: default route for tcp:ip.sb:80
2026/03/17 05:11:41.182167 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:443
2026/03/17 05:11:41.182177 [Info] [1348317145] transport/internet: redirecting request tcp:[Private]:443 to input
2026/03/17 05:11:41.182218 from tcp:127.0.0.1:51810 accepted tcp:104.26.12.31:80 [proxy]
2026/03/17 05:11:41.182490 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:41.182507 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
REALITY localAddr: 0.0.0.0:0 hello.SessionId[:16]: [26 2 6 0 105 185 68 253 41 62 69 234 191 115 198 2]
REALITY localAddr: 0.0.0.0:0 uConn.AuthKey[:16]: [20 157 190 19 62 154 232 191 111 66 209 113 60 137 18 126] AEAD: *gcm.GCM
2026/03/17 05:11:41.634497 [Info] [1348317145] proxy/vmess/outbound: tunneling request to tcp:[Private]:443 via [Private]:80
2026/03/17 05:11:43.195424 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:443
2026/03/17 05:11:43.195444 [Info] [1348317145] transport/internet: redirecting request tcp:[Private]:443 to input
2026/03/17 05:11:43.195664 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:43.195687 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
REALITY localAddr: 0.0.0.0:0 hello.SessionId[:16]: [26 2 6 0 105 185 68 255 41 62 69 234 191 115 198 2]
REALITY localAddr: 0.0.0.0:0 uConn.AuthKey[:16]: [26 92 234 242 119 150 116 49 84 76 191 76 174 2 208 65] AEAD: *gcm.GCM
2026/03/17 05:11:43.559010 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:43.559028 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:45.154197 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:45.154216 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:45.902116 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:45.902145 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:46.920552 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:46.920578 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:48.068102 [Info] [1348317145] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [dial tcp [Private]:80: connect: connection refused] > common/retry: all retry attempts failed
2026/03/17 05:11:48.268733 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:443
2026/03/17 05:11:48.268750 [Info] [1348317145] transport/internet: redirecting request tcp:[Private]:443 to input
2026/03/17 05:11:48.269014 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:48.269028 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
REALITY localAddr: 0.0.0.0:0 hello.SessionId[:16]: [26 2 6 0 105 185 69 4 41 62 69 234 191 115 198 2]
REALITY localAddr: 0.0.0.0:0 uConn.AuthKey[:16]: [140 77 191 41 79 145 194 50 15 140 137 114 121 57 92 221] AEAD: *gcm.GCM
2026/03/17 05:11:48.658965 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:48.658984 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:49.179650 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:49.179673 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:49.946295 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:49.946315 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:50.937367 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:50.937388 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:52.148438 [Info] [1348317145] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [dial tcp [Private]:80: connect: connection refused] > common/retry: all retry attempts failed
2026/03/17 05:11:52.549292 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:443
2026/03/17 05:11:52.549310 [Info] [1348317145] transport/internet: redirecting request tcp:[Private]:443 to input
2026/03/17 05:11:52.549476 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:52.549492 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
REALITY localAddr: 0.0.0.0:0 hello.SessionId[:16]: [26 2 6 0 105 185 69 8 41 62 69 234 191 115 198 2]
REALITY localAddr: 0.0.0.0:0 uConn.AuthKey[:16]: [92 138 9 70 95 183 108 198 27 172 112 77 100 233 132 101] AEAD: *gcm.GCM
2026/03/17 05:11:52.978813 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:52.978842 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:53.536126 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:53.536138 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:54.313359 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:54.313384 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
2026/03/17 05:11:54.666322 [Info] [1348317145] proxy/vmess/outbound: tunneling request to tcp:[Private]:443 via [Private]:80
2026/03/17 05:11:55.381153 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:443
2026/03/17 05:11:55.381177 [Info] [1348317145] transport/internet: redirecting request tcp:[Private]:443 to input
2026/03/17 05:11:55.381516 [Info] [1348317145] transport/internet/tcp: dialing TCP to tcp:[Private]:80
2026/03/17 05:11:55.381532 [Debug] [1348317145] transport/internet: dialing to tcp:[Private]:80
REALITY localAddr: 0.0.0.0:0 hello.SessionId[:16]: [26 2 6 0 105 185 69 11 41 62 69 234 191 115 198 2]
REALITY localAddr: 0.0.0.0:0 uConn.AuthKey[:16]: [70 254 237 104 44 163 114 217 245 243 176 181 45 126 116 241] AEAD: *gcm.GCM
2026/03/17 05:11:55.753439 [Info] [1348317145] proxy/vmess/outbound: tunneling request to tcp:[Private]:443 via [Private]:80
REALITY localAddr: 0.0.0.0:0 is using X25519MLKEM768 for TLS' communication: true
REALITY localAddr: 0.0.0.0:0 is using ML-DSA-65 for cert's extra verification: false
REALITY localAddr: 0.0.0.0:0 uConn.Verified: false
REALITY localAddr: 0.0.0.0:0 req.UserAgent(): Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
2026/03/17 05:11:56.046090 [Error] [1348317145] transport/internet/reality: REALITY: received real certificate (potential MITM or redirection)
REALITY localAddr: 0.0.0.0:0 DialTLSContext
REALITY localAddr: 0.0.0.0:0 req.Referer(): [Private]
REALITY localAddr: 0.0.0.0:0 len(body): 309
REALITY localAddr: 0.0.0.0:0 len(paths): 1
2026/03/17 05:11:56.847051 [Info] [1348317145] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [EOF io: read/write on closed pipe EOF transport/internet/reality: REALITY: processed invalid connection] > common/retry: all retry attempts failed
服务端日志
无信息 服务端没有信息
Xray 26.1.18 (Xray, Penetrates Everything.) 7ff06f6 (go1.25.6 linux/amd64)
A unified platform for anti-censorship.
2026/03/17 12:19:53.833934 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2026/03/17 12:19:53.834159 [Debug] app/log: Logger started
2026/03/17 12:19:53.834412 [Debug] app/proxyman/inbound: creating stream worker on [Private]:443
2026/03/17 12:19:53.834561 [Info] transport/internet/tcp: listening TCP on [Private]:443
2026/03/17 12:19:53.834578 [Warning] core: Xray 26.1.18 started
关掉xtls试试
无关XTLS 刚刚测试了一下使用Xray核心的VMess 可以正常链式 这是服务端配置
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 80,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "19c95da0-8e5b-487d-a926-6f5780bcbd62",
"alterId": 0
}
]
},
"streamSettings": {
"network": "tcp",
"tcpSettings": {
"header": {
"type": "http"
}
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}但是使用机场的就不行 好奇这是为什么 机场的VMess可以访问VLESS的服务器(VLESS服务器的端口正常显示伪装网站 正常使用SSH连接VLESS服务器),不存在被机场限制了
无关XTLS 刚刚测试了一下使用Xray核心的VMess 可以正常链式 这是服务端配置
Details 但是使用机场的就不行 好奇这是为什么 机场的VMess可以访问VLESS的服务器(VLESS服务器的端口正常显示伪装网站 正常使用SSH连接VLESS服务器),不存在被机场限制了
reality 不是你自己的域名,机场给重定向到真实 ip 地址了,内层不用 reality 即可。
那就是了