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