-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta_global.yaml
160 lines (140 loc) · 5.29 KB
/
meta_global.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
mixed-port: 7890
allow-lan: false
bind-address: "*"
mode: rule
log-level: info
ipv6: true
unified-delay: false
tcp-concurrent: true
external-controller: 0.0.0.0:9090
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
geo-auto-update: true # 是否自动更新 geodata
geo-update-interval: 72 # 更新间隔,单位:小时
# 更改geoip使用文件,mmdb或者dat,true为dat
geodata-mode: true
geodata-loader: standard
geox-url:
geoip: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat"
geosite: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
mmdb: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb"
find-process-mode: strict
global-client-fingerprint: chrome
profile:
store-selected: true
# 储存 API 对策略组的选择,以供下次启动时使用
store-fake-ip: true
# 储存 fakeip 映射表,域名再次发生连接时,使用原有映射地址
sniffer: #【Meta专属】sniffer域名嗅探器
enable: true # 嗅探器开关
override-destination: false
sniff: # TLS 默认如果不配置 ports 默认嗅探 443
TLS:
ports: [443, 8443]
HTTP: # 需要嗅探的端口, 默认嗅探 80
ports: [80, 8080-8880]
override-destination: true # 可覆盖 sniffer.override-destination
force-domain:
- +.v2ex.com
- "+.netflix.com"
- "+.nflxvideo.net"
- "+.amazonaws.com"
- "+.media.dssott.com"
# 白名单,跳过嗅探结果
skip-domain:
- Mijia Cloud
- "+.apple.com"
- dlg.io.mi.com
dns:
cache-algorithm: arc
enable: true
ipv6: true
listen: 0.0.0.0:1053
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "*.lan"
- localhost.ptlogin2.qq.com
- +.msftconnecttest.com
- +.msftncsi.com
nameserver:
- https://1.15.50.48/verse
- https://175.178.80.157/dns-query
- 'tls://8.8.4.4#自动选择'
- 'tls://1.1.1.1#自动选择'
nameserver-policy:
"geosite:category-ads-all": rcode://success
"geosite:cn,private,microsoft@cn,apple@cn,category-games@cn":
- 119.29.29.29
- 223.5.5.5
- system
tun:
enable: true
stack: mixed
device: utun
dns-hijack:
- "any:53"
auto-route: true
auto-detect-interface: true
# 策略组引用
p: &a1 {type: http, interval: 259200, health-check: {enable: true, url: http://www.gstatic.com/generate_204, interval: 1800} }
auto: &a4 {type: url-test, lazy: true, url: http://www.gstatic.com/generate_204, interval: 900, use: [Subscribe] }
proxies: null
proxy-providers:
Subscribe:
<<: *a1
url: %your url, recommend https://my.ipv6boy.com/index.php#/register?code=OjqA2mwl
path: ./proxy_providers/temp.yaml
proxy-groups:
- {name: 国内流量, type: select, proxies: [DIRECT, 免流节点]}
- {name: 百度网盘, type: select, proxies: [DIRECT, 免流节点]}
- {name: 游戏流量, type: select, proxies: [DIRECT, 免流节点, 手动选择]}
- {name: 免流流量, type: select, proxies: [免流节点, DIRECT]}
- {name: 代理流量, type: select, proxies: [免流节点, 自动选择, 手动选择]}
- {name: 手动选择, type: select, proxies: [香港节点,日本节点,台湾节点,美国节点,狮城节点]}
#节点分组
- {name: 自动选择, <<: *a4 }
- {name: 香港节点, <<: *a4, filter: "港|HK|(?i)Hong" }
- {name: 日本节点, <<: *a4, filter: "日|东京|JP|(?i)Japan" }
- {name: 台湾节点, <<: *a4, filter: "台|湾|TW|(?i)Taiwan" }
- {name: 美国节点, <<: *a4, filter: "美|US|(?i)States|American"}
- {name: 狮城节点, <<: *a4, filter: "新|坡|SG|(?i)Singapore" }
- {name: 免流节点, <<: *a4, exclude-filter: "3x|5x|10x" }
rule-providers:
Direct:
behavior: classical
interval: 259200
path: ./ruleset/Direct.yaml
type: http
url: https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Direct/Direct.yaml
rules:
- GEOIP,private,DIRECT,no-resolve
- RULE-SET,Direct,DIRECT
- GEOSITE,category-ads-all,REJECT
- DOMAIN,time.is,DIRECT
- DOMAIN-KEYWORD,mikuclub,DIRECT
- DOMAIN-KEYWORD,hikarifield,DIRECT
- DOMAIN-KEYWORD,wenku8,DIRECT
- DOMAIN-KEYWORD,lightnovel,DIRECT
- DOMAIN-SUFFIX,dogfight360.com,代理流量
- GEOSITE,clarivate,DIRECT
- GEOSITE,sciencedirect,DIRECT
- GEOSITE,cnki,DIRECT
- GEOSITE,bilibili,免流流量
- GEOSITE,huya,免流流量
- GEOSITE,netease,免流流量
- GEOSITE,baidu,百度网盘
- GEOSITE,apple@cn,国内流量
- GEOSITE,microsoft@cn,国内流量
- GEOSITE,category-games@cn,游戏流量
- GEOSITE,bing,美国节点
- GEOSITE,openai,美国节点
- GEOSITE,anthropic,美国节点
- GEOSITE,youtube,代理流量
- GEOSITE,github,代理流量
- GEOSITE,CN,国内流量
- GEOSITE,geolocation-!cn,代理流量
- GEOIP,google,代理流量
- GEOIP,telegram,代理流量
- GEOIP,twitter,代理流量
- GEOIP,CN,国内流量
- MATCH,代理流量