Repository navigation
请教vless+xhttp+tls协议的问题 #6550
Unanswered
wlk3773208
asked this question in
Q&A
Replies: 3 comments 3 replies
|
等等,你的tls,ech配置在了哪一边?如果要让nginx负责最外层,负责tls终结需要把这些配置在nginx上,而不是xray,xray直接开个对本地的明文HTTP监听(不要监听公网,只监听localhost用于nginx反代) |
2 replies
0 replies
|
ech配置在不同地方不可能有差异,客户端需要获取的必然是echconfig那个,服务端必然是serverkey。
(否则不能正常发布到DNS的HTTPS记录上)
不过xray生成的格式nginx不一定认,试试用其他更通用的方法,比如OpenSSL生成密钥文件和config?
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/filip-lebiecki/xray-xhttp/
我抄的上面项目的思路,客户端写443端口,服务端反向代理用nginx,收到后转发给xray,这样可以模拟正常443端口流量。
但如果增加ech功能,也就是"echServerKeys",客户端输出错误remote error: tls: unrecognized name
把端口改为xray监听的端口,也就是直连,不经过nginx转发,就没有错误了,wireshark抓包证明ech功能生效
因此我怀疑是nginx配置写的太严,找ai改宽松后输出tls: server rejected ECH,又改了许多次,一律都这个错误
换成caddy后输出remote error: tls: internal error
我认为还是转发有问题,研究许多天都没解决,各位大佬知道原因吗?
xray config.json配置大致如图

客户端配置

/etc/nginx/sites-available/default转发部分配置如图

All reactions