Skip to content
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

[pull] main from lxhao61:main #15

Merged
merged 20 commits into from
Sep 3, 2021
Next Next commit
Update README.md
  • Loading branch information
lxhao61 committed Sep 3, 2021
commit ab3215cdaf55d313c50cdabff7c61dce57efa747
6 changes: 3 additions & 3 deletions v2ray(vless\trojan+tcp+tls)+caddy/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
介绍:

Xray\v2ray 前置(监听443端口),以 h2 或 http/1.1 自适应协商连接,非 Xray\v2ray 的 web 连接回落给 caddy(即解除 tls 后的 web 连接转给 caddy 处理),tls 由 vless+tcp+tls 或 trojan+tcp+tls 提供及处理
本示例配为 vless+tcp+tls 或 trojan+tcp+tls 应用。Xray\v2ray 服务端前置(监听443端口)处理来自墙内的 HTTPS 请求,如果是合法的 Xray\v2ray 客户端请求,那么为该请求提供服务(科学上网);否则将该解开 TLS 的流量回落(转发)给 WEB 服务器 caddy,由 caddy 为其提供服务

原理:

默认流程:Xray\v2ray client <------ tcp+tls ------> Xray\v2ray server
匹配流程:web client <----------- https ----------> Xray\v2ray server <-- 回落 --> caddy(web server)
默认流程:Xray\v2ray client <------ HTTPS(tcp+tls ------> Xray\v2ray server
回落流程:web client <---------------- HTTPS ----------------> Xray\v2ray server <-- 回落 --> caddy(web server)

其中 trojan+tcp+tls 还实现了兼容原版 trojan,即可使用原版 trojan 客户端连接。

Expand Down