mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-22 08:31:29 +00:00
0c9e05e948
* Update config_client.json * Update config_server.json * Update config_client.json
90 lines
2.4 KiB
JSON
90 lines
2.4 KiB
JSON
{
|
|
"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, // v2rayN 本地监听端口
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"udp": true
|
|
},
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": [
|
|
"http",
|
|
"tls"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": 10809, // v2rayN 本地监听端口
|
|
"protocol": "http",
|
|
"sniffing": {
|
|
"enabled": true,
|
|
"destOverride": [
|
|
"http",
|
|
"tls"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "", // VPS的IP
|
|
"port": 16387, // VPS的端口
|
|
"users": [
|
|
{
|
|
"id": "", // 用户ID
|
|
"encryption": "none",
|
|
"flow": "xtls-rprx-vision"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"serverName": "", // 证书中包含的域名
|
|
"allowInsecure": false,
|
|
"fingerprint": "chrome" // 通过 uTLS 库 模拟 Chrome / Firefox / Safari 或随机生成的指纹
|
|
}
|
|
},
|
|
"tag": "proxy"
|
|
},
|
|
{
|
|
"protocol": "freedom",
|
|
"tag": "direct"
|
|
}
|
|
]
|
|
}
|