Initialize rule providers and README

This commit is contained in:
admin
2026-08-23 23:56:47 +08:00
commit 8cd2e774e2
4 changed files with 3206 additions and 0 deletions
+382
View File
@@ -0,0 +1,382 @@
# ============================================================
# Loon 主配置
# Version: 2.2
# Last Update: 2026-08-22
#
# ============================================================
# 更新日志
# ============================================================
#
# 2026-08-22 v2.2
# - 所有节点测速统一使用 https://www.gstatic.com/generate_204
# - 自动优选 / 故障转移 / AI 自动优选统一使用该测速地址
# - 香港 / 台湾 / 日本 / 新加坡 / 韩国 / 美国 / 其他节点
# 统一使用该测速地址
# - 修复台湾节点图标无法显示的问题
# - 除上述两项外,其余配置保持 v2.1 不变
#
# 2026-08-22 v2.1
# - 重构全部 Proxy Group 命名
# - 统一国家 / 地区节点命名
# - “🌐 其他”改为真正的未分类节点兜底组
# - 未匹配香港 / 台湾 / 日本 / 新加坡 / 韩国 / 美国的节点
# 自动进入“🌐 其他”
# - 排除回国 / 校园 / 游戏 / 通知 / 流量 / 到期 /
# 官网 / 客服 / 机场等特殊节点
# - AI 节点组排除香港
# - AI 加入台湾 / 日本 / 新加坡 / 韩国 / 美国 / 其他
# - 增加“🤖 AI 自动优选”
# - “海外服务”重命名为“🌍 国际服务”
# - 基础策略组统一使用图标前缀
# - 保留所有原有 Remote Rule
# - 保留所有原有 Plugin
# - 保留所有原有 Remote Script
# - 保留 TestFlight / 游戏 / Telegram / Google / Apple 等功能
#
# ============================================================
# ============================================================
# General
# ============================================================
[General]
ip-mode = v4-only
disable-stun = false
dns-reject-mode = LoopbackIP
domain-reject-mode = DNS
udp-fallback-mode = REJECT
sni-sniffing = true
disconnect-on-policy-change = false
switch-node-after-failure-times = 3
skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,localhost,*.local,passenger.t3go.cn
bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32
dns-server = system,223.5.5.5,119.29.29.29,1.1.1.1,8.8.8.8
allow-udp-proxy = true
allow-wifi-access = false
wifi-access-http-port = 7222
wifi-access-socks5-port = 7221
proxy-test-url = http://www.gstatic.com/generate_204
internet-test-url = http://connectivitycheck.platform.hicloud.com/generate_204
test-timeout = 5
interface-mode = auto
real-ip = msftconnecttest.com,msftncsi.com,*.msftconnecttest.com,*.msftncsi.com,*.srv.nintendo.net,*.stun.playstation.net,xbox.*.microsoft.com,*.xboxlive.com,*.battlenet.com.cn,*.battlenet.com,*.blzstatic.cn,*.battle.net
resource-parser = https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/dist/sub-store-parser.loon.min.js
geoip-url = https://github.com/Masaiki/GeoIP2-CN/raw/release/Country.mmdb
ipasn-url = https://raw.githubusercontent.com/P3TERX/GeoLite.mmdb/download/GeoLite2-ASN.mmdb
# ============================================================
# Host
# ============================================================
[Host]
# ------------------------------------------------------------
# 阿里
# ------------------------------------------------------------
*.taobao.com = server:223.5.5.5
*.tmall.com = server:223.5.5.5
*.alicdn.com = server:223.5.5.5
*.aliyun.com = server:223.5.5.5
# ------------------------------------------------------------
# 京东
# ------------------------------------------------------------
*.jd.com = server:119.28.28.28
# ------------------------------------------------------------
# 腾讯 / 微信
# ------------------------------------------------------------
*.qq.com = server:119.28.28.28
*.tencent.com = server:119.28.28.28
*.weixin.com = server:119.28.28.28
# ------------------------------------------------------------
# 网易
# ------------------------------------------------------------
*.163.com = server:119.29.29.29
*.126.com = server:119.29.29.29
*.126.net = server:119.29.29.29
*.127.net = server:119.29.29.29
*.netease.com = server:119.29.29.29
# ------------------------------------------------------------
# 小米
# ------------------------------------------------------------
*.mi.com = server:119.29.29.29
*.xiaomi.com = server:119.29.29.29
# ------------------------------------------------------------
# Bilibili
# ------------------------------------------------------------
*.bilibili.com = server:119.29.29.29
# ------------------------------------------------------------
# TestFlight
# ------------------------------------------------------------
*.testflight.apple.com = server:8.8.4.4
# ------------------------------------------------------------
# TestFlight 下载 CDN
# ------------------------------------------------------------
iosapps.itunes.apple.com = iosapps.itunes.apple.com.download.ks-cdn.com
# ============================================================
# Proxy
# ============================================================
[Proxy]
# ============================================================
# Remote Proxy
# ============================================================
[Remote Proxy]
# 在这里填写机场订阅
#
# 示例:
#
# 我的机场 = https://example.com/subscription
# ============================================================
# Proxy Group
# ============================================================
[Proxy Group]
# ============================================================
# 01. 总入口
# ============================================================
🚀 代理总入口 = select,⚡ 自动优选,🛡️ 故障转移,🇭🇰 香港,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,DIRECT,img-url = https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/Loon_02.png
# ============================================================
# 02. 核心自动策略
# ============================================================
⚡ 自动优选 = url-test,🇭🇰 香港,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png
# ============================================================
# 03. 故障转移
# ============================================================
🛡️ 故障转移 = fallback,🇭🇰 香港,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,url = https://www.gstatic.com/generate_204,interval = 300,max-timeout = 3000,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Failure.png
# ============================================================
# 04. 国家 / 地区节点
# ============================================================
# ------------------------------------------------------------
# 香港
# ------------------------------------------------------------
🇭🇰 香港 = url-test,HK_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png
# ------------------------------------------------------------
# 台湾
# ------------------------------------------------------------
🇹🇼 台湾 = url-test,TW_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://github.com/Koolson/Qure/raw/refs/heads/master/IconSet/Color/Taiwan.png
# ------------------------------------------------------------
# 日本
# ------------------------------------------------------------
🇯🇵 日本 = url-test,JP_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png
# ------------------------------------------------------------
# 新加坡
# ------------------------------------------------------------
🇸🇬 新加坡 = url-test,SG_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png
# ------------------------------------------------------------
# 韩国
# ------------------------------------------------------------
🇰🇷 韩国 = url-test,KR_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Korea.png
# ------------------------------------------------------------
# 美国
# ------------------------------------------------------------
🇺🇸 美国 = url-test,US_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png
# ------------------------------------------------------------
# 其他
# ------------------------------------------------------------
# 真正的未分类节点兜底组。
#
# 未匹配:
# 香港 / 台湾 / 日本 / 新加坡 / 韩国 / 美国
#
# 的节点进入这里。
#
# 以下特殊节点不会进入:
# 回国 / 校园 / 游戏 / 通知 / 流量 / 到期 /
# 官网 / 客服 / 机场
🌐 其他 = url-test,OT_Filter,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 50,img-url = https://gitlab.com/lodepuly/iconlibrary/-/raw/main/Flag_icon/120px/WW.png
# ============================================================
# 05. 通用功能策略
# ============================================================
# ------------------------------------------------------------
# 广告
# ------------------------------------------------------------
🛑 广告拦截 = select,REJECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Advertising.png
# ------------------------------------------------------------
# 系统服务
# ------------------------------------------------------------
🍎 系统服务 = select,DIRECT,🚀 代理总入口,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Apple.png
# ------------------------------------------------------------
# 网络测试
# ------------------------------------------------------------
📶 网络测试 = select,DIRECT,🚀 代理总入口,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Speedtest.png
# ------------------------------------------------------------
# 国内直连
# ------------------------------------------------------------
🇨🇳 国内直连 = select,DIRECT,🚀 代理总入口,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png
# ------------------------------------------------------------
# 国际代理
# ------------------------------------------------------------
🌐 国际代理 = select,🚀 代理总入口,DIRECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Proxy.png
# ============================================================
# 06. AI
# ============================================================
# ------------------------------------------------------------
# AI 自动优选
# ------------------------------------------------------------
#
# 香港不参与 AI。
#
# AI 可使用:
# 台湾 / 日本 / 新加坡 / 韩国 / 美国 / 其他
#
🤖 AI 自动优选 = url-test,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,url = https://www.gstatic.com/generate_204,interval = 600,tolerance = 80,img-url = https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/ChatGPT3.png
# ------------------------------------------------------------
# AI 手动选择
# ------------------------------------------------------------
🤖 人工智能 = select,🤖 AI 自动优选,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,img-url = https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/apps/ChatGPT3.png
# ============================================================
# 07. 国际服务
# ============================================================
🌍 国际服务 = select,🚀 代理总入口,⚡ 自动优选,🛡️ 故障转移,🇹🇼 台湾,🇯🇵 日本,🇸🇬 新加坡,🇰🇷 韩国,🇺🇸 美国,🌐 其他,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png
# ============================================================
# Remote Filter
# ============================================================
[Remote Filter]
# ============================================================
# 01. 其他节点
# ============================================================
OT_Filter = NameRegex, FilterKey = "^(?!.*((?i)🇭🇰|香港|\bHK\b|\bHKG\b|Hong Kong|🇹🇼|台湾|\bTW\b|\bTWN\b|Taiwan|🇯🇵|日本|\bJP\b|\bJPN\b|Japan|🇸🇬|新加坡|狮城|\bSG\b|\bSGP\b|Singapore|🇰🇷|韩国|首尔|\bKR\b|\bKOR\b|Korea|🇺🇸|美国|\bUS\b|\bUSA\b|United States|回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 02. 香港
# ============================================================
HK_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇭🇰|香港|\b(HK|HKG|Hong Kong)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 03. 台湾
# ============================================================
TW_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇹🇼|台湾|\b(TW|TWN|Taiwan)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 04. 日本
# ============================================================
JP_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇯🇵|日本|\b(JP|JPN|Japan)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 05. 新加坡
# ============================================================
SG_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇸🇬|新加坡|狮城|\b(SG|SGP|Singapore)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 06. 韩国
# ============================================================
KR_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇰🇷|韩国|首尔|\b(KR|KOR|Korea)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# 07. 美国
# ============================================================
US_Filter = NameRegex, FilterKey = "^(?=.*((?i)🇺🇸|美国|\b(US|USA|United States)\b))(?!.*((?i)回国|校园|游戏|通知|流量|到期|官网|客服|机场)).*$"
# ============================================================
# Rule
# ============================================================
[Rule]
# ------------------------------------------------------------
# 日志 / 信息收集
# ------------------------------------------------------------
URL-REGEX,\.log\.,REJECT
# ------------------------------------------------------------
# 海角社区
# ------------------------------------------------------------
DOMAIN-KEYWORD,haijiao,🇺🇸 美国
# ------------------------------------------------------------
# 最终兜底
# ------------------------------------------------------------
FINAL,🚀 代理总入口
# ============================================================
# Remote Rule
# ============================================================
[Remote Rule]
# ------------------------------------------------------------
# 01. 广告
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising.list, policy=🛑 广告拦截, tag=Advertising, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising_Domain.list, policy=🛑 广告拦截, tag=Advertising_Domain, enabled=true
# ------------------------------------------------------------
# 02. AI
# ------------------------------------------------------------
https://github.com/fmz200/wool_scripts/raw/main/Loon/rule/AI.list, policy=🤖 人工智能, tag=AI分流合集@奶思, enabled=true
# ------------------------------------------------------------
# 03. 国际媒体 / 社交
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Netflix/Netflix.list, policy=🌍 国际服务, tag=Netflix, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/YouTube/YouTube.list, policy=🌍 国际服务, tag=YouTube, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Spotify/Spotify.list, policy=🌍 国际服务, tag=Spotify, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Bahamut/Bahamut.list, policy=🌍 国际服务, tag=Bahamut, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/GlobalMedia/GlobalMedia.list, policy=🌐 国际代理, tag=GlobalMedia, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Telegram/Telegram.list, policy=🌍 国际服务, tag=Telegram, enabled=true
# ------------------------------------------------------------
# 04. Apple / Microsoft / Google
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Apple/Apple.list, policy=🍎 系统服务, tag=Apple, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Microsoft/Microsoft.list, policy=🍎 系统服务, tag=Microsoft, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Google/Google.list, policy=🌍 国际服务, tag=Google, enabled=true
# ------------------------------------------------------------
# 05. 游戏 / TestFlight
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Game/Game.list, policy=🍎 系统服务, tag=Game, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/TestFlight/TestFlight.list, policy=🚀 代理总入口, tag=TestFlight, enabled=true
# ------------------------------------------------------------
# 06. 国内
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/BiliBili/BiliBili.list, policy=🇨🇳 国内直连, tag=BiliBili, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/China/China.list, policy=DIRECT, tag=China, enabled=true
# ------------------------------------------------------------
# 07. 国际代理
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Proxy/Proxy.list, policy=🌐 国际代理, tag=Proxy, enabled=true
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Proxy/Proxy_Domain.list, policy=🌐 国际代理, tag=Proxy_Domain, enabled=true
# ------------------------------------------------------------
# 08. 网络测试
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Speedtest/Speedtest.list, policy=📶 网络测试, tag=Speedtest, enabled=true
# ============================================================
# Rewrite
# ============================================================
[Rewrite]
# TestFlight 区域解锁
#
# ^https?://testflight\.apple\.com/v\d/accounts/.+?/install$ request-body-json-jq '.storefrontId = "143441-19,29"'
# ============================================================
# Script
# ============================================================
[Script]
# ============================================================
# Remote Script
# ============================================================
[Remote Script]
https://github.com/fmz200/wool_scripts/raw/main/Loon/script/tools.scripts, tag=脚本工具合集@fmz200, enabled=true
# ============================================================
# Plugin
# ============================================================
[Plugin]
# ------------------------------------------------------------
# 开屏去广告
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.lnplugin, tag=开屏去广告, enabled=true
# ------------------------------------------------------------
# 广告重写
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Advertising/Advertising.plugin, tag=Advertising, enabled=true
# ------------------------------------------------------------
# 通用重写
# ------------------------------------------------------------
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Redirect/Redirect.plugin, tag=General, enabled=true
# ------------------------------------------------------------
# Skip Proxy
# ------------------------------------------------------------
https://raw.githubusercontent.com/Tartarus2014/Loon-Script/refs/heads/master/Plugin/skip-proxy.lpx, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/Imm.png, enabled=true
# ------------------------------------------------------------
# BoxJS
# ------------------------------------------------------------
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin, policy=🚀 代理总入口, enabled=true
# ------------------------------------------------------------
# Sub-Store
# ------------------------------------------------------------
https://raw.githubusercontent.com/sub-store-org/Sub-Store/master/config/Loon.plugin, policy=🚀 代理总入口, enabled=true
# ------------------------------------------------------------
# Script-Hub
# ------------------------------------------------------------
https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/modules/script-hub.loon.plugin, policy=🚀 代理总入口, enabled=true
# ------------------------------------------------------------
# 节点检测
# ------------------------------------------------------------
https://raw.githubusercontent.com/Tartarus2014/Loon-Script/master/Plugin/MediaCheck.plugin, tag=Node Detection Tool, enabled=true
# ------------------------------------------------------------
# TestFlight 下载
# ------------------------------------------------------------
https://raw.githubusercontent.com/Tartarus2014/Loon-Script/master/Plugin/TF-Download.plugin, tag=TF-Download, enabled=true
# ============================================================
# Mitm
# ============================================================
[Mitm]
hostname = -www.google.com
ca-p12 =
ca-passphrase =
skip-server-cert-verify = false