-
Notifications
You must be signed in to change notification settings - Fork 403
/
1_v2ray_config.json
252 lines (252 loc) · 8.21 KB
/
1_v2ray_config.json
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{
"log": {
"loglevel": "warning",
"error": "/var/log/xray/error.log", //若使用v2ray,此处目录名称xray改成v2ray。
"access": "/var/log/xray/access.log" //若使用v2ray,此处目录名称xray改成v2ray。
},
"inbounds": [
{
"port": 443, //监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "048e0bf2-dd56-11e9-aa37-5600024c1d6a", //修改成自己的UUID
"flow": "xtls-rprx-direct", //启用xtls,必须增加此条参数;否则删除。v2ray从v4.33.0版开始删除了xtls应用,如要使用此应用,建议选用xray。
"email": "[email protected]"
}
],
"decryption": "none",
"fallbacks": [
{
"dest": 88, //h2与http/1.1回落共用此端口,回落到web服务器。
"xver": 0 //caddy发行版不支持PROXY protocol,如用发行版此处值必须为0。
},
{
"path": "/HALdGZ9k", //通过路径分流
"dest": 2001, //分流后转给vless+ws监听端口
"xver": 0 //关闭PROXY protocol发送,不发送真实来源IP和端口给如下vless+ws应用。另默认为0,此条参数可以省略不写。
},
{
"path": "/SS1v2ray", //通过路径分流
"dest": 2002, //分流后转给Xray-plugin或v2ray-plugin监听端口
"xver": 0 //关闭PROXY protocol发送,不发送真实来源IP和端口给如下SS+v2ray-plugin应用。另默认为0,此条参数可以省略不写。
}
]
},
"streamSettings": {
"network": "tcp",
"security": "xtls", //如启用xtls,tls必须改成xtls;否则恢复tls。
"xtlsSettings": { //如启用xtls,tlsSettings必须改成xtlsSettings;否则恢复tlsSettings。
"alpn":[
"h2", //启用h2连接,web回落也需配置支持h2回落;否则不一致(裸奔),容易被墙探测出,从而被封。
"http/1.1" //启用http/1.1连接,web回落也需配置支持http/1.1回落;否则不一致(裸奔),容易被墙探测出,从而被封。
],
"minVersion": "1.2", //最低tls版本设置,Xray v1.1.4版及以后支持(可选项参数,可以不配置。)。目前v2ray不支持,若使用v2ray做服务端必须删除此项参数。
"preferServerCipherSuites": true, //首选服务端密码套件开关(与下面密码套件配合),Xray v1.1.4版及以后支持(可选项参数,可以不配置。)。目前v2ray不支持,若使用v2ray做服务端必须删除此项参数。
"cipherSuites": "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256", //密码套件,Xray v1.1.4版及以后支持(可选项参数,可以不配置。)。目前v2ray不支持,若使用v2ray做服务端必须删除此项参数。
"certificates": [
{
"ocspStapling": 3600, //ocspStapling检查更新时间间隔。Xray v1.2.0版及以后支持(可选项参数,可以不配置。)。目前v2ray不支持,若使用v2ray做服务端必须删除此项参数。
"certificateFile": "/home/tls/xx.yy/xx.yy.crt", //换成自己的证书,绝对路径。
"keyFile": "/home/tls/xx.yy/xx.yy.key" //换成自己的密钥,绝对路径。
}
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2001, //vless+ws监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "048e0bf2-dd56-11e9-aa37-5600024c1d6a", //修改成自己的UUID
"email": "[email protected]"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/HALdGZ9k" //修改成自己的path
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2002, //Xray-plugin或v2ray-plugin监听端口
"protocol": "dokodemo-door",
"settings": {
"address": "v1.mux.cool",
"network": "tcp",
"followRedirect": false
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/SS1v2ray" //修改成自己的path
}
},
"tag": "ddws", //标签,与routing中标签对应。
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2003, //监听端口
"protocol": "shadowsocks",
"settings": {
"email": "[email protected]",
"method": "chacha20-ietf-poly1305",
"password": "diy2003", //修改成自己的密码
"ota": false,
"network": "tcp,udp"
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2005, //vless+h2c监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "048e0bf2-dd56-11e9-aa37-5600024c1d6a", //修改成自己的UUID
"email": "[email protected]"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "h2",
"security": "none",
"httpSettings": {
"path": "/SeuW56Es" //修改成自己的path
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2009, //vless+grpc监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "058e0bf3-dd56-11e9-aa37-5600024c1d6a", //修改成自己的UUID
"email": "[email protected]"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "grpc",
"security": "none",
"grpcSettings": {
"serviceName": "cdngrpc" //服务路径,相当于HTTP/2与WebSocket中的Path。修改成自己的服务路径。
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"port": 2053, //监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "0a652466-dd56-11e9-aa37-5600024c1d6a", //修改成自己的UUID
"email": "[email protected]"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "kcp",
"security": "none",
"kcpSettings": {
"congestion": true, //启用拥塞控制
"seed": "60VoqhfjP79nBQyU" //seed密码,修改成自己的。
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"ddws" //与inbounds中标签对应
],
"outboundTag": "ssrr" //与outbounds中标签对应
},
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "ssrr", //标签,与routing中标签对应。
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:2003" //转发给本地2003端口
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}