Xray-examples/VLESS-TCP-XTLS-Vision/config_client.json

94 lines
2.8 KiB
JSON
Raw Normal View History

{
"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", // 填 0.0.0.0 表示允许来自局域网的连接
"port": 10808, // v2rayN 本地socks监听端口
"protocol": "socks",
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", // 填 "0.0.0.0" 表示允许来自局域网的连接
"port": 10809, // v2rayN 本地http监听端口
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "", // 地址服务端的域名或IP
"port": 443, // 端口,与服务端一致
"users": [
{
"id": "", // 用户ID与服务端一致
"encryption": "none",
"flow": "xtls-rprx-vision"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"serverName": "", // SNI如果"address"填的是服务端的域名,可留空,如果"address"填的是服务端的IP此处填服务端的证书中包含的域名
2022-11-08 03:37:15 +00:00
"allowInsecure": false,
"fingerprint": "chrome" // 用于配置指定 TLS Client Hello 的指纹Xray 将通过 uTLS 库 模拟 TLS 指纹,或随机生成
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}