协议:vless
流控:vision
传输:grpc
安全:reality
server
{
"log": {
"loglevel": "warning"
},
"routing": {
"rules": [
{
"port": "443",
"network": "udp",
"outboundTag": "block"
}
]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 443,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "chika" // 长度为 1-30 字节的任意字符串,或执行 xray uuid 生成
}
],
"decryption": "none"
},
"streamSettings": {
"network": "grpc",
"security": "reality",
"realitySettings": {
"dest": "www.lovelive-anime.jp:443", // 目标网站最低标准:国外网站,支持 TLSv1.3、X25519 与 H2,域名非跳转用(主域名可能被用于跳转到 www)
"serverNames": [ // 客户端可用的 serverName 列表,暂不支持 * 通配符,在 Chrome 里输入 "dest" 的网址 -> F12 -> 安全 -> F5 -> 主要来源(安全),填证书中 SAN 的值
"www.lovelive-anime.jp",
"lovelive-anime.jp"
],
"privateKey": "2KZ4uouMKgI8nR-LDJNP1_MHisCJOmKGj9jUjZLncVU", // 执行 xray x25519 生成,填 "Private key" 的值
"shortIds": [ // 客户端可用的 shortId 列表,可用于区分不同的客户端,0 到 f,长度为 2 的倍数,长度上限为 16,可留空,或执行 openssl rand -hex 1到8 生成
"6ba85179e30d4fc2",
"b9"
]
},
"grpcSettings": {
"serviceName": "lovelive" // 若起始为斜杠时为自定义 path,至少要两个斜杠,例如在服务端填写 "/lovelive/sif/chika|riko",客户端可填写 "/lovelive/sif/chika" 或 "/lovelive/sif/riko",客户端填写 "/lovelive/sif" 将连接失败
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
}
]
}
client
{
"log": {
"loglevel": "warning"
},
"routing": {
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "direct"
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks"
},
{
"listen": "127.0.0.1",
"port": 10809,
"protocol": "http"
}
],
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "",
"port": 443,
"users": [
{
"id": "chika", // 与服务端一致
"encryption": "none"
}
]
}
]
},
"streamSettings": {
"network": "grpc",
"security": "reality",
"realitySettings": {
"fingerprint": "chrome",
"serverName": "www.lovelive-anime.jp", // 与服务端一致
"publicKey": "Z84J2IelR9ch3k8VtlVhhs5ycBUlXA7wHBWcBrjqnAw", // 服务端执行 xray x25519 生成,私钥对应的公钥,填 "Public key" 的值
"shortId": "6ba85179e30d4fc2" // 与服务端一致
},
"grpcSettings": {
"serviceName": "lovelive", // 与服务端一致
"multiMode": true,
"idle_timeout": 60,
"health_check_timeout": 20
}
},
"tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
}
]
}
