加速下载v2ray-rules-dat · GitHub Release · 反代镜像加速

202605172248

本区块自动同步 v2ray-rules-dat 的官方 GitHub Release,并为每个文件预生成 4 个反代镜像加速下载通道。 国内访问 GitHub 慢、下载断、连接超时时,挑一个反代列点开即可,无需手动拼接镜像 URL。镜像只改变访问路径,文件内容、版本号、SHA 校验与 GitHub 官方一致。

发布于 2026-05-1719 个文件⭐ 19,788License GPL-3.0github.com/Loyalsoldier/v2ray-rules-dat

怎么挑: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.cchttps://gh.llkk.cc/国内稳定
ghproxy.nethttps://ghproxy.net/老牌备份
ghfast.tophttps://ghfast.top/新生快线
mirror.ghproxy.comhttps://mirror.ghproxy.com/子域名

反代是第三方公益服务,单个通道可能临时挂掉,多挑几个再判断网络是否有问题。所有反代均为 HTTPS,文件内容与 GitHub 原始 Release 字节一致,可放心做 SHA256 校验。

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
googleGoogle 系google.com, youtube.com, gmail.com
facebookMeta 系facebook.com, instagram.com
twitterTwitter / Xtwitter.com, x.com
tiktokTikToktiktok.com
appleApple 服务apple.com, icloud.com
category-ads-all广告 / 跟踪googleads.g.doubleclick.net
category-porn成人(多)

主要 GeoIP 分类

分类含义
cn中国大陆 IP 段
hk香港
tw台湾
jp日本
us美国
private私有 IP
torTor 出口 IP
cloudflareCloudflare IP

引入到 Xray-core

geoip.datgeosite.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 是规则集,需要客户端 + 节点订阅配合:

来源与最后核对

本文最后实际验证日期:2026-05-18,测试环境:Xray-core v26.3.27 + sing-box v1.13.12 + Mihomo v1.19.25。