From 9a9cac36a32f22a8c4bcb82e76e8549af92ab080 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+rprx@users.noreply.github.com> Date: Sun, 6 Sep 2020 22:18:07 +0800 Subject: [PATCH] VLESS-TCP-TLS-VMess (more usage) --- VLESS-TCP-TLS-VMess (more usage)/README.md | 5 ++ .../config_client_vless.json | 42 ++++++++++ .../config_client_vmess.json | 52 ++++++++++++ .../config_server.json | 80 +++++++++++++++++++ 4 files changed, 179 insertions(+) create mode 100644 VLESS-TCP-TLS-VMess (more usage)/README.md create mode 100644 VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json create mode 100644 VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json create mode 100644 VLESS-TCP-TLS-VMess (more usage)/config_server.json diff --git a/VLESS-TCP-TLS-VMess (more usage)/README.md b/VLESS-TCP-TLS-VMess (more usage)/README.md new file mode 100644 index 0000000..c17911b --- /dev/null +++ b/VLESS-TCP-TLS-VMess (more usage)/README.md @@ -0,0 +1,5 @@ +# VLESS over TCP with TLS + 回落 & 分流 to TCP(更多玩法) + +这里是 [推荐配置]() 的补充,利用 VLESS 强大的回落分流特性,实现了 443 端口 VLESS & VMess over TCP with TLS 的完美共存 + +你还可以配置回落到 Caddy 的 forwardproxy 等其它防探测的代理,以及分流到任何支持 WebSocket 的代理,都没有问题 diff --git a/VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json b/VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json new file mode 100644 index 0000000..a93646d --- /dev/null +++ b/VLESS-TCP-TLS-VMess (more usage)/config_client_vless.json @@ -0,0 +1,42 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "port": 10800, + "listen": "127.0.0.1", + "protocol": "socks", + "settings": { + "udp": true + } + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了) + "port": 443, + "users": [ + { + "id": "", // 填写你的 UUID + "encryption": "none", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.com" // 换成你的域名 + } + } + } + ] +} \ No newline at end of file diff --git a/VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json b/VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json new file mode 100644 index 0000000..beb848d --- /dev/null +++ b/VLESS-TCP-TLS-VMess (more usage)/config_client_vmess.json @@ -0,0 +1,52 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "port": 10800, + "listen": "127.0.0.1", + "protocol": "socks", + "settings": { + "udp": true + } + } + ], + "outbounds": [ + { + "protocol": "vmess", + "settings": { + "vnext": [ + { + "address": "example.com", // 换成你的域名或服务器 IP(发起请求时无需解析域名了) + "port": 443, + "users": [ + { + "id": "", // 填写你的 UUID + "security": "none", + "level": 0 + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "example.com" // 换成你的域名 + }, + "tcpSettings": { + "header": { + "type": "http", + "request": { + "path": [ + "/fakehttpheader" // 必须换成自定义的 PATH,需要和服务端的一致 + ] + } + } + } + } + } + ] +} \ No newline at end of file diff --git a/VLESS-TCP-TLS-VMess (more usage)/config_server.json b/VLESS-TCP-TLS-VMess (more usage)/config_server.json new file mode 100644 index 0000000..05c6f33 --- /dev/null +++ b/VLESS-TCP-TLS-VMess (more usage)/config_server.json @@ -0,0 +1,80 @@ +{ + "log": { + "loglevel": "warning" + }, + "inbounds": [ + { + "port": 443, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", // 填写你的 UUID + "level": 0, + "email": "love@v2fly.org" + } + ], + "decryption": "none", + "fallbacks": [ + { + "dest": 80 + }, + { + "path": "/fakehttpheader", // 必须换成自定义的 PATH + "dest": 2345, + "xver": 1 + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/path/to/fullchain.crt", // 换成你的证书,绝对路径 + "keyFile": "/path/to/private.key" // 换成你的私钥,绝对路径 + } + ] + } + } + }, + { + "port": 2345, + "listen": "127.0.0.1", + "protocol": "vmess", + "settings": { + "clients": [ + { + "id": "", // 填写你的 UUID + "level": 0, + "email": "love@v2fly.org" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "none", + "tcpSettings": { + "acceptProxyProtocol": true, + "header": { + "type": "http", + "request": { + "path": [ + "/fakehttpheader" // 必须换成自定义的 PATH,需要和上面的一致 + ] + } + } + } + } + } + ], + "outbounds": [ + { + "protocol": "freedom" + } + ] +} \ No newline at end of file