Files
openclash_rules_online/MyRules.yaml
T
2026-06-20 21:37:02 +00:00

317 lines
8.3 KiB
YAML

# ====================================================================
# Mihomo (Clash Meta) 标准 YAML 模板
# 由 OpenClash ini 格式转换而来,供 Sub-Store「文件管理」自定义模板使用
# ====================================================================
# ---------------------------------------------------------------
# 节点来源:在 Sub-Store 中,这个模板会自动注入你订阅/节点里的代理
# 下面这行是占位标记,Sub-Store 处理时会把实际节点列表替换/合并进来
# ---------------------------------------------------------------
proxies: []
proxy-groups:
- name: "🎯 总模式"
type: select
proxies:
- "♻️ 手动切换"
- DIRECT
- name: "♻️ 手动切换"
type: select
proxies: [] # Sub-Store 会自动填充全部节点
- name: "Ⓜ️ 延迟最低"
type: url-test
proxies: [] # Sub-Store 会自动填充全部节点
url: http://www.apple.com/library/test/success.html
interval: 300
tolerance: 100
- name: "🍎 苹果服务"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "🧩 微软服务"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "📲 聊天软件"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🤖 AI服务"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "📹 YouTube"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🎥 NETFLIX"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🎦 HBOMAX"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🎞️ DISNEYPlus"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🎶 TikTok"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🔍 谷歌服务"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🎮 游戏平台"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "⛩ 日韩媒体"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🌏 港台媒体"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🌍 国外媒体"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🌐 全球直连"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "🇺🇳 国外网站"
type: select
proxies:
- "🎯 总模式"
- "♻️ 手动切换"
- DIRECT
- name: "🇨🇳 国内网站"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "📼 个人直播"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "🌍 自有地址"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "👠 懂的都懂"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "🐟 漏网之鱼"
type: select
proxies:
- DIRECT
- "🎯 总模式"
- "♻️ 手动切换"
- name: "⛔ 广告拦截"
type: select
proxies:
- REJECT
- DIRECT
# ---------------------------------------------------------------
# 远程规则集 (对应原 ruleset= 里引用的外部 .list / .yaml 文件)
# ---------------------------------------------------------------
rule-providers:
steam_cdn:
type: http
behavior: classical
url: "https://gitea.kelvingc.com/kelvingc/OpenClash_Rules_Online/raw/branch/main/Rules/steam_cdn.list"
path: ./ruleset/steam_cdn.list
interval: 86400
steam_store:
type: http
behavior: classical
url: "https://gitea.kelvingc.com/kelvingc/OpenClash_Rules_Online/raw/branch/main/Rules/steam_store.list"
path: ./ruleset/steam_store.list
interval: 86400
ad_allow:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/AyraHikari/openclash_adguard/main/rules/adguard_allow.yaml"
path: ./ruleset/ad_allow.yaml
interval: 43200
ad_block:
type: http
behavior: classical
url: "https://raw.githubusercontent.com/AyraHikari/openclash_adguard/main/rules/adguard_block.yaml"
path: ./ruleset/ad_block.yaml
interval: 43200
h_list:
type: http
behavior: classical
url: "https://gitea.kelvingc.com/kelvingc/OpenClash_Rules_Online/raw/branch/main/Rules/H.list"
path: ./ruleset/h_list.list
interval: 86400
stream_list:
type: http
behavior: classical
url: "https://gitea.kelvingc.com/kelvingc/OpenClash_Rules_Online/raw/branch/main/Rules/Stream.list"
path: ./ruleset/stream_list.list
interval: 86400
my_domain:
type: http
behavior: classical
url: "https://gitea.kelvingc.com/kelvingc/OpenClash_Rules_Online/raw/branch/main/Rules/MyDomain.list"
path: ./ruleset/my_domain.list
interval: 86400
# ---------------------------------------------------------------
# 规则 (对应原 ruleset= 行,顺序与原配置严格保持一致)
# ---------------------------------------------------------------
rules:
# 一、直播平台直连特赦 (最高优先级)
- DOMAIN-SUFFIX,ringringlu.com,🌐 全球直连
- IP-CIDR,45.78.67.21/32,🌐 全球直连,no-resolve
# 二、广告拦截层 (allow 必须在 block 之前)
- RULE-SET,ad_allow,⛔ 广告拦截
- RULE-SET,ad_block,⛔ 广告拦截
# 三、本地与特殊直连层
- DOMAIN-SUFFIX,dmit.io,🌐 全球直连
- DOMAIN-SUFFIX,kelvingc.com,🌐 全球直连
- DOMAIN-SUFFIX,jsdelivr.net,🌐 全球直连
- GEOSITE,private,🌐 全球直连
- GEOIP,private,🌐 全球直连,no-resolve
- GEOSITE,google-cn,🌐 全球直连
- GEOSITE,category-games@cn,🌐 全球直连
# 四、精准自定义与下载直连层
- RULE-SET,steam_cdn,🌐 全球直连
- GEOSITE,category-game-platforms-download,🌐 全球直连
- GEOSITE,category-public-tracker,🌐 全球直连
# 五、基础大厂与特殊服务层
- GEOSITE,github,🎯 总模式
- GEOSITE,apple,🍎 苹果服务
- GEOSITE,microsoft,🧩 微软服务
- GEOSITE,openai,🤖 AI服务
- GEOSITE,category-ai-!cn,🤖 AI服务
# Steam 商店/社区 - 必须放在 GEOSITE,steam 之前
- RULE-SET,steam_store,🎮 游戏平台
- GEOSITE,steam,🎮 游戏平台
- GEOSITE,category-games,🎮 游戏平台
# 六、垂直高频流媒体层
- GEOSITE,youtube,📹 YouTube
- GEOSITE,netflix,🎥 NETFLIX
- GEOSITE,hbo,🎦 HBOMAX
- GEOSITE,disney,🎞️ DISNEYPlus
- GEOSITE,tiktok,🎶 TikTok
# 日韩媒体
- DOMAIN-SUFFIX,niconico.jp,⛩ 日韩媒体
- GEOSITE,abema,⛩ 日韩媒体
- GEOSITE,pixiv,⛩ 日韩媒体
- GEOSITE,dmm,⛩ 日韩媒体
# 港台媒体与国外综合媒体
- GEOSITE,bahamut,🌏 港台媒体
- GEOSITE,category-entertainment,🌍 国外媒体
# 七、社交聊天层
- DOMAIN-KEYWORD,beetalk,📲 聊天软件
- GEOSITE,category-communication,📲 聊天软件
- GEOSITE,category-social-media-!cn,📲 聊天软件
# 八、大包围国外网站层
- GEOSITE,google,🔍 谷歌服务
- GEOSITE,gfw,🇺🇳 国外网站
- GEOSITE,geolocation-!cn,🇺🇳 国外网站
# 九、特殊私有与国内大包围兜底层
- RULE-SET,h_list,👠 懂的都懂
- RULE-SET,stream_list,📼 个人直播
- RULE-SET,my_domain,🌍 自有地址
# 大厂原生流媒体 IP 兜底
- GEOIP,netflix,🎥 NETFLIX,no-resolve
# 聊天软件纯 IP 握手兜底
- GEOIP,telegram,📲 聊天软件,no-resolve
- GEOIP,twitter,📲 聊天软件,no-resolve
- GEOIP,facebook,📲 聊天软件,no-resolve
# 大陆本地大包围直连与真兜底
- GEOSITE,cn,🇨🇳 国内网站
- GEOIP,cn,🇨🇳 国内网站,no-resolve
- MATCH,🐟 漏网之鱼