1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| {
"log": {
"loglevel": "error"
},
"api": {
"tag": "api",
"services": ["HandlerService", "LoggerService", "StatsService", "RoutingService"]
},
"inbounds": [
{
"listen": "0.0.0.0",
"port": 10086,
"protocol": "dokodemo-door",
"settings": { "address": "127.0.0.1" },
"tag": "api"
},
{
"port": 443,
"tag": "vless-reality",
"protocol": "vless",
"settings": {
"clients": [],
"decryption": "none"
},
"streamSettings": {
"network": "tcp",
"security": "reality",
"realitySettings": {
"show": false,
"dest": "www.lovelive-anime.jp:443", // 目标域名及端口
"xver": 0,
"serverNames": ["www.lovelive-anime.jp"], // 客户端连接时使用的域名
"privateKey": "aIRW_Eh8-n8JEmkHFRxQeHnBipHrxt6OrIbAeUVr12s", // 填入生成的 PrivateKey
"shortIds": ["1d582b6c"] // 随机 1-8 位十六进制字符
}
}
}
],
"outbounds": [
{ "protocol": "freedom", "tag": "direct" },
{ "protocol": "blackhole", "tag": "block" }
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{ "inboundTag": ["api"], "sourceIP": ["0.0.0.0/0"], "outboundTag": "api", "type": "field" },
{ "type": "field", "ip": ["geoip:private"], "outboundTag": "block" },
{ "type": "field", "protocol": ["bittorrent"], "outboundTag": "block" }
]
}
}
|