v2ray-rules-dat is a routing rules database that replaces V2Ray's official geoip.dat and geosite.dat files for use across multiple proxy platforms.
The tool solves the problem of maintaining accurate, up-to-date geolocation and domain routing rules for proxy applications. It generates geoip.dat files using MaxMind GeoLite2 Country data as the base, with specialized handling for Chinese mainland IP ranges drawn from dedicated sources for both IPv4 and IPv6 addresses. The geoip.dat includes standard country codes plus custom categories for major content delivery and service providers like Cloudflare, Google, Netflix, Telegram, and Tor. The project builds automatically on a daily schedule to keep rules current.
The tool is designed for users of V2Ray, Xray-core, mihomo, hysteria, Trojan-Go, leaf, and their associated GUI applications who need reliable geolocation-based routing. It suits anyone requiring more granular control over traffic routing than official rule files provide, particularly those needing accurate Chinese IP classification or filtering by specific service providers. The project explicitly references an alternative repository for users who need customized geoip.dat files or formats compatible with other proxy software.
The project maintains an automated build pipeline that generates updated rules daily. The tool draws data from multiple upstream sources including MaxMind's geolocation database and community-maintained IP lists. The project is actively maintained with regular updates to support evolving proxy platform ecosystems.