alecthw / Mmdb_china_ip_list
Licence: mit
Geoip MaxMind Database for china ip list! This is also an example of generating MaxMind Database!
Stars: ✭ 424
Programming Languages
perl
6916 projects
Projects that are alternatives of or similar to Mmdb china ip list
bocfx
中国银行外汇牌价爬虫 / API (Bank of China - Foreign Exchange - Spider/ API)
Stars: ✭ 30 (-92.92%)
Mutual labels: china
Chinese Independent Developer
👩🏿💻👨🏾💻👩🏼💻👨🏽💻👩🏻💻中国独立开发者项目列表 -- 分享大家都在做什么
Stars: ✭ 17,381 (+3999.29%)
Mutual labels: china
Feeluown
trying to be a user-friendly and hackable music player
Stars: ✭ 3,030 (+614.62%)
Mutual labels: china
Trojan Go
Go实现的Trojan代理,支持多路复用/路由功能/CDN中转/Shadowsocks混淆插件,多平台,无依赖。A Trojan proxy written in Go. An unidentifiable mechanism that helps you bypass GFW. https://p4gefau1t.github.io/trojan-go/
Stars: ✭ 4,049 (+854.95%)
Mutual labels: china
Vpnforchina.github.io
2021中国翻墙软件和科学上网推荐指南,最新稳定好用的翻墙VPN推荐,能用的VPN梯子不多了,以及对比VPS自建梯子、SSR机场、V2ray、蓝灯、老王VPN、WireGuard等翻墙软件和科学上网方法。
Stars: ✭ 272 (-35.85%)
Mutual labels: china
V2ray Rules Dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf.
Stars: ✭ 6,550 (+1444.81%)
Mutual labels: geoip
Beeping
HTTP Monitoring via API - Measure the performance of your servers
Stars: ✭ 267 (-37.03%)
Mutual labels: geoip
Crips
IP Tools To quickly get information about IP Address's, Web Pages and DNS records.
Stars: ✭ 272 (-35.85%)
Mutual labels: geoip
lua-resty-maxminddb
A Lua library for reading MaxMind's Geolocation database
Stars: ✭ 72 (-83.02%)
Mutual labels: geoip
K8s For Docker Desktop
为Docker Desktop for Mac/Windows开启Kubernetes和Istio。
Stars: ✭ 3,863 (+811.08%)
Mutual labels: china
China Dictatorship
Chinese "Communist" "Dictatorship" "facts". 中国《共产主义》《独裁统治》的《事实》。Home to the mega-FAQ, news compilation, restaurant and music recommendations. 常见问答集,新闻集和饭店和音乐建议。Heil Xi 卐. 习万岁。
Stars: ✭ 337 (-20.52%)
Mutual labels: china
Chat Censorship
Data related to investigation of chat client censorship
Stars: ✭ 317 (-25.24%)
Mutual labels: china
mmdb_china_ip_list
将china_ip_list
和纯真CN
发布的中国IP列表叠加到MaxMind
官方社区版数据库中。
同时,这也是一个如何生成MaxMind数据库的示例。
适合在网络分流工具中使用,对中国IP的匹配分流更为友好,兼容MaxMind DB的客户端!
每周自动拉取新的MaxMind、china_ip_list和纯真CN数据库,并发布一个新的Release版本。
固定下载连接
文件 | release分支 | 阿里云 |
---|---|---|
Country.mmdb | 链接 | 链接 |
version | 链接 | 链接 |
简介
在网络分流工具(例如Clash)中使用MaxMind的GeoLite2-Country
对中国IP的匹配不是很友好,实际使用中出现不少问题。
此项目,在MaxMind数据库的基础上,加入了china_ip_list和纯真CN数据库,使得对中国IP匹配得更为友好。
使用
从Release下载生成的china_ip_list.mmdb
。
使用方式同MaxMind官方API,可参考指导文档。
OpenClash中使用
将china_ip_list.mmdb
重命名为Country.mmdb
,然后替换掉/etc/openclash/Country.mmdb
,最后重启下clash即可。
构建
需要perl
环境,MaxMind-DB-Writer-perl
的依赖和使用可以参考官方文档。
# 下载mmdb writer
git clone https://github.com/maxmind/MaxMind-DB-Writer-perl.git writer
cd writer
# 安装依赖
curl -LO http://xrl.us/cpanm
perl cpanm –installdeps .
# 构建
./Build manifest
perl Build.PL
./Build install
# 返回上级目录
cd ..
# 下载本项目
git clone https://github.com/alecthw/mmdb_china_ip_list.git
cd mmdb_china_ip_list
# 下载GeoLite2-Country-CSV
curl -LR -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=JvbzLLx7qBZT&suffix=zip"
unzip GeoLite2-Country-CSV.zip
rm -f GeoLite2-Country-CSV.zip
mv GeoLite2* mindmax
# 下载china_ip_list
curl -LR -o china_ip_list.txt "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt"
# 下载纯真数据库的CN
curl -LR -o CN.txt "https://raw.githubusercontent.com/metowolf/iplist/master/data/special/china.txt"
# 生成mmdb
perl china_ip_list.pl
生成的文件为china_ip_list.mmdb
。
MaxMind GeoIP 格式
官方对自己的数据库中的内容说明很少,都是自己一点点跟代码找出来的格式,然后据此生成的数据库。
下面列出所有字段示例供参考。
头
{
"database_type": "GeoLite2-Country",
"binary_format_major_version": 2,
"build_epoch": 1589304057,
"ip_version": 6,
"languages": [
"de",
"en",
"es",
"fr",
"ja",
"pt-BR",
"ru",
"zh-CN"
],
"description": {
"en": "GeoLite2 Country database"
},
"record_size": 24,
"node_count": 616946,
"binary_format_minor_version": 0
}
network->字段
{
"continent": {
"code": "AS",
"names": {
"de": "Asien",
"ru": "Азия",
"pt-BR": "Ásia",
"ja": "アジア",
"en": "Asia",
"fr": "Asie",
"zh-CN": "亚洲",
"es": "Asia"
},
"geoname_id": 6255147
},
"country": {
"names": {
"de": "China",
"ru": "Китай",
"pt-BR": "China",
"ja": "中国",
"en": "China",
"fr": "Chine",
"zh-CN": "中国",
"es": "China"
},
"iso_code": "CN",
"geoname_id": 1814991,
"is_in_european_union": false,
},
"registered_country": {
"names": {
"de": "China",
"ru": "Китай",
"pt-BR": "China",
"ja": "中国",
"en": "China",
"fr": "Chine",
"zh-CN": "中国",
"es": "China"
},
"iso_code": "CN",
"geoname_id": 1814991
},
"represented_country": {
"names": {
"de": "China",
"ru": "Китай",
"pt-BR": "China",
"ja": "中国",
"en": "China",
"fr": "Chine",
"zh-CN": "中国",
"es": "China"
},
"iso_code": "CN",
"geoname_id": 1814991
},
"traits": {
"is_anonymous_proxy": true,
"is_satellite_provider": true
}
}
感谢
其他
摸索不易,引用整合或者二次发布还望留个名......
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].