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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
| {
"inbound": {
"port": yyy, // docker 内部 v2ray 的端口
"protocol": "vmess", // 我这里使用的 vmess 协议,也可以使用其他协议
"settings": {
"clients": [
{
"id": "uid-xxxxxxxxxxxxx", // vmess 协议需要配置的 uid
"alterId": 100
}
]
}
},
"outbound" : {
"mux" : {
"concurrency" : 8,
"enabled" : true
},
"protocol" : "vmess", // 目标 v2ray 服务器的协议
"settings" : {
"vnext" : [
{
"users" : [
{
"id" : "uid-yyyyyyyyyyyyy", // 目标 v2ray 服务器的 vmess 协议需要配置的 uid
"alterId" : 64 // 和目标服务器保持一致
}
],
"address" : "xxx.com", // 目前 v2ray 服务器的ip 地址或域名
"port" : xxx_1 // 目标 v2ray 服务器的开放的对外端口
}
]
},
"streamSettings": {
"network": "tcp", // 记得配置 tcp
"security": "none",
"tlsSettings": {},
"tcpSettings": {},
"httpSettings": {},
"kcpSettings": {
"mtu": 1350,
"tti": 50,
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "none"
}
},
"wsSettings": {},
"quicSettings": {}
}
},
"inboundDetour": [],
"outboundDetour": [
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
}
]
}
}
}
|