VMESS协议使用XHTTP传输 #4402
Answered
by
lxhao61
TrajanBenn
asked this question in
Q&A
VMESS协议使用XHTTP传输
#4402
-
方案为VMESS+Caddy+XHTTP,Caddy用作反向代理 {
"listen": "127.0.0.1",
"port": 1234,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "{uuid}",
"level": 0,
}
]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"mode": "auto",
"path": "/{path}"
}
}
} 客户端Outbounds {
"sendThrough": "0.0.0.0",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "{example.com}",
"port": 443,
"users": [
{
"id": "{uuid}",
"security": "aes-128-gcm"
}
]
}
]
},
"streamSettings": {
"network": "xhttp",
"xhttpSettings": {
"mode": "auto",
"path": "/{path}"
},
"security": "tls"
}
} 报错为用户不存在,日志信息
是否因为是XHTTP传输时动态生成UUID作验证导致 另外假设流量走CDN,如果使用无加密协议如VLESS,CDN作为中间人能否看到明文内容 |
Beta Was this translation helpful? Give feedback.
Answered by
lxhao61
Feb 18, 2025
Replies: 1 comment 7 replies
-
1、没有这个限制,当然可使用 VMess 协议。 |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
TrajanBenn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1、没有这个限制,当然可使用 VMess 协议。
2、你现配置不能使用:
1)、CDN 是否支持过 XHTTP 传输?
2)、确定没上传的 Caddy 配置没问题?
3)、客户端的 mode 模式改为 packet-up 试试。
3、若使用无加密协议如 VLESS、CDN 作为中间人能看到明文内容,解决办法:
1)、如你一样换加密协议 VMess。
2)、XHTTP 应用使用上下行分离配置,使用无加密协议如 VLESS,最多让 CDN 中间人只看到上行或下行明文内容。