Comments (10)
今天早上粗略查了下,说下我的理解,可能不准确。
-
geosite.db: clash 源码里未发现读取的地方, 猜测 clash 不支持此格式
-
geosite.dat: 源码 path.GeoSite, 存放域名的地方, 这些域名会按照一定规则分组称为 域名类别, 比如
domain:ip.cn
属于cn
;domain:git.io domain:githubusercontent.com
属于github
. 这个文件可以通过 metacubex/geo 解压查看. -
country.mmdb: 格式是 maxmind 定义的 IP geolocation databases,用途是根据 ip 地址查询国家/城市/时区等信息,而名称的 country 是指只包含到国家的信息,而没有城市/时区,具体可容纳的信息见它的 pdf 说明 GeoLite2-IP-MetaData-Databases-Comparison-Chart. 而这个仓库的此文件来自 Loyalsoldier/geoip, 其在 maxmind 提供的标准基础上新增了域名类别(cloudflare/google...) 等等, 具体见其说明 与官方版 GeoIP 的区别
-
geoip.db/geoip.metadb: 根据源码 path.MMDB 来看 Country.mmdb/geoip.db/geoip.metadb 只会取一个用来比较 ip 归属国家的 (geoip.Match), 所以对于 clash 来说这三者可看作同一份数据, 以下简称为 Country.mmdb 系列
-
geoip.dat: 根据源码大量 C.GeodataMode (update_geo.UpdateGeoDatabases) 的判断来看, Country.mmdb 系列 和 geoip.dat 是二选一的. 而此仓库的来自 Loyalsoldier/geoip 所以其实这四种都是同一份数据的不同格式.
总结:
- Country.mmdb/geoip.db/geoip.metadb 和 geoip.dat 是二选一的, 四者内部都是同一份数据, 通过配置 GEOIP 数据模式 来决定.
- geosite.db 不支持
- geosite.dat 按照地区(cn...)/服务商(如 google/github...)等分组的域名
- xxx-lite 就是 xxx 的精简版
2024/04/17 geosite.dat 数据概览:
geo unpack site ./geosite.dat -d sites ls sites -1 | wc -l # >>> 1257 dust sites # 16K ┌── meta │█ │ 0% # 16K ├── microsoft │█ │ 0% # 16K ├── tld-!cn │█ │ 0% # 16K ├── win-extra │█ │ 0% # 16K ├── win-update │█ │ 0% # 20K ├── beats │█ │ 0% # 20K ├── category-ads │█ │ 0% # 20K ├── category-ecommerce │█ │ 0% # 20K ├── category-games │█ │ 0% # 24K ├── category-ads-all │█ │ 0% # 28K ├── google │█ │ 0% # 32K ├── category-media │█ │ 0% # 36K ├── category-entertainment│█ │ 0% # 48K ├── apple │█ │ 1% # 96K ├── geolocation-cn │█ │ 1% # 124K ├── gfw │█ │ 2% # 140K ├── category-porn │█ │ 2% # 148K ├── category-companies │█ │ 2% # 520K ├── geolocation-!cn │███ │ 7% # 1.4M ├── cn │████████ │ 18% # 7.8M ┌─┴ sites │███████████████████████████████████████ │ 100%
from meta-rules-dat.
我也有此疑惑,文档没解释清楚
from meta-rules-dat.
我也不清楚,
另外我还不清楚 rule-set 内引用 meta branch 的和 geoip/site 什么区别,有多少重叠。
我这两天看了一些高 star 分享,很多配置都是一大堆 rule-providers 和 rule,但其实有很多都重叠。
from meta-rules-dat.
@adoyle-h 可以看下我上面分享的, 有问题一起讨论
from meta-rules-dat.
还有个问题,geosite.dat这个文件,
meta-rules-dat的版本和v2ray-rules-dat版本的并不一样,country.mmdb和geoip.dat倒是一样的,不知道这两个有什么具体区别,根据Readme似乎是新增合并了一些域名数据,但是文件大小却小还了2MB,有点疑惑😂
from meta-rules-dat.
Related Issues (20)
- Why cn_domain.yaml is seperated from geosite HOT 2
- i.hamreus.com 命中GEOSITE,CN HOT 3
- Please add "primevideo" and "disney" to "geosite-lite.dat,geosite-lite.db" HOT 1
- 请问一下,geoip文件里面包含CN的IPv6地址吗? HOT 1
- process name规则有遗漏的流量
- sing分支规则问题 HOT 2
- sing分支中的bm7规则匹配出现问题
- CN上游ChinaMax_Domain.txt已经很久没更新了,考虑换一个文件? HOT 1
- Please remove "microsoft" from geosite:cn
- 关于tracker分类处理的疑问
- meta 分支缺乏 category-games-cn 和 steam-cn 列表 HOT 1
- bm7转singbox规则不全 HOT 1
- 抖音GPT的域名 HOT 1
- 请求增加腾讯系的规则
- geoip-lite.mmdb不见了 HOT 2
- sing分支的bm7规则消失 HOT 1
- 请求添加上游V2ray库中的正则规则 HOT 1
- 示例中的cn domain.yaml不存在
- Generate Hash Value for country.mmdb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-rules-dat.