-
Notifications
You must be signed in to change notification settings - Fork 19
/
config-template.json
99 lines (99 loc) · 1.99 KB
/
config-template.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
{
"route": {
"geoip": {
"path": "geo-assets\\\\sagernet-sing-geoip-geoip.db"
},
"geosite": {
"path": "geo-assets\\\\sagernet-sing-geosite-geosite.db"
},
"rules": [
{
"inbound": "dns-in",
"outbound": "dns-out"
},
{
"port": 53,
"outbound": "dns-out"
},
{
"clash_mode": "Direct",
"outbound": "direct"
},
{
"clash_mode": "Global",
"outbound": "select"
}
],
"auto_detect_interface": true,
"override_android_vpn": true
},
"outbounds": [
{
"type": "selector",
"tag": "select",
"outbounds": [
"auto",
"IP-> Your IP address",
"IP-> Main"
],
"default": "auto"
},
{
"type": "urltest",
"tag": "auto",
"outbounds": [
"IP-> Your IP address",
"IP-> Main"
],
"url": "http://cp.cloudflare.com/",
"interval": "10m0s"
},
{
"type": "wireguard",
"tag": "IP-> Your IP address",
"local_address": [
"172.16.0.2/32",
"[ipv6]"
],
"private_key": "[private_key]",
"server": "ip",
"server_port": ["port"],
"peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"reserved": ["reserved"],
"mtu": 1280,
"fake_packets": "5-10"
},
{
"type": "wireguard",
"tag": "IP-> Main",
"detour": "IP-> Your IP address",
"local_address": [
"172.16.0.2/32",
"ipv6"
],
"private_key": "private",
"server": "[ip]",
"server_port": ["port"],
"peer_public_key": "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
"reserved": ["reserved"],
"mtu": 1280,
"fake_packets": "5-10"
},
{
"type": "dns",
"tag": "dns-out"
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "direct",
"tag": "bypass"
},
{
"type": "block",
"tag": "block"
}
]
}