forked from lxhao61/integrated-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
v2ray_SS_ws_config.json
68 lines (68 loc) · 1.83 KB
/
v2ray_SS_ws_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
{
"log": {},
"inbounds": [
{
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
}
},
{
"port": "1081",
"protocol": "http",
"settings": {}
}
],
"outbounds": [
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "xx.yy", //改成服务端配置的对应域名
"port": 443, //改成服务端配置的对应端口(如没有使用SNI分流共用端口,回落应用就是vless+tcp+tls监听端口、反代应用就是caddy或nginx等https监听端口。)
"method": "aes-128-gcm",
"password": "diy2008", //修改成自己的密码
"ota": false
}
]
},
"streamSettings": {
"security": "tls",
"network": "ws",
"wsSettings": {
"path": "/8ALdGZ9k" //改成服务端设置的对应path
}
},
"mux": {
"enabled": true, //ws类传输方式,建议开启。
"concurrency": 4 //此数据根据网络情况调整。表示4条传输进程复合一个链路发出。
}
},
{
"tag": "direct", //如果要使用路由,这个tag是一定要有的,在这里direct就是freedom的一个标号;在路由中说direct,V2Ray就知道是这里的freedom了。
"protocol": "freedom",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"outboundTag": "direct",
"domain": ["geosite:cn"] //中国大陆主流网站的域名
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:cn", //中国大陆的IP
"geoip:private" //私有地址IP,如路由器等。
]
}
]
}
}