-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathEgern.yaml
305 lines (299 loc) · 9.29 KB
/
Egern.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# 官方文档:https://book.egernapp.com
#
# Author:https://github.com/Repcz
# TG:https://t.me/QVQ_Channel
# 以 ';' 或 '#' 或 '//' 开头的配置文件行为注释行
#
# 适配 Egern 1.15.0(269)及以上 版本
#
# 最后更新时间: 2024-2-4 10:10
#
# ================
# TUN模式
vif_only: true
# 配置为一个 DNS 服务器地址的数组,这些地址可以是 IPv4 或 IPv6 地址,也可以是 "system" 来使用系统 DNS 服务器。
dns_servers: # DNS服务器
- 119.29.29.29
- 233.5.5.5
# 为特定的主机名指定 IP 地址或其他主机名,以覆盖 DNS 查询的结果
hosts: # DNS映射
"dns.alidns.com": "223.5.5.5" # https://dns.alidns.com/dns-query
"doh.pub": "1.12.12.12" # https://doh.pub/dns-query
"dot.pub": "1.12.12.12" # dot.pub:853
# Egern 将仅使用 dns_servers 中的 DNS 服务器来解析 SecureDns 中 servers 字段的域名。
# 所有其他 DNS 查询将通过 SecureDns 中配置的安全 DNS 服务器进行。
secure_dns: # 安全的DNS
servers: # 支持 DoH(以 https:// 开头)、DoT(以 tls:// 开头)和 DoQ(以 quic:// 开头)
- https://dns.alidns.com/dns-query
ecs: false # 是否启用 EDNS 客户端子网 (ECS)
public_ip_lookup_url: '' # 公网 IP 查找 URL。这个 URL 必须返回设备的公网 IP 地址。
policy_groups:
- external:
name: 手动选择
type: select
urls:
- http://your-service-provider
hidden: false
icon: https://raw.githubusercontent.com/Repcz/Tool/X/Egern/Photo/ICON/Egern.png
- select:
name: Proxy
policies:
- Auto
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Rocket.png
- auto_test:
name: Auto
policies:
- 手动选择
flatten: true
tolerance: 50
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png
- select:
name: OpenAI
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png
- select:
name: Google
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png
- select:
name: Telegram
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png
- select:
name: Twitter
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Twitter.png
- select:
name: Instagram
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Instagram.png
- select:
name: BiliBili
policies:
- DIRECT
- 香港节点
- 台湾节点
- 手动选择
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/bilibili.png
- select:
name: Global
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
- DIRECT
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png
- select:
name: Apple
policies:
- DIRECT
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple_1.png
- select:
name: Microsoft
policies:
- DIRECT
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png
- select:
name: Games
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
- DIRECT
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png
- select:
name: Streaming
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png
- select:
name: Emby
policies:
- Proxy
flatten: true
filter: ^(?=.*(.*))(?!.*((?i)邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|到期|过期|已用|联系|邮箱|工单|群|贩卖|通知|倒卖|防止|国内|🎮|(\b(GAME|USE|USED|TOTAL|EXPIRE|EMAIL|Panel)\d{0,2}\b|(\d{4}-\d{2}-\d{2}|\dG)))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Emby.png
- select:
name: Final
policies:
- Proxy
- 香港节点
- 美国节点
- 狮城节点
- 日本节点
- 台湾节点
- DIRECT
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png
- select:
name: 香港节点
policies:
- 手动选择
flatten: true
filter: ^(?=.*((?i)🇭🇰|香港|(\b(HK|Hong)\b)))(?!.*((?i)回国|校园|游戏|(\b(GAME)\b))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png
- select:
name: 美国节点
policies:
- 手动选择
flatten: true
filter: ^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|United States)\b)))(?!.*((?i)回国|校园|游戏|(\b(GAME)\b))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png
- select:
name: 狮城节点
policies:
- 手动选择
flatten: true
filter: ^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)))(?!.*((?i)回国|校园|游戏|(\b(GAME)\b))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png
- select:
name: 日本节点
policies:
- 手动选择
flatten: true
filter: ^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|Japan)\b)))(?!.*((?i)回国|校园|游戏|(\b(GAME)\b))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png
- select:
name: 台湾节点
policies:
- 手动选择
flatten: true
filter: ^(?=.*((?i)🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b)))(?!.*((?i)回国|校园|游戏|(\b(GAME)\b))).*$
icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png
rules:
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/APNs.yaml
policy: DIRECT
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Reject.yaml
policy: REJECT
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/OpenAI.yaml
policy: OpenAI
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/OneDrive.yaml
policy: Microsoft
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Microsoft.yaml
policy: Microsoft
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Github.yaml
policy: Google
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/YouTube.yaml
policy: Google
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Google.yaml
policy: Google
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Telegram.yaml
policy: Telegram
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Twitter.yaml
policy: Twitter
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Facebook.yaml
policy: Twitter
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Game.yaml
policy: Games
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Emby.yaml
policy: Emby
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Bahamut.yaml
policy: 台湾节点
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Disney.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/HBO.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Netflix.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Spotify.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/PrimeVideo.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/TikTok.yaml
policy: Streaming
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/ProxyGFW.yaml
policy: Global
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Apple.yaml
policy: Apple
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Bilibili.yaml
policy: BiliBili
- rule_set:
match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Lan.yaml
policy: DIRECT
- geoip:
match: CN
policy: DIRECT
- default:
policy: Final
mitm:
enabled: true