Create mihomo1.yaml

This commit is contained in:
Salem
2024-09-26 13:22:58 +08:00
committed by GitHub
parent 6d0ef7dcbd
commit 5b993da27f
+291
View File
@@ -0,0 +1,291 @@
# yyhhyyyyyy的Mihomo内核配置
# 日期:2024-09-3
# 版本:1.1
# 说明:本份配置是以ruleset为主,而不是以geo系列为主,如果使用geo系列的可以不用往下看啦
# 本份配置是以sukkaw_ruleset为主,也是以狐狐的思路进行编辑规则集的
# 参考:https://github.com/Rabbit-Spec/Clash/blob/Master/Yaml/Clash_Pro.yaml
# https://blog.skk.moe/post/i-have-my-unique-surge-setup
# https://blog.skk.moe/tags/DNS/
# https://wiki.metacubex.one/
# 感谢: 狐狐🦊,以及愿意耐心给予我帮助的各位
mixed-port: 7890
allow-lan: true
unified-delay: true
tcp-concurrent: true
external-controller: 0.0.0.0:9090
### 如果使用的是裸核,需要将下面的注释去掉,方便ui界面的使用
# external-ui: ui
# external-ui-url: 'https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip'
find-process-mode: strict
global-client-fingerprint: chrome
profile:
store-selected: true
store-fake-ip: true
sniffer:
enable: 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"
tun:
enable: true
stack: system
device: mihomo
dns-hijack:
- any:53
- tcp://any:53
auto-route: true
auto-detect-interface: true
strict-route: true
dns:
enable: true
ipv6: false
prefer-h3: true
respect-rules: true
enhanced-mode: fake-ip
fake-ip-range: 28.0.0.1/8
nameserver:
- system
- https://223.5.5.5/dns-query
proxy-server-nameserver:
- https://120.53.53.53/dns-query
- https://223.5.5.5/dns-query
mode: rule
log-level: warning
ipv6: false
udp: true
# 锚点 - 节点订阅的参数 [每24小时更新一次订阅节点,每 60 秒一次健康检查]
NodeParam: &NodeParam {type: http, interval: 86400, health-check: {enable: true, url: 'http://connectivitycheck.platform.hicloud.com/generate_204', interval: 60}}
# 锚点 - 节点订阅
proxy-providers:
我的节点:
url: 'https://dadada.acaisbest.com/api/v1/client/subscribe?token=4d4e8c97ccd9f8defb788e8b838eb5e9'
<<: *NodeParam
path: './proxy_provider/providers.yaml'
# 锚点 - 节点筛选组
FilterHK: &FilterHK '^(?=.*((?i)🇭🇰|香港|(\b(HK|Hong)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterJP: &FilterJP '^(?=.*((?i)🇯🇵|日本|川日|东京|大阪|泉日|埼玉|(\b(JP|Japan)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterKR: &FilterKR '^(?=.*((?i)🇰🇷|韩国|韓|首尔|(\b(KR|Korea)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterSG: &FilterSG '^(?=.*((?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterUS: &FilterUS '^(?=.*((?i)🇺🇸|美国|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|(\b(US|United States)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterUK: &FilterUK '^(?=.*((?i)🇬🇧|英国|伦敦|(\b(UK|United Kingdom)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterFR: &FilterFR '^(?=.*((?i)🇫🇷|法国|(\b(FR|France)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterDE: &FilterDE '^(?=.*((?i)🇩🇪|德国|(\b(DE|Germany)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterTW: &FilterTW '^(?=.*((?i)🇹🇼|台湾|(\b(TW|Taiwan)\b)))^(?!.*(网站|地址|剩余|过期|时间|有效|网址|禁止|邮箱|发布|客服|订阅|节点)).*$'
FilterOthers: &FilterOthers '^(?!.*(🇭🇰|HK|hk|香港|港|HongKong|🇹🇼|TW|tw|台湾|臺灣|台|Taiwan|🇯🇵|JP|jp|日本|日|Japan|🇸🇬|SG|sg|新加坡|狮|Singapore|🇺🇸|US|us|美国|美|United States|🇩🇪|DE|de|德国|德|Germany|🇬🇧|GB|gb|英国|英|United Kingdom|🇰🇷|KR|kr|韩国|韩|South Korea|🇫🇷|FR|fr|法国|法|France)).*$'
FilterAll: &FilterAll '^(?=.*(.))(?!.*((?i)群|邀请|返利|循环|官网|客服|网站|网址|获取|订阅|流量|到期|机场|下次|版本|官址|备用|过期|已用|联系|邮箱|工单|贩卖|通知|倒卖|防止|国内|地址|频道|无法|说明|使用|提示|特别|访问|支持|教程|关注|更新|作者|加入|(\b(USE|USED|TOTAL|EXPIRE|EMAIL|Panel|Channel|Author)\b|(\d{4}-\d{2}-\d{2}|\d+G)))).*$'
# 策略组参数锚点
# 锚点 - 手动选择参数
Select: &Select {type: select, url: 'http://connectivitycheck.platform.hicloud.com/generate_204', disable-udp: false, hidden: false, include-all: true}
# 策略组
proxy-groups:
- {name: 🎯 节点选择, type: select, proxies: [🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点, DIRECT]}
- {name: 🍎 苹果服务, type: select, proxies: [DIRECT, 🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点]}
- {name: 🤖 AIGC, type: select, proxies: [🇺🇸 美国节点, 🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点, DIRECT]}
- {name: ✈️ 电报信息, type: select, proxies: [🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点]}
- {name: Ⓜ️ 微软服务, type: select, proxies: [DIRECT, 🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点]}
- {name: 🎧 网易云, type: select, proxies: [DIRECT, 🇭🇰 香港节点, 🇯🇵 日本节点, 🇰🇷 韩国节点, 🇸🇬 新加坡节点, 🇺🇸 美国节点, 🇬🇧 英国节点, 🇫🇷 法国节点, 🇩🇪 德国节点, 🇹🇼 台湾节点]}
- {name: 🇭🇰 香港节点, <<: *Select, filter: *FilterHK}
- {name: 🇯🇵 日本节点, <<: *Select, filter: *FilterJP}
- {name: 🇰🇷 韩国节点, <<: *Select, filter: *FilterKR}
- {name: 🇸🇬 新加坡节点, <<: *Select, filter: *FilterSG}
- {name: 🇺🇸 美国节点, <<: *Select, filter: *FilterUS}
- {name: 🇬🇧 英国节点, <<: *Select, filter: *FilterUK}
- {name: 🇫🇷 法国节点, <<: *Select, filter: *FilterFR}
- {name: 🇩🇪 德国节点, <<: *Select, filter: *FilterDE}
- {name: 🇹🇼 台湾节点, <<: *Select, filter: *FilterTW}
- {name: Others, <<: *Select, filter: *FilterOthers}
- {name: AllIn, <<: *Select, filter: *FilterAll}
# 锚点 - 规则参数 [每12小时更新一次订阅规则,更新规则时使用(🎯 节点选择)策略]
RuleSet_classical: &RuleSet_classical {type: http, behavior: classical, interval: 43200, format: text, proxy: 🎯 节点选择}
RuleSet_domain: &RuleSet_domain {type: http, behavior: domain, interval: 43200, format: text, proxy: 🎯 节点选择}
RuleSet_ipcidr: &RuleSet_ipcidr {type: http, behavior: ipcidr, interval: 43200, format: text, proxy: 🎯 节点选择}
# 订阅规则
rule-providers:
reject_non_ip_no_drop:
<<: *RuleSet_classical
url: 'https://ruleset.skk.moe/Clash/non_ip/reject-no-drop.txt'
path: './rule_set/sukkaw_ruleset/reject_non_ip_no_drop.txt'
reject_non_ip_drop:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/reject-drop.txt
path: ./rule_set/sukkaw_ruleset/reject_non_ip_drop.txt
reject_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/reject.txt
path: ./rule_set/sukkaw_ruleset/reject_non_ip.txt
reject_domainset:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/domainset/reject.txt
path: ./rule_set/sukkaw_ruleset/reject_domainset.txt
reject_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/reject.txt
path: ./rule_set/sukkaw_ruleset/reject_ip.txt
cdn_domainset:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/domainset/cdn.txt
path: ./rule_set/sukkaw_ruleset/cdn_domainset.txt
cdn_non_ip:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/non_ip/cdn.txt
path: ./rule_set/sukkaw_ruleset/cdn_non_ip.txt
# 所有流媒体(包括上述所有流媒体)
stream_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/stream.txt
path: ./rule_set/sukkaw_ruleset/stream_non_ip.txt
stream_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/stream.txt
path: ./rule_set/sukkaw_ruleset/stream_ip.txt
ai_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/ai.txt
path: ./rule_set/sukkaw_ruleset/ai_non_ip.txt
telegram_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/telegram.txt
path: ./rule_set/sukkaw_ruleset/telegram_non_ip.txt
telegram_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/telegram.txt
path: ./rule_set/sukkaw_ruleset/telegram_ip.txt
apple_cdn:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/domainset/apple_cdn.txt
path: ./rule_set/sukkaw_ruleset/apple_cdn.txt
apple_services:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/apple_services.txt
path: ./rule_set/sukkaw_ruleset/apple_services.txt
apple_cn_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/apple_cn.txt
path: ./rule_set/sukkaw_ruleset/apple_cn_non_ip.txt
microsoft_cdn_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/microsoft_cdn.txt
path: ./rule_set/sukkaw_ruleset/microsoft_cdn_non_ip.txt
microsoft_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/microsoft.txt
path: ./rule_set/sukkaw_ruleset/microsoft_non_ip.txt
neteasemusic_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/neteasemusic.txt
path: ./rule_set/sukkaw_ruleset/neteasemusic_non_ip.txt
neteasemusic_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/neteasemusic.txt
path: ./rule_set/sukkaw_ruleset/neteasemusic_ip.txt
# 软件更新、操作系统等大文件下载
download_domainset:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/domainset/download.txt
path: ./rule_set/sukkaw_ruleset/download_domainset.txt
download_non_ip:
<<: *RuleSet_domain
url: https://ruleset.skk.moe/Clash/non_ip/download.txt
path: ./rule_set/sukkaw_ruleset/download_non_ip.txt
# 内网域名和局域网 IP
lan_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/lan.txt
path: ./rule_set/sukkaw_ruleset/lan_non_ip.txt
lan_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/lan.txt
path: ./rule_set/sukkaw_ruleset/lan_ip.txt
domestic_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/domestic.txt
path: ./rule_set/sukkaw_ruleset/domestic_non_ip.txt
direct_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/direct.txt
path: ./rule_set/sukkaw_ruleset/direct_non_ip.txt
global_non_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/non_ip/global.txt
path: ./rule_set/sukkaw_ruleset/global_non_ip.txt
domestic_ip:
<<: *RuleSet_classical
url: https://ruleset.skk.moe/Clash/ip/domestic.txt
path: ./rule_set/sukkaw_ruleset/domestic_ip.txt
china_ip:
<<: *RuleSet_ipcidr
url: https://ruleset.skk.moe/Clash/ip/china_ip.txt
path: ./rule_set/sukkaw_ruleset/china_ip.txt
# 分流规则
rules:
### 非 IP 类规则
- RULE-SET,reject_non_ip,REJECT
- RULE-SET,reject_domainset,REJECT
- RULE-SET,reject_non_ip_drop,REJECT-DROP
- RULE-SET,reject_non_ip_no_drop,REJECT
- RULE-SET,cdn_domainset,🎯 节点选择
- RULE-SET,cdn_non_ip,🎯 节点选择
- RULE-SET,stream_non_ip,🇺🇸 美国节点
- RULE-SET,telegram_non_ip,✈️ 电报信息
- RULE-SET,apple_cdn,DIRECT
- RULE-SET,download_domainset,🎯 节点选择
- RULE-SET,download_non_ip,🎯 节点选择
- RULE-SET,microsoft_cdn_non_ip,DIRECT
- RULE-SET,apple_cn_non_ip,DIRECT
- RULE-SET,apple_services,🍎 苹果服务
- RULE-SET,microsoft_non_ip,Ⓜ️ 微软服务
- RULE-SET,ai_non_ip,🤖 AIGC
- RULE-SET,global_non_ip,🎯 节点选择
- RULE-SET,neteasemusic_non_ip,🎧 网易云
- RULE-SET,domestic_non_ip,DIRECT
- RULE-SET,direct_non_ip,DIRECT
- RULE-SET,lan_non_ip,DIRECT
### IP 类规则
- RULE-SET,reject_ip,REJECT
- RULE-SET,telegram_ip,✈️ 电报信息
- RULE-SET,stream_ip,🇺🇸 美国节点
- RULE-SET,neteasemusic_ip,🎧 网易云
- RULE-SET,lan_ip,DIRECT
- RULE-SET,domestic_ip,DIRECT
- RULE-SET,china_ip,DIRECT
- MATCH,🎯 节点选择