Analysis updated 2026-05-18
Route Chinese domestic traffic directly and foreign traffic through a proxy in a self-hosted setup.
Block advertising and malware domains while allowing legitimate traffic based on geographic origin.
Replace official V2Ray routing data with more comprehensive, frequently-updated IP and domain lists.
Configure Clash-Meta or Hysteria to intelligently split traffic between direct and proxied connections.
| loyalsoldier/v2ray-rules-dat | datalab-to/surya | ahmetb/kubectx | |
|---|---|---|---|
| Stars | 19,736 | 19,734 | 19,732 |
| Language | — | Python | Go |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 3/5 | 1/5 |
| Audience | ops devops | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
This repository provides enhanced routing rule data files for V2Ray and compatible proxy tools. V2Ray is a network proxy framework used to route internet traffic through different paths based on rules, for example, sending Chinese domestic websites through a direct connection while routing foreign websites through a proxy. The two core data files it produces are geoip.dat (geographic IP address data) and geosite.dat (domain name categorizations), which replace the official versions provided by V2Ray with more comprehensive and frequently updated alternatives. The geoip.dat file maps IP address ranges to countries and CDN providers such as Cloudflare, Google, Netflix, and Telegram, allowing routing rules like "if the destination IP belongs to Cloudflare, send it directly." The China IP data merges multiple sources including MaxMind GeoLite2 and operator-specific lists for more accurate coverage. The geosite.dat file categorizes domain names into groups such as Chinese domestic sites (direct connection), sites blocked by China's Great Firewall (proxy needed), advertising domains (blocked), and Windows telemetry domains (optionally blocked). It incorporates data from GFWList, EasyList, AdGuard DNS Filter, and other well-known blocklists. Both files are rebuilt automatically every day at 6 a.m. Beijing time via GitHub Actions to stay current. They are compatible with V2Ray, Xray-core, Clash-Meta, Hysteria, Trojan-Go, and similar proxy tools. Someone running a self-hosted proxy setup to manage network traffic in a China-adjacent context, routing local vs. foreign traffic intelligently, would use these files as drop-in replacements for the official routing data.
Daily-updated routing rule data files (IP and domain lists) for V2Ray and compatible proxy tools, enabling smart traffic routing based on geography and content categories.
Use it freely, but any project you distribute that includes this code must also be GPL-licensed and open source.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly ops devops.
This repo across BitVibe Labs
Verify against the repo before relying on details.