forked from lxhao61/integrated-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
2_v2ray_config.json
111 lines (111 loc) · 2.6 KB
/
2_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
{
"log": {
"loglevel": "warning",
"error": "/var/log/xray/error.log", //若使用V2Ray,此处目录名称xray改成v2ray。
"access": "/var/log/xray/access.log" //若使用V2Ray,此处目录名称xray改成v2ray。
},
"inbounds": [
{
"listen": "/dev/shm/vws.sock", //vmess+ws监听进程
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "21376258-dd56-11e9-aa37-5600024c1d6a", //修改为自己的UUID
"email": "[email protected]"
}
]
},
"streamSettings": {
"network": "ws",
"security": "none",
"wsSettings": {
"path": "/HALdGZ9k" //修改为自己的path
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"listen": "127.0.0.1", //只监听本机,避免本机外的机器探测到下面端口。
"port": 2011, //shadowsocks+grpc监听端口
"protocol": "shadowsocks",
"settings": {
"method": "chacha20-ietf-poly1305",
"password": "diy2011", //修改为自己的密码
"email": "[email protected]"
},
"streamSettings": {
"network": "grpc",
"security": "none",
"grpcSettings": {
"serviceName": "SALdGZ9k" //修改为自己的gRPC服务名称,类似于HTTP/2中的Path。
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
{
"port": 2052, //监听端口
"protocol": "vless",
"settings": {
"clients": [
{
"id": "0a652466-dd56-11e9-aa37-5600024c1d6a", //修改为自己的UUID
"email": "[email protected]"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "kcp",
"security": "none",
"kcpSettings": {
"uplinkCapacity": 100,
"downlinkCapacity": 100,
"congestion": true, //启用拥塞控制
"seed": "60VoqhfjP79nBQyU" //修改为自己的seed密码
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
],
"routing": {
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}