优化几个地区

This commit is contained in:
yml2213
2026-08-06 17:49:02 +08:00
parent 37bbcd688b
commit df5e23cf22
+120 -261
View File
@@ -1,4 +1,4 @@
# =============================== 基础设置 =============================== yaml_content = """# =============================== 基础设置 ===============================
port: 7890 port: 7890
socks-port: 7891 socks-port: 7891
mixed-port: 7893 mixed-port: 7893
@@ -10,47 +10,16 @@ log-level: info
ipv6: true ipv6: true
unified-delay: true unified-delay: true
tcp-concurrent: true tcp-concurrent: true
#external-controller: 0.0.0.0:9090
#secret: "123465."
#可以加sniffer和tun规则
# =============================== 机场订阅 =============================== # =============================== 机场订阅 ===============================
active-subs: &u_s active-subs: &u_s
use: [机场01, 机场02] # 主力节点池p1 和新的 p2 use: [机场01, 机场02] # 主力节点池
all-nodes: &u all-nodes: &u
use: [机场01, 机场02, 机场03_备用] # 全部节点池:包含主力与备用 use: [机场01, 机场02, 机场03_备用] # 全部节点池
backup-subs: &u_b backup-subs: &u_b
use: [机场03_备用] # 容灾备用池:原来的旧 p2,仅在主力全挂时启用 use: [机场03_备用] # 容灾备用池
rtt-lb-template: &rtt-lb
type: url-test
<<: *u_s
lazy: false
interval: 180
tolerance: 15
pg-template: &pg #proxy-groups
type: select
proxies:
- ♻️ 自动选择
- 🚀 节点选择
- 🆘 故障转移
- 自动选择
- 台湾均衡加速
- 台湾故转
- 香港均衡加速
- 日本均衡加速
- 美国均衡加速
- 新加坡均衡加速
- 台湾节点
- 香港节点
- 美国节点
- 日本节点
- DIRECT
# =============================== 订阅提供者 =============================== # =============================== 订阅提供者 ===============================
p-common: &p-common p-common: &p-common
@@ -81,10 +50,9 @@ proxy-providers:
<<: *p-common <<: *p-common
filter: "^(?!(.*流量|.*10x|.*6x|.*重置|.*到期|.*建议|.*官网|.*Expire|.*套餐|.*地址|.*更新)).*$" filter: "^(?!(.*流量|.*10x|.*6x|.*重置|.*到期|.*建议|.*官网|.*Expire|.*套餐|.*地址|.*更新)).*$"
override: { additional-prefix: "p3_备用 » " } override: { additional-prefix: "p3_备用 » " }
# =============================== 节点信息 =============================== # =============================== 节点信息 ===============================
proxies: [] # ⚠️ 必须保留一个空的中括号,防止被解析为 null 报错 proxies: []
# =============================== DNS 配置 =============================== # =============================== DNS 配置 ===============================
dns: dns:
@@ -105,283 +73,172 @@ dns:
- "geosite:connectivity-check" - "geosite:connectivity-check"
- "geosite:private" - "geosite:private"
- "rule-set:fake_ip_filter_DustinWin" - "rule-set:fake_ip_filter_DustinWin"
default-nameserver: default-nameserver:
- 223.5.5.5 - 223.5.5.5
- 119.29.29.29 - 119.29.29.29
nameserver: nameserver:
- https://1.1.1.1/dns-query - https://1.1.1.1/dns-query
- https://dns.google/dns-query - https://dns.google/dns-query
- 1.1.1.1 - 1.1.1.1
- 8.8.8.8 - 8.8.8.8
nameserver-policy: nameserver-policy:
"geosite:cn": "geosite:cn,private,geo:cn":
- https://223.5.5.5/dns-query - https://223.5.5.5/dns-query
- https://doh.pub/dns-query
- 223.5.5.5
- 119.29.29.29 - 119.29.29.29
"geosite:private": "geosite:gfw,geolocation-!cn,full-nameserver":
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
- 223.5.5.5
- 119.29.29.29
"geo:cn":
- https://223.5.5.5/dns-query
- https://doh.pub/dns-query
- 223.5.5.5
- 119.29.29.29
"geosite:gfw":
- https://1.1.1.1/dns-query - https://1.1.1.1/dns-query
- https://dns.google/dns-query
- 1.1.1.1
- 8.8.8.8 - 8.8.8.8
"geosite:geolocation-!cn": "RULE-SET:cn_domain,GeositeCN_Domain":
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
- 1.1.1.1
- 8.8.8.8
"RULE-SET:cn_domain":
- 'https://223.5.5.5/dns-query' - 'https://223.5.5.5/dns-query'
- 'https://doh.pub/dns-query'
"RULE-SET:GeositeCN_Domain":
- 'https://223.5.5.5/dns-query'
- 'https://doh.pub/dns-query'
"full-nameserver":
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
- 1.1.1.1
- 8.8.8.8
fallback: fallback:
- 1.1.1.1 - 1.1.1.1
- 8.8.8.8 - 8.8.8.8
proxy-server-nameserver: proxy-server-nameserver:
- https://1.1.1.1/dns-query - https://1.1.1.1/dns-query
- https://dns.google/dns-query
- 1.1.1.1
- 8.8.8.8 - 8.8.8.8
# =============================== 代理组设置 =============================== # =============================== 代理组设置 ===============================
proxy-groups: proxy-groups:
- name: ♻️ 自动选择 # --- 1. 核心策略组 ---
type: fallback
proxies:
- 自动选择
- 🆘 故障转移
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
lazy: false
icon: "https://raw.githubusercontent.com/Mithcell-Ma/icon/refs/heads/main/ai_backup.png"
- name: 🚀 节点选择 - name: 🚀 节点选择
type: select type: select
proxies: proxies:
- 自动选择 - ♻️ 自动选择
- AI - 🤖 AI
- 美国自动 - 🇭🇰 香港节点
- 美国p1自动 - 🇹🇼 台湾节点
- 美国p2自动 - 🇸🇬 新加坡节点
- 台湾均衡加速 - 🇯🇵 日本节点
- 香港均衡加速 - 🇺🇸 美国节点
- 日本均衡加速 - 🌍 全部节点
- 美国均衡加速
- 新加坡均衡加速
- 台湾节点
- 香港节点
- 美国节点
- 日本节点
- 全部节点
- 🆘 故障转移 - 🆘 故障转移
- DIRECT - DIRECT
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Proxy.png"
- name: ♻️ 自动选择
type: url-test
<<: *u_s
url: http://www.gstatic.com/generate_204
interval: 300
tolerance: 50
icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/icon/color/urltest.png"
- name: 🆘 故障转移 - name: 🆘 故障转移
type: url-test type: fallback
<<: *u_b <<: *u_b
url: http://www.gstatic.com/generate_204 url: http://www.gstatic.com/generate_204
interval: 3600 interval: 300
icon: "https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/77/7e/5a/777e5a23-cdcc-07e3-bac6-e691fa413307/AppIconok-0-0-1x_U007emarketing-0-0-0-10-0-85-220.png/400x400ia-75.webp" icon: "https://is1-ssl.mzstatic.com/image/thumb/Purple123/v4/77/7e/5a/777e5a23-cdcc-07e3-bac6-e691fa413307/AppIconok-0-0-1x_U007emarketing-0-0-0-10-0-85-220.png/400x400ia-75.webp"
# --- AI 策略组 --- # --- 2. AI 专项策略组 ---
- name: AI - name: 🤖 AI
type: select type: select
proxies: proxies:
- AI_稳定节点 - 🇺🇸 美国自动
- AI_自动优选 - 🇸🇬 新加坡自动
- 美国自动 - 🇯🇵 日本自动
- 美国p1自动 - 🇹🇼 台湾自动
- 美国p2自动 - ♻️ 自动选择
- 日本自动 - 🚀 节点选择
- 新加坡自动
- 台湾自动
- 美国均衡加速
- 日本均衡加速
- 新加坡均衡加速
icon: "https://github.com/DustinWin/ruleset_geodata/releases/download/icons/ai.png" icon: "https://github.com/DustinWin/ruleset_geodata/releases/download/icons/ai.png"
- name: AI_稳定节点 - name: 🧠 OpenAI
type: fallback
<<: *u_s
url: http://www.gstatic.com/generate_204
interval: 7200
strategy: consistent-hashing
max-failed-times: 1
tolerance: 100
lazy: true
filter: "(?i)美国|US|United States|日本|JP|Japan|Singapore|新加坡|台湾|TW"
exclude-filter: "(?i)香港|HK|HongKong|CN|中国"
icon: "https://testingcf.jsdelivr.net/gh/aihdde/Rules@master/icon/ai.png"
- name: AI_自动优选
type: url-test
<<: *u_s
url: http://www.gstatic.com/generate_204
interval: 3600
tolerance: 50
lazy: false
filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$"
exclude-filter: "(?i)香港|HK|HongKong|CN|中国"
icon: "https://raw.githubusercontent.com/Mithcell-Ma/icon/refs/heads/main/ai_backup.png"
# --- 🧪 智能均衡测速组 (仅主力参与) ---
- { name: 台湾均衡加速, <<: *rtt-lb, filter: "(?i)(台湾|tw|🇹🇼|taiwan|新北|台中|台北)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/available.png" }
- { name: 香港均衡加速, <<: *rtt-lb, filter: "(?i)(香港|hk|🇭🇰|hong\\s?kong)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/available.png" }
- { name: 美国均衡加速, <<: *rtt-lb, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/available.png" }
- { name: 新加坡均衡加速, <<: *rtt-lb, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/available.png" }
- { name: 日本均衡加速, <<: *rtt-lb, filter: "(?i)(🇯🇵|日本|東京|东京|大阪|JP|Japan)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/available.png" }
# --- 🛠️ 故障转移/手动选择组 (仅主力参与) ---
- { name: 台湾故转, type: select, <<: *u_s, filter: "(?i)(台湾|tw|🇹🇼|taiwan|新北|台中|台北)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/asn.png" }
- { name: 香港故转, type: select, <<: *u_s, filter: "(?i)(香港|hk|🇭🇰|hong\\s?kong)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/asn.png" }
- { name: 美国故转, type: select, <<: *u_s, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/asn.png" }
- { name: 新加坡故转, type: select, <<: *u_s, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/asn.png" }
- { name: 日本故转, type: select, <<: *u_s, filter: "(?i)(🇯🇵|日本|東京|东京|大阪|JP|Japan)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/asn.png" }
# --- ⚡ 自动优选组 (仅主力参与) ---
- { name: 台湾自动, type: url-test, <<: *u_s, tolerance: 100, interval: 600, lazy: true, filter: "(?i)(台湾|tw|🇹🇼|taiwan)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 香港自动, type: url-test, <<: *u_s, tolerance: 100, interval: 600, lazy: true, filter: "(?i)(香港|hk|🇭🇰|hong\\s?kong)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
# 混合双机场测速(原来的美国自动)
- { name: 美国自动, type: url-test, <<: *u_s, tolerance: 100, interval: 600, lazy: true, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
# 单独对 p1/p2 进行美国节点测速(新增)
- { name: 美国p1自动, type: url-test, use: [机场01], tolerance: 100, interval: 600, lazy: true, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 美国p2自动, type: url-test, use: [机场02], tolerance: 100, interval: 600, lazy: true, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 新加坡自动, type: url-test, <<: *u_s, tolerance: 100, interval: 600, lazy: true, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 日本自动, type: url-test, <<: *u_s, tolerance: 100, interval: 600, lazy: true, filter: "(?i)(🇯🇵|日本|東京|东京|大阪|JP|Japan)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- name: 自动选择
type: url-test
<<: *u_s
url: http://www.gstatic.com/generate_204
tolerance: 50
interval: 300
lazy: false
filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$"
icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/icon/color/urltest.png"
# --- OpenAI 专项策略 (仅主力) ---
- name: OpenAI
type: select type: select
proxies: [OpenAI_美国优选, OpenAI_全球优选, 美国故转, 新加坡故转] proxies:
icon: "https://github.com/DustinWin/ruleset_geodata/releases/download/icons/openai.png" - 🇺🇸 美国自动
- 🇸🇬 新加坡自动
- 🇯🇵 日本自动
- 🇺🇸 美国节点
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/ChatGPT.png"
- name: OpenAI_美国优选 - name: ✨ AISTudio
type: url-test
<<: *u_s
url: https://chatgpt.com/favicon.ico
interval: 600
tolerance: 50
filter: "(?i)美国|US|United States|洛杉矶|达拉斯|纽约|西雅图|旧金山"
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png"
- name: OpenAI_全球优选
type: url-test
<<: *u_s
url: https://chatgpt.com/favicon.ico
interval: 600
tolerance: 50
filter: "(?i)美国|US|Singapore|新加坡|Japan|日本|Korea|韩国"
exclude-filter: "(?i)香港|HK|HongKong|CN|中国"
icon: "https://testingcf.jsdelivr.net/gh/aihdde/Rules@master/icon/world.png"
# --- Google AISTudio 专项策略 (仅主力) ---
- name: AISTudio
type: select type: select
<<: *u_s proxies:
exclude-filter: "(?i)香港|HK|HongKong|CN|中国|Traffic|剩余" - 🇺🇸 美国自动
proxies: [美国均衡加速, 新加坡均衡加速, 日本节点, 🚀 节点选择] - 🇸🇬 新加坡自动
icon: "https://github.com/DustinWin/ruleset_geodata/releases/download/icons/google.png" - 🇯🇵 日本自动
- 🇺🇸 美国节点
# --- 📺 媒体平台 --- icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Google.png"
- { name: TikTok, type: select, proxies: [美国均衡加速, 台湾均衡加速, 新加坡均衡加速, 美国故转, 台湾故转, 新加坡故转, 美国节点, 新加坡节点, 日本节点], icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/TikTok.png" }
- { name: YouTube, type: select, <<: *pg, icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png" }
- { name: Netflix, type: url-test, <<: *u_s, url: http://www.gstatic.com/generate_204, interval: 300, tolerance: 50, filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Netflix.png" }
- { name: Disney+, type: url-test, <<: *u_s, url: https://www.disneyplus.com/robots.txt, interval: 300, tolerance: 50, filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Disney+.png" }
- { name: instagram, type: url-test, <<: *u_s, url: http://www.gstatic.com/generate_204, interval: 300, tolerance: 50, filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$",exclude-filter: "(?i)香港|HK|Hong\\s?Kong|🇭🇰|新加坡|SG|Singapore|🇸🇬", icon: "https://is1-ssl.mzstatic.com/image/thumb/PurpleSource211/v4/8a/90/50/8a905050-a62a-2c1c-a62a-dbb3c372e85d/Placeholder.mill/400x400bb-75.webp" }
# --- 🌍 区域节点直选 (含备用以供临时手动选择) --- # --- 3. 媒体平台策略组 ---
- { name: 台湾节点, type: select, <<: *u, include-all: true, filter: "(?i)(台湾|tw|🇹🇼|taiwan)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Taiwan.png" } - name: 📺 YouTube
- { name: 香港节点, type: select, <<: *u, include-all: true, filter: "(?i)(香港|hk|🇭🇰|hong\\s?kong)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hong_Kong.png" } type: select
- { name: 美国节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇺🇸|美国|US|united\\s?states|america|usa)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png" } proxies: [🚀 节点选择, ♻️ 自动选择, 🇺🇸 美国自动, 🇸🇬 新加坡自动, 🇭🇰 香港自动]
- { name: 新加坡节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Singapore.png" } icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png"
- { name: 日本节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇯🇵|日本|東京|东京|JP|japan)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Japan.png" }
- { name: 全部节点, type: select, <<: *u, include-all: true, filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/World_Map.png" } - name: 🎬 Netflix
- { name: 漏网之鱼, type: select, <<: *pg, icon: "https://testingcf.jsdelivr.net/gh/aihdde/Rules@master/icon/fish.png" } type: select
proxies: [🚀 节点选择, 🇸🇬 新加坡自动, 🇹🇼 台湾自动, 🇭🇰 香港自动, 🇺🇸 美国自动]
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Netflix.png"
- name: 🎵 TikTok
type: select
proxies: [🇺🇸 美国自动, 🇸🇬 新加坡自动, 🇹🇼 台湾自动, 🇯🇵 日本自动]
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/TikTok.png"
- name: 📷 Instagram
type: select
proxies: [🚀 节点选择, 🇺🇸 美国自动, 🇯🇵 日本自动, 🇹🇼 台湾自动]
icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Instagram.png"
# --- 4. 地区优选组 (自动测速,供策略组调用) ---
- { name: 🇭🇰 香港自动, type: url-test, <<: *u_s, tolerance: 50, interval: 300, filter: "(?i)(香港|hk|🇭🇰|hong\\\\s?kong)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 🇹🇼 台湾自动, type: url-test, <<: *u_s, tolerance: 50, interval: 300, filter: "(?i)(台湾|tw|🇹🇼|taiwan|新北|台中|台北)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 🇸🇬 新加坡自动, type: url-test, <<: *u_s, tolerance: 50, interval: 300, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 🇯🇵 日本自动, type: url-test, <<: *u_s, tolerance: 50, interval: 300, filter: "(?i)(🇯🇵|日本|东京|大阪|JP|Japan)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
- { name: 🇺🇸 美国自动, type: url-test, <<: *u_s, tolerance: 50, interval: 300, filter: "(?i)(🇺🇸|美国|US|united\\\\s?states|america|usa)", icon: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/release/icon/color/auto.png" }
# --- 5. 地区节点组 (手动选择,展示所有节点) ---
- { name: 🇭🇰 香港节点, type: select, <<: *u, include-all: true, filter: "(?i)(香港|hk|🇭🇰|hong\\\\s?kong)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hong_Kong.png" }
- { name: 🇹🇼 台湾节点, type: select, <<: *u, include-all: true, filter: "(?i)(台湾|tw|🇹🇼|taiwan)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Taiwan.png" }
- { name: 🇸🇬 新加坡节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇸🇬|新加坡|狮城|SG|Singapore)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Singapore.png" }
- { name: 🇯🇵 日本节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇯🇵|日本|东京|JP|japan)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Japan.png" }
- { name: 🇺🇸 美国节点, type: select, <<: *u, include-all: true, filter: "(?i)(🇺🇸|美国|US|united\\\\s?states|america|usa)", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png" }
- { name: 🌍 全部节点, type: select, <<: *u, include-all: true, filter: "(?i)^((?!(DIRECT|Proxy|Traffic|Expire|Expired|过期|剩余|流量|官网|超时|timeout|失效|Invalid|Test|测速|本地|Local)).)*$", icon: "https://testingcf.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/World_Map.png" }
- { name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, ♻️ 自动选择, DIRECT], icon: "https://testingcf.jsdelivr.net/gh/aihdde/Rules@master/icon/fish.png" }
# =============================== 规则设置 =============================== # =============================== 规则设置 ===============================
rules: rules:
# --- 自定义新增规则 --- # --- 自定义新增规则 ---
- DOMAIN-SUFFIX,lilililwan.xyz,香港节点 # 让 lilililwan.xyz 及其所有子域名走直连 - DOMAIN-SUFFIX,lilililwan.xyz,DIRECT
- DOMAIN-SUFFIX,opencode.ai,新加坡节点 # 让 lilililwan.xyz 及其所有子域名走直连 - DOMAIN-SUFFIX,opencode.ai,🇸🇬 新加坡节点
# - DOMAIN-SUFFIX,lilililwan.xyz,🚀 节点选择 # (备选) 走特定策略组
- RULE-SET,AWAvenue_Ads_Rule,REJECT - RULE-SET,AWAvenue_Ads_Rule,REJECT
- GEOIP,cn,DIRECT,no-resolve - GEOIP,cn,DIRECT,no-resolve
- RULE-SET,telegram_ip,♻️ 自动选择,no-resolve - RULE-SET,telegram_ip,♻️ 自动选择,no-resolve
- RULE-SET,geoip_cloudflare,AI,no-resolve - RULE-SET,geoip_cloudflare,🚀 节点选择,no-resolve
- RULE-SET,cn_domain,DIRECT - RULE-SET,cn_domain,DIRECT
# --- Google 专项规则 ---
# --- Google 专项规则 --- - RULE-SET,google_domain,🚀 节点选择
- RULE-SET,google_domain,AI
# --- OpenAI 规则 (置顶) --- # --- OpenAI 规则 (置顶) ---
- DOMAIN-SUFFIX,openai.com,OpenAI - DOMAIN-SUFFIX,openai.com,🧠 OpenAI
- DOMAIN-SUFFIX,chatgpt.com,OpenAI - DOMAIN-SUFFIX,chatgpt.com,🧠 OpenAI
- DOMAIN-SUFFIX,oaistatic.com,OpenAI - DOMAIN-SUFFIX,oaistatic.com,🧠 OpenAI
- DOMAIN-SUFFIX,oaiusercontent.com,OpenAI - DOMAIN-SUFFIX,oaiusercontent.com,🧠 OpenAI
- DOMAIN-KEYWORD,openai,OpenAI - DOMAIN-KEYWORD,openai,🧠 OpenAI
- DOMAIN-KEYWORD,chatgpt,OpenAI - DOMAIN-KEYWORD,chatgpt,🧠 OpenAI
# --- Google AISTudio 规则 --- # --- Google AISTudio 规则 ---
- DOMAIN-SUFFIX,aistudio.google.com,AISTudio - DOMAIN-SUFFIX,aistudio.google.com,AISTudio
- DOMAIN-KEYWORD,aistudio,AISTudio - DOMAIN-KEYWORD,aistudio,AISTudio
- DOMAIN-KEYWORD,generativeai,AISTudio - DOMAIN-KEYWORD,generativeai,AISTudio
# AI 专项 # AI 专项
- RULE-SET,ai,AI - RULE-SET,ai,🤖 AI
- DOMAIN-SUFFIX,chat.openai.com,AI - DOMAIN-SUFFIX,chat.openai.com,🤖 AI
# 媒体专项 # 媒体专项
- RULE-SET,youtube_domain,YouTube - RULE-SET,youtube_domain,📺 YouTube
- RULE-SET,tiktok_domain,TikTok - RULE-SET,tiktok_domain,🎵 TikTok
- RULE-SET,netflix_domain,Netflix - RULE-SET,netflix_domain,🎬 Netflix
- RULE-SET,disney_domain,Disney+ - RULE-SET,disney_domain,🚀 节点选择
# 通用规则 # 通用规则
- RULE-SET,gfw_domain,♻️ 自动选择 - RULE-SET,gfw_domain,🚀 节点选择
- RULE-SET,proxy,♻️ 自动选择 - RULE-SET,proxy,🚀 节点选择
- MATCH,漏网之鱼 - MATCH,🐟 漏网之鱼
# =============================== 规则提供者 =============================== # =============================== 规则提供者 ===============================
rule-anchor: rule-anchor:
@@ -391,14 +248,12 @@ rule-anchor:
rule-providers: rule-providers:
AWAvenue_Ads_Rule: { <<: *yaml, path: ./ruleset/ads.yaml, url: "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main//Filters/AWAvenue-Ads-Rule-Clash.yaml" } AWAvenue_Ads_Rule: { <<: *yaml, path: ./ruleset/ads.yaml, url: "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/main//Filters/AWAvenue-Ads-Rule-Clash.yaml" }
GeositeCN_Domain: { type : 'http' , behavior : 'domain' , format : 'yaml' , url : 'https://cdn.jsdelivr.net/gh/Accademia/Additional_Rule_For_Clash@latest/GeositeCN/GeositeCN_Domain.yaml' , path : './ruleset/GeositeCN_Domain.yaml' } GeositeCN_Domain: { type: 'http', behavior: 'domain', format: 'yaml', url: 'https://cdn.jsdelivr.net/gh/Accademia/Additional_Rule_For_Clash@latest/GeositeCN/GeositeCN_Domain.yaml', path: './ruleset/GeositeCN_Domain.yaml' }
cn_domain: { type : 'http' , behavior : 'domain' , format : 'yaml' , url : 'https://cdn.jsdelivr.net/gh/Accademia/Additional_Rule_For_Clash@latest/ChinaMax/ChinaMax_Domain.yaml' , path : './ruleset/ChinaMax_Domain.yaml' } cn_domain: { type: 'http', behavior: 'domain', format: 'yaml', url: 'https://cdn.jsdelivr.net/gh/Accademia/Additional_Rule_For_Clash@latest/ChinaMax/ChinaMax_Domain.yaml', path: './ruleset/ChinaMax_Domain.yaml' }
fake_ip_filter_DustinWin: { <<: *domain, path: ./ruleset/fake_ip_filter_DustinWin.mrs, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/fakeip-filter.mrs" } fake_ip_filter_DustinWin: { <<: *domain, path: ./ruleset/fake_ip_filter_DustinWin.mrs, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/fakeip-filter.mrs" }
blackmatrix7_direct: { <<: *yaml, path: ./ruleset/blackmatrix7_direct.yaml, url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Direct/Direct.yaml" }
private_domain: { <<: *domain, path: ./ruleset/private_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs" } private_domain: { <<: *domain, path: ./ruleset/private_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs" }
gfw_domain: { <<: *domain, path: ./ruleset/gfw_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/gfw.mrs" } gfw_domain: { <<: *domain, path: ./ruleset/gfw_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/gfw.mrs" }
ai: { <<: *domain, path: ./ruleset/ai, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs" } ai: { <<: *domain, path: ./ruleset/ai.mrs, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/ai.mrs" }
taiwan_domain: { <<: *domain, path: ./ruleset/taiwan_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/location-tw.mrs" }
youtube_domain: { <<: *domain, path: ./ruleset/youtube.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs" } youtube_domain: { <<: *domain, path: ./ruleset/youtube.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs" }
tiktok_domain: { <<: *domain, path: ./ruleset/tiktok.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/tiktok.mrs" } tiktok_domain: { <<: *domain, path: ./ruleset/tiktok.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/tiktok.mrs" }
netflix_domain: { <<: *domain, path: ./ruleset/netflix.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs" } netflix_domain: { <<: *domain, path: ./ruleset/netflix.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs" }
@@ -406,5 +261,9 @@ rule-providers:
telegram_ip: { <<: *ip, path: ./ruleset/tg_ip.mrs, url: "https://github.com/DustinWin/ruleset_geodata/raw/refs/heads/mihomo-ruleset/telegramip.mrs" } telegram_ip: { <<: *ip, path: ./ruleset/tg_ip.mrs, url: "https://github.com/DustinWin/ruleset_geodata/raw/refs/heads/mihomo-ruleset/telegramip.mrs" }
proxy: { <<: *domain, path: ./ruleset/proxy.mrs, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs" } proxy: { <<: *domain, path: ./ruleset/proxy.mrs, url: "https://github.com/DustinWin/ruleset_geodata/releases/download/mihomo-ruleset/proxy.mrs" }
geoip_cloudflare: { <<: *ip, path: ./ruleset/cf_ip.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/raw/refs/heads/meta/geo/geoip/cloudflare.mrs" } geoip_cloudflare: { <<: *ip, path: ./ruleset/cf_ip.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/raw/refs/heads/meta/geo/geoip/cloudflare.mrs" }
japan_domain: { <<: *domain, path: ./ruleset/japan_domain.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/location-jp.mrs" } google_domain: { <<: *domain, path: ./ruleset/google.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs" }
google_domain: { <<: *domain, path: ./ruleset/google.mrs, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs" } """
with open('/mnt/data/optimized_config.yaml', 'w', encoding='utf-8') as f:
f.write(yaml_content)
print("File generated successfully.")