Browse Source

Fallback to Trojan by default

pull/56/head
RPRX 4 years ago committed by GitHub
parent
commit
876a662b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      VLESS-TCP-XTLS-WHATEVER/README.md
  2. 37
      VLESS-TCP-XTLS-WHATEVER/config_client/trojan_tcp_tls.json
  3. 29
      VLESS-TCP-XTLS-WHATEVER/config_server.json

3
VLESS-TCP-XTLS-WHATEVER/README.md

@ -9,7 +9,10 @@
3. VLESS over WS with TLS
4. VMess over TCP with TLS
5. VMess over WS with TLS
6. Trojan over TCP with TLS
---
这里设置默认回落到 V2Ray 的 Trojan 协议,再继续回落到 80 端口的 Web 服务器(也可以换成数据库、FTP 等)
你还可以配置回落到 Caddy 的 forwardproxy 等其它也防探测的代理,以及分流到任何支持 WebSocket 的代理,都没有问题

37
VLESS-TCP-XTLS-WHATEVER/config_client/trojan_tcp_tls.json

@ -0,0 +1,37 @@
{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"protocol": "trojan",
"settings": {
"vnext": [
{
"address": "example.com", // IP
"port": 443,
"password": "", //
"level": 0
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "example.com" //
}
}
}
]
}

29
VLESS-TCP-XTLS-WHATEVER/config_server.json

@ -18,7 +18,8 @@
"decryption": "none",
"fallbacks": [
{
"dest": 80 //
"dest": 1310, // V2Ray Trojan
"xver": 1
},
{
"path": "/websocket", // PATH
@ -53,6 +54,32 @@
}
}
},
{
"port": 1310,
"listen": "127.0.0.1",
"protocol": "trojan",
"settings": {
"clients": [
{
"password": "", //
"level": 0,
"email": "love@v2fly.org"
}
],
"fallbacks": [
{
"dest": 80 //
}
]
},
"streamSettings": {
"network": "tcp",
"security": "none",
"tcpSettings": {
"acceptProxyProtocol": true
}
}
},
{
"port": 1234,
"listen": "127.0.0.1",

Loading…
Cancel
Save