From c6de1d0d78d83cea8af60c69d6ee47b50d5ba623 Mon Sep 17 00:00:00 2001 From: chika0801 <88967758+chika0801@users.noreply.github.com> Date: Thu, 3 Nov 2022 09:17:10 +0800 Subject: [PATCH] Add VLESS-TCP-XTLS-Vision sample config (#83) * Create config_server.json * Rename config_server.json to VLESS-TCP-XTLS-Vision/config_server.json * Create config_client.json * Update config_client.json --- VLESS-TCP-XTLS-Vision/config_client.json | 88 ++++++++++++++++++++++++ VLESS-TCP-XTLS-Vision/config_server.json | 64 +++++++++++++++++ 2 files changed, 152 insertions(+) create mode 100644 VLESS-TCP-XTLS-Vision/config_client.json create mode 100644 VLESS-TCP-XTLS-Vision/config_server.json diff --git a/VLESS-TCP-XTLS-Vision/config_client.json b/VLESS-TCP-XTLS-Vision/config_client.json new file mode 100644 index 0000000..d23f64f --- /dev/null +++ b/VLESS-TCP-XTLS-Vision/config_client.json @@ -0,0 +1,88 @@ +{ + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "type": "field", + "domain": [ + "geosite:cn", + "geosite:private" + ], + "outboundTag": "direct" + }, + { + "type": "field", + "ip": [ + "geoip:cn", + "geoip:private" + ], + "outboundTag": "direct" + } + ] + }, + "inbounds": [ + { + "listen": "127.0.0.1", + "port": 10808, + "protocol": "socks", + "settings": { + "udp": true + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] + } + }, + { + "listen": "127.0.0.1", + "port": 10809, + "protocol": "http", + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] + } + } + ], + "outbounds": [ + { + "protocol": "vless", + "settings": { + "vnext": [ + { + "address": "", // VPS的IP + "port": 16387, // 端口 + "users": [ + { + "id": "", // 用户ID + "encryption": "none", + "flow": "xtls-rprx-vision" + } + ] + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "serverName": "", // 证书中包含的域名 + "allowInsecure": false + } + }, + "tag": "proxy" + }, + { + "protocol": "freedom", + "tag": "direct" + } + ] +} diff --git a/VLESS-TCP-XTLS-Vision/config_server.json b/VLESS-TCP-XTLS-Vision/config_server.json new file mode 100644 index 0000000..0ffd951 --- /dev/null +++ b/VLESS-TCP-XTLS-Vision/config_server.json @@ -0,0 +1,64 @@ +{ + "log": { + "loglevel": "warning" + }, + "routing": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "type": "field", + "ip": [ + "geoip:cn", + "geoip:private" + ], + "outboundTag": "block" + } + ] + }, + "inbounds": [ + { + "listen": "0.0.0.0", + "port": 16387, // 端口 + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "", // 用户ID + "flow": "xtls-rprx-vision" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "rejectUnknownSni": true, + "certificates": [ + { + "certificateFile": "/etc/ssl/private/fullchain.cer", // 证书 + "keyFile": "/etc/ssl/private/private.key" //私钥 + } + ] + } + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] + } + } + ], + "outbounds": [ + { + "protocol": "freedom", + "tag": "direct" + }, + { + "protocol": "blackhole", + "tag": "block" + } + ] +}