hackl0us/geoip2-cn

小巧精悍、准确、实用 GeoIP2 数据库

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 39 minutes ago
Added to GitGenius on September 8th, 2026
Created on December 9th, 2020
Open Issues & Pull Requests: 32 (+0)
GitHub issues: Enabled
Number of forks: 216
Total Stargazers: 7,417 (+0)
Total Subscribers: 118 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

geoip2-cn is a GeoIP2 database generator that produces compact, China-focused IP geolocation data for proxy tools.

The project addresses limitations in the standard MaxMind GeoLite2 database used by proxy applications. GeoLite2 requires registration to download, contains global IP data making it large and slow to load, and has poor accuracy for Chinese mainland IP addresses. The tool solves this by merging and deduplicating Chinese IP address ranges from ipip.net and Chunzhen databases, generating a GeoIP2 database containing only mainland China IP information. The resulting database is approximately 100 KB, compared to the original 4 MB, enabling faster loading and query performance.

The tool suits users in mainland China who need to route traffic based on whether destination IPs belong to Chinese territory. It is designed for proxy applications including Surge, Shadowrocket, QuantumultX, and Clash. The project also provides an IP-CIDR list format for older proxy tools and firewalls. Downloads are available via GitHub raw links or CDN distribution for faster access in various network conditions.

The project maintains automated updates every three days with no manual intervention required. Development activity centers on keeping the IP database current and accurate through continuous integration of upstream data sources.