加速下载v2ray-rules-dat · GitHub Release · 反代镜像加速
202605172248本区块自动同步 v2ray-rules-dat 的官方 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-cn.txt其他 | 4.7 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
china-list.txt其他 | 1.4 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
direct-list.txt其他 | 1.4 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
direct-tld-list.txt其他 | 443 B | 下载 | 加速 | 加速 | 加速 | 加速 |
geoip.dat其他 | 18.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
geoip.dat.sha256sum其他 | 76 B | 下载 | 加速 | 加速 | 加速 | 加速 |
geosite.dat其他 | 10.1 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
geosite.dat.sha256sum其他 | 78 B | 下载 | 加速 | 加速 | 加速 | 加速 |
gfw.txt其他 | 55.6 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
google-cn.txt其他 | 3.0 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
greatfire.txt其他 | 161 B | 下载 | 加速 | 加速 | 加速 | 加速 |
proxy-list.txt其他 | 390.0 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
proxy-tld-list.txt其他 | 496 B | 下载 | 加速 | 加速 | 加速 | 加速 |
reject-list.txt其他 | 3.4 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
rules.zip压缩包 | 9.3 MB | 下载 | 加速 | 加速 | 加速 | 加速 |
rules.zip.sha256sum其他 | 76 B | 下载 | 加速 | 加速 | 加速 | 加速 |
win-extra.txt其他 | 11.8 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
win-spy.txt其他 | 9.1 KB | 下载 | 加速 | 加速 | 加速 | 加速 |
win-update.txt其他 | 16.5 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/v2ray-rules-dat/releases/tag/202605172248
GitHub 仓库简介:🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,适用于 V2Ray、Xray-core、mihomo(Clash-Meta)、hysteria、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, applicable · 许可 GPL-3.0 · ⭐ 19,788
TL;DR
Loyalsoldier/v2ray-rules-dat 是中文社区最广用的 GeoIP / GeoSite 数据集,20K+ stars。适用客户端:V2Ray / Xray / sing-box。数据源:V2Fly social-list-community + MaxMind GeoIP。更新:每 12 小时自动构建。适合:所有 Xray / sing-box 用户。对比:Clash 系用户用 clash-rules 而非 dat。
v2ray-rules-dat 是 V2Ray / Xray / sing-box 生态的”分流规则数据集”。本篇按结构、引入到不同客户端、自定义、与 clash-rules 对比四块讲清楚。
项目结构
原始数据
↓
V2Fly domain-list-community (社区域名分类)
MaxMind GeoIP (开放 IP 数据)
↓
GitHub Actions 每 12 小时构建
↓
v2ray-rules-dat 仓库 Releases:
geoip.dat - 国家 IP 段
geoip.dat.sha256sum
geosite.dat - 域名分类
geosite.dat.sha256sum
...其它分类文件
文件格式
.dat 是 V2Ray 团队定义的 Protocol Buffers 二进制:
- 高效(比文本规则小 80%)
- 客户端原生支持(V2Ray / Xray / sing-box / Mihomo)
- 包含多维度分类
主要 GeoSite 分类
| 分类 | 含义 | 示例域名 |
|---|---|---|
cn | 中国大陆服务 | bilibili.com, taobao.com |
geolocation-cn | 国内地理位置相关 | mapbar.com, amap.com |
geolocation-!cn | 海外 | google.com, twitter.com |
private | 私有网络 | localhost, 192.168.x.x |
google | Google 系 | google.com, youtube.com, gmail.com |
facebook | Meta 系 | facebook.com, instagram.com |
twitter | Twitter / X | twitter.com, x.com |
tiktok | TikTok | tiktok.com |
apple | Apple 服务 | apple.com, icloud.com |
category-ads-all | 广告 / 跟踪 | googleads.g.doubleclick.net |
category-porn | 成人 | (多) |
主要 GeoIP 分类
| 分类 | 含义 |
|---|---|
cn | 中国大陆 IP 段 |
hk | 香港 |
tw | 台湾 |
jp | 日本 |
us | 美国 |
private | 私有 IP |
tor | Tor 出口 IP |
cloudflare | Cloudflare IP |
引入到 Xray-core
把 geoip.dat 和 geosite.dat 放到 Xray 配置目录:
# Linux
sudo mkdir -p /usr/local/share/xray
sudo wget -O /usr/local/share/xray/geoip.dat \
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
sudo wget -O /usr/local/share/xray/geosite.dat \
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat
Xray config.json 中 routing 引用:
{
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{ "type": "field", "domain": ["geosite:category-ads-all"], "outboundTag": "block" },
{ "type": "field", "domain": ["geosite:cn", "geosite:geolocation-cn"], "outboundTag": "direct" },
{ "type": "field", "ip": ["geoip:cn", "geoip:private"], "outboundTag": "direct" },
{ "type": "field", "network": "tcp,udp", "outboundTag": "proxy" }
]
}
}
引入到 sing-box
{
"route": {
"geoip": {
"download_url": "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.db",
"download_detour": "direct"
},
"geosite": {
"download_url": "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.db",
"download_detour": "direct"
},
"rules": [
{ "domain_keyword": ["googlevideo"], "outbound": "proxy" },
{ "geosite": "cn", "outbound": "direct" },
{ "geoip": "cn", "outbound": "direct" }
]
}
}
引入到 Mihomo(如果你用 Mihomo / Clash)
Mihomo 也支持 .dat 文件:
geodata-mode: true
geo-update-interval: 24
geox-url:
geoip: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
geosite: "https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
rules:
- GEOSITE,category-ads-all,REJECT
- GEOSITE,cn,DIRECT
- GEOIP,CN,DIRECT
- MATCH,Proxy
但 Clash YAML 配置更常用 clash-rules 文本规则。
自动更新
客户端按 interval 自动拉取:
- Xray-core:默认不自动更新,需手动 + cron
- sing-box:配置
download_url自动 - Mihomo:
geo-update-interval配置
国内访问推荐用 CDN:
原 URL: https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
jsDelivr: https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat
gh.llkk.cc: https://gh.llkk.cc/https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat
配套订阅
v2ray-rules-dat 是规则集,需要客户端 + 节点订阅配合:
来源与最后核对
- 仓库:github.com/Loyalsoldier/v2ray-rules-dat
- 配套项目:clash-rules、surge-rules
- 数据源(V2Fly):github.com/v2fly/domain-list-community
- MaxMind GeoIP:maxmind.com/en/geoip-databases
本文最后实际验证日期:2026-05-18,测试环境:Xray-core v26.3.27 + sing-box v1.13.12 + Mihomo v1.19.25。