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 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
| mixed-port: 1080
allow-lan: true bind-address: "*" authentication: - "yuban10703:yuban10703" skip-auth-prefixes: - 127.0.0.1/8 - ::1/128 - 10.1.1.0/24 - 172.16.0.0/24 lan-allowed-ips: - 0.0.0.0/0 - ::/0 lan-disallowed-ips:
find-process-mode: off
mode: rule
geodata-loader: memconservative geodata-mode: false
geox-url: geoip: "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat" geosite: "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat" mmdb: "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb" asn: "https://github.com/xishang0128/geoip/releases/download/latest/GeoLite2-ASN.mmdb"
geo-auto-update: true geo-update-interval: 24
log-level: debug
ipv6: true
tls:
external-controller: 0.0.0.0:9090 external-controller-tls: 0.0.0.0:9443 secret: "yuban10703"
external-controller-cors: allow-origins: - "*" allow-private-network: true
unified-delay: true tcp-concurrent: true
external-ui: /root/.config/mihomo/ui external-ui-name: mihomo external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
external-doh-server:
interface-name:
global-client-fingerprint:
disable-keep-alive: false keep-alive-interval: 20 keep-alive-idle: 20
experimental:
hosts:
profile: store-selected: true
store-fake-ip: true
tun: enable: false stack: system dns-hijack: - "any:53" - "tcp://any:53" auto-route: true mtu: 9000 auto-redirect: false
sniffer: enable: true override-destination: true
sniff: HTTP: ports: [ 80, 8080-8880 ] override-destination: true TLS: ports: [ 443, 8443 ] QUIC: ports: [ 443, 8443 ] skip-domain: - "Mijia Cloud" - "+.push.apple.com"
dns: enable: true cache-algorithm: arc prefer-h3: false listen: 0.0.0.0:53 ipv6: true enhanced-mode: redir-host use-hosts: true use-system-hosts: false respect-rules: false nameserver: - "10.1.1.1" proxy-server-nameserver: - "10.1.1.1" nameserver-policy:
"rule-set:cn_domain": "10.1.1.1" "rule-set:geolocation-!cn": "https://dns.google/dns-query#RULES&disable-ipv6=true" fallback: - tls://8.8.4.4 - tls://1.1.1.1
proxy-providers: abcabc: type: http url: "你的订阅地址" path: ./proxy_providers/abcabc.yaml interval: 7200 proxy: DIRECT header: User-Agent: - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0" health-check: enable: true url: https://www.gstatic.com/generate_204 interval: 300 timeout: 5000 lazy: true expected-status: 204 override: tfo: true mptcp: false udp: true udp-over-tcp: true down: "500 Mbps" up: "100 Mbps" ip-version: ipv4-prefer exclude-filter: "流量|到期"
proxy-groups:
- name: 默认 type: select include-all: true proxies: [ 手动选择,自动选择,香港自动,台湾自动,日本自动,新加坡自动,美国自动 ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Rocket.png"
- name: Telegram type: select proxies: [ 默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,手动选择,自动选择,DIRECT ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png"
- name: NETFLIX type: select proxies: [ 默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,手动选择,自动选择,DIRECT ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Netflix.png"
- name: Ehentai type: select include-all: true proxies: [ 默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,手动选择,自动选择,DIRECT ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Pornhub.png"
- name: AI type: select include-all: true proxies: [ 默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,手动选择,自动选择,DIRECT ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/AI.png"
- name: 国内 type: select proxies: [ DIRECT,默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,手动选择,自动选择 ] icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png"
- name: 香港自动 type: url-test include-all: true filter: "(?i)港|hk|hongkong|hong kong" tolerance: 80 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png"
- name: 台湾自动 type: url-test include-all: true filter: "(?i)台|tw|taiwan" tolerance: 80 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Taiwan.png"
- name: 日本自动 type: url-test include-all: true filter: "(?i)日|jp|japan" tolerance: 80 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png"
- name: 美国自动 type: url-test include-all: true filter: "(?i)美|us|unitedstates|united states" tolerance: 150 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/US.png"
- name: 新加坡自动 type: url-test include-all: true filter: "(?i)(新|sg|singapore)" tolerance: 80 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/SG.png"
- name: 手动选择 type: select include-all-proxies: true include-all-providers: true icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Static.png"
- name: 自动选择 type: url-test include-all-proxies: true include-all-providers: true tolerance: 200 icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png"
- name: GLOBAL type: select proxies: [ DIRECT,REJECT,手动选择,默认,香港自动,台湾自动,日本自动,新加坡自动,美国自动,自动选择 ] include-all: true icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Area.png"
rules: - IN-PORT,53,DIRECT - RULE-SET,private_ip,DIRECT,no-resolve - DOMAIN-SUFFIX,dns.google,自动选择 - IP-CIDR,8.8.8.8/32,自动选择,no-resolve - IP-CIDR,8.8.4.4/32,自动选择,no-resolve - IP-CIDR,1.1.1.1/32,自动选择,no-resolve - DOMAIN-SUFFIX,micu.hk,DIRECT - DOMAIN-KEYWORD,topik,DIRECT - RULE-SET,telegram_domain,Telegram - RULE-SET,netflix_domain,NETFLIX - RULE-SET,ehentai_domain,Ehentai - RULE-SET,ai_domain,AI - RULE-SET,cn_domain,DIRECT - RULE-SET,geolocation-!cn,默认 - RULE-SET,netflix_ip,NETFLIX - RULE-SET,telegram_ip,Telegram - RULE-SET,cn_ip,DIRECT - MATCH,默认
rule-anchor: ip: &ip { type: http, interval: 86400, behavior: ipcidr, format: mrs,proxy: 自动选择 } domain: &domain { type: http, interval: 86400, behavior: domain, format: mrs,proxy: 自动选择 } classical: &classical { type: http, interval: 86400, behavior: classical, format: yaml,proxy: 自动选择 }
rule-providers: ai_domain: type: http behavior: classical format: text url: https://ruleset.skk.moe/Clash/non_ip/ai.txt interval: 86400 proxy: 自动选择 private_domain: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs" cn_domain: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/cn.mrs" ehentai_domain: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/ehentai.mrs" telegram_domain: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/telegram.mrs" netflix_domain: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs" geolocation-!cn: <<: *domain url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-!cn.mrs"
private_ip: <<: *ip url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/private.mrs" cn_ip: <<: *ip url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/cnip.mrs" netflix_ip: <<: *ip url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/netflix.mrs" telegram_ip: <<: *ip url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/telegram.mrs"
|