-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yaml
218 lines (186 loc) · 5.44 KB
/
config.yaml
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
# HTTP(S) and SOCKS5 server on the same port
mixed-port: 7891
# Port of SOCKS5 proxy server on the local end
socks-port: 1080
# Transparent proxy server port for Linux and macOS
redir-port: 17891
allow-lan: true
bind-address: "*"
mode: rule
# rule / global / direct (default is rule)
log-level: silent
# info / warning / error / debug / silent
external-controller: 0.0.0.0:7892
external-ui: yacd-gh-pages
secret: ""
dns:
enable: true
listen: 0.0.0.0:1053
ipv6: false
# These nameservers are used to resolve the DNS nameserver hostnames below Specify IP addresses only
default-nameserver:
- 114.114.114.114
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16 # Fake IP addresses pool CIDR
fake-ip-filter:
- '*.lan'
- localhost.ptlogin2.qq.com
nameserver:
- 114.114.114.114 # default value
proxies:
# Trojan 自建节点 1
- name: Trojan01
type: trojan
server: game.ml # 替换为你自己的 (共2处,第1处)
port: 443
password: pig9o9 # 替换为你自己的 (共2处,第2处)
udp: true
# Trojan 自建节点 2
- name: Trojan02
type: trojan
server: abc.ml # 替换为你自己的 (共2处,第1处)
port: 443
password: abcdefg # 替换为你自己的 (共2处,第2处)
udp: true
# V2ray 自建节点 1 Vmess+TLS+Websocket 方式
- name: V2ray01
type: vmess
server: game.ml # 替换为你自己的 (共3处,第1处)
port: 443
uuid: b0983552-5382-4a6c-b5d3-59b9cf90cfe6 # 替换为你自己的 (共3处,第2处)
alterId: 2
cipher: auto
udp: true
tls: true
skip-cert-verify: false
network: ws
ws-path: /0ec3 # 替换为你自己的 (共3处,第3处)
# V2ray 自建节点 2 Vmess+TLS+Websocket 方式
- name: V2ray02
type: vmess
server: game.ml # 替换为你自己的 (共3处,第1处)
port: 443
uuid: b0983552-5382-4a6c-b5d3-59b9cf90cfe6 # 替换为你自己的 (共3处,第2处)
alterId: 2
cipher: auto
udp: true
tls: true
skip-cert-verify: false
network: ws
ws-path: /0ec3 # 替换为你自己的 (共3处,第3处)
# V2ray 搬瓦工 Just My Socks V2ray节点 1
- name: v3
type: vmess
server: abc3.jamjams.net # 替换为你自己的 (共3处,第1处)
port: 8077 # 替换为你自己的 (共3处,第2处)
uuid: 4d76b58d-ca9d-41a7-81a5-55fe6f37e40a # 替换为你自己的 (共3处,第3处)
alterId: 2
cipher: auto
udp: true
skip-cert-verify: false
network: tcp
# V2ray 搬瓦工 Just My Socks V2ray节点 2
- name: v4
type: vmess
server: abc4.jamjams.net # 替换为你自己的 (共3处,第1处)
port: 8077 # 替换为你自己的 (共3处,第2处)
uuid: 4d76b58d-ca9d-41a7-81a5-55fe6f37e40a # 替换为你自己的 (共3处,第3处)
alterId: 2
cipher: auto
udp: true
skip-cert-verify: false
network: tcp
# V2ray 搬瓦工 Just My Socks V2ray节点 3
- name: v5
type: vmess
server: abc5.jamjams.net # 替换为你自己的 (共3处,第1处)
port: 8077 # 替换为你自己的 (共3处,第2处)
uuid: 4d76b58d-ca9d-41a7-81a5-55fe6f37e40a # 替换为你自己的 (共3处,第3处)
alterId: 2
cipher: auto
udp: true
skip-cert-verify: false
network: tcp
proxy-groups:
- name: "Fast"
type: url-test # url-test 表示自动切换最快节点
proxies:
- Trojan01
- Trojan02
- V2ray01
- V2ray02
- v3
- v4
- v5
url: 'https://www.gstatic.com/generate_204'
interval: 300
- name: "FuckWall"
type: select # select 表示手动选择节点
proxies:
- Fast
- Trojan01
- Trojan02
- V2ray01
- V2ray02
- v3
- v4
- v5
rule-providers:
reject:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml
interval: 86400
apple:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml
interval: 86400
google:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml
interval: 86400
proxy:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml
interval: 86400
direct:
type: file
behavior: domain
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml
interval: 86400
cncidr:
type: file
behavior: ipcidr
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml
interval: 86400
lancidr:
type: file
behavior: ipcidr
# url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml
interval: 86400
rules:
# - RULE-SET,reject,REJECT
# - RULE-SET,icloud,DIRECT
# - RULE-SET,apple,DIRECT
# - RULE-SET,google,DIRECT
# - RULE-SET,proxy,FuckWall
- RULE-SET,direct,DIRECT
# - RULE-SET,lancidr,DIRECT,no-resolve
# - RULE-SET,cncidr,DIRECT,no-resolve
- MATCH,FuckWall