加速下载Loyalsoldier/clash-rules · GitHub Release · 反代镜像加速
202605172330本区块自动同步 Loyalsoldier/clash-rules 的官方 GitHub Release,并为每个文件预生成 4 个反代镜像加速下载通道。 国内访问 GitHub 慢、下载断、连接超时时,挑一个反代列点开即可,无需手动拼接镜像 URL。镜像只改变访问路径,文件内容、版本号、SHA 校验与 GitHub 官方一致。
怎么挑:Windows 优先 .exe / .msi;macOS 优先 .dmg;Linux 选 .deb / .rpm / .AppImage;Android 选 .apk;带 .sig / .asc / .sha256 的是校验文件,不是安装包。
下载慢:从右侧四个反代列里挑一个能通的点开就是加速下载直链,复制后扔下载器也可以。
| 文件 / 平台 | 大小 | 官方直链 | 反代 · gh.llkk.cc | 反代 · ghproxy.net | 反代 · ghfast.top | 反代 · mirror.ghproxy.com |
|---|---|---|---|---|---|---|
apple.txt其他 | 5.2 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
applications.txt其他 | 2.6 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
cncidr.txt其他 | 187.7 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
direct.txt其他 | 2.2 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
gfw.txt其他 | 88.7 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
google.txt其他 | 3.3 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
greatfire.txt其他 | 250 B | 下载 | 加速 | 加速 | 加速 | 加速 |
icloud.txt其他 | 1.1 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
lancidr.txt其他 | 341 B | 下载 | 加速 | 加速 | 加速 | 加速 |
private.txt其他 | 3.4 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
proxy.txt其他 | 585.2 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
reject.txt其他 | 4.7 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
telegramcidr.txt其他 | 274 B | 下载 | 加速 | 加速 | 加速 | 加速 |
tld-not-cn.txt其他 | 11.6 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
本页加速下载用到的 4 个 GitHub 反代镜像
| 反代 | 前缀 | 说明 |
|---|---|---|
gh.llkk.cc | https://gh.llkk.cc/ | 国内稳定 |
ghproxy.net | https://ghproxy.net/ | 老牌备份 |
ghfast.top | https://ghfast.top/ | 新生快线 |
mirror.ghproxy.com | https://mirror.ghproxy.com/ | 子域名 |
反代是第三方公益服务,单个通道可能临时挂掉,多挑几个再判断网络是否有问题。所有反代均为 HTTPS,文件内容与 GitHub 原始 Release 字节一致,可放心做 SHA256 校验。
完整 Release 说明:https://github.com/Loyalsoldier/clash-rules/releases/tag/202605172330
GitHub 仓库简介:🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 等基于 Clash Premium 内核的客户端。 · 许可 GPL-3.0 · ⭐ 26,496
TL;DR
Loyalsoldier/clash-rules 是中文社区最广用的 Clash 分流规则集,26K+ stars,每日自动构建。核心规则集:proxy.txt / direct.txt / reject.txt / 主流平台分类。引入:在 Clash YAML 配置
rule-providers+rules引用。适合:所有 Clash / Mihomo 用户。兼容:Clash Verge Rev / Mihomo Party / CMFA / OpenClash 等所有 Clash 系客户端。
Loyalsoldier 规则集是 Clash 用户必装的”分流规则集”。让你的 Clash 知道国内服务走 DIRECT、海外服务走 Proxy,不需要自己一条条写规则。本篇按结构、引入、自定义、与机场订阅配合四块讲清楚。
项目定位
原始数据
↓
V2Fly domain-list-community (社区维护的域名分类)
↓
Loyalsoldier 仓库每日 GitHub Actions 构建
↓
clash-rules (输出 Clash 文本规则)
v2ray-rules-dat (输出 V2Ray geoip/geosite.dat)
surge-rules (输出 Surge 规则)
特点:
- 数据源权威:V2Fly 社区维护,可信
- 自动更新:每 12 小时构建一次
- 多客户端:Loyalsoldier 维护多个输出格式
- 完全免费 + 开源:GPL-3.0
主要规则集文件
| 文件 | 内容 | 数量级 |
|---|---|---|
proxy.txt | 海外平台(Twitter, Google, YouTube, GitHub 等) | 5000+ 域名 |
direct.txt | 国内服务(B站, 淘宝, 微信, 高德等) | 10000+ 域名 |
reject.txt | 广告 / 跟踪域名 | 5000+ |
private.txt | 私有 IP / 局域网 | 几十条 |
telegramcidr.txt | Telegram 服务器 IP 段 | 几十条 |
apple.txt | Apple 服务(含 iCloud、App Store) | 200+ |
google.txt | Google 系服务 | 100+ |
icloud.txt | iCloud 专用 | 50+ |
cncidr.txt | 中国大陆 IP 段 | 大量 |
gfw.txt | 已知被封域名 | 大量 |
引入到 Clash 配置
完整 rule-providers 配置
rule-providers:
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
interval: 86400
apple:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
interval: 86400
google:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
interval: 86400
proxy:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
interval: 86400
direct:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
interval: 86400
private:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
interval: 86400
telegramcidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
interval: 86400
rules:
- RULE-SET,reject,REJECT
- RULE-SET,private,DIRECT
- RULE-SET,icloud,Apple
- RULE-SET,apple,Apple
- RULE-SET,google,Google
- RULE-SET,proxy,Proxy
- RULE-SET,direct,DIRECT
- RULE-SET,telegramcidr,Telegram,no-resolve
- RULE-SET,cncidr,DIRECT,no-resolve
- GEOIP,CN,DIRECT
- MATCH,Proxy
CDN 来源
主流 CDN(任选):
- jsDelivr:
https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/ - fastly jsdelivr:
https://fastly.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/ - GitHub Raw:
https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/ - GitHub Proxy (国内加速):
https://gh.llkk.cc/https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/
国内推荐用 gh.llkk.cc 反代,速度更稳定。
自定义覆盖
某些域名你想强制走代理 / 直连,可以在 rules 顺序的开头加单条规则:
rules:
- DOMAIN,bilibili.tv,Proxy # 让海外 B 站走代理
- DOMAIN,steamcommunity.com,Proxy # Steam 社区
- DOMAIN-KEYWORD,blizzard,Direct # 战网直连(玩国服)
- RULE-SET,reject,REJECT
- ...(之后是规则集)
按从上到下顺序匹配,单条规则优先于规则集。
与机场订阅配合
机场订阅通常自带规则集。但许多机场的规则集质量参差,Loyalsoldier 是替代方案:
- 在机场订阅基础上把
rule-providers部分替换为 Loyalsoldier - 保留机场的
proxies/proxy-groups不动 - 这样:节点用机场的 + 规则用 Loyalsoldier 的
详细操作:Clash Verge Rev 文章里的”override”章节。
配套订阅
Loyalsoldier 是规则集,不是节点订阅。要用:
- 装 Clash 客户端(Clash Verge Rev / Mihomo Party 等)
- 拿到机场的 配套订阅线路
- 配合 Loyalsoldier 规则集 = 完整方案
来源与最后核对
- 仓库:github.com/Loyalsoldier/clash-rules
- jsDelivr CDN:cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release
- 数据源(V2Fly):github.com/v2fly/domain-list-community
- 配套项目:github.com/Loyalsoldier/v2ray-rules-dat
本文最后实际验证日期:2026-05-18,测试环境:Clash Verge Rev v2.4.7 + 上面完整 YAML 配置。