-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.jsonc
108 lines (108 loc) · 2.36 KB
/
config.jsonc
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
{
"general":{
"prefer_ipv6": false,
"use_ipv6": false
},
"api": {
"address": "127.0.0.1",
"port": 9991
},
"log": {
"level": "trace",
"output": "leaf.log"
},
"dns": {
"bind": "192.168.50.3",
"servers": [
"8.8.8.8:53",
"8.8.4.4:53"
],
"hosts": {
"example.com": [
"192.168.0.1",
"192.168.0.2"
]
}
},
"inbounds": [
{
"protocol": "tun",
"settings": {
"name": "utun8",
"address": "10.10.0.2",
"netmask": "255.255.255.0",
"gateway": "10.10.0.1",
"mtu": 1500,
"auto": true
},
"tag": "tun_in"
},
{
"port": 1080,
"listen":"127.0.0.1",
"protocol": "socks",
"settings": {},
"tag": "socks_in"
},
{
"protocol": "trojan",
"listen": "127.0.0.1",
"port": 10086,
"settings": {
"password": "123456"
},
"tag":"torjan_in"
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"port": 7890
},
"tag": "socks_out"
},
{
"protocol": "direct",
"tag": "direct_out"
}
// {
// "protocol":"shadowsocks",
// "tag":"shadowsocks_out",
// "settings": {
// "method":"aes-gcm-128",
// "password":"123456",
// "address":"127.0.0.1",
// "port": 6666
// }
// }
],
"routes": [
{
"ip": [
"8.8.8.8/8",
"8.8.4.4/8"
],
"target": "socks_out"
},
{
"domain": [
"www.google.com"
],
"target": "socks_out"
},
{
"regexp": [
".*"
],
"target": "socks_out"
}
// {
// "regexp": [
// ".*"
// ],
// "target": "direct_out"
// }
]
}