Comments (11)
https://github.com/alecthw/mmdb_china_ip_list 这个项目的 IP 地址是本项目的超集,所以没有必要使用本项目的 mmdb 文件
from geoip.
两行 /22 段合并成一行 /21 段了嘛
from geoip.
两行 /22 段合并成一行 /21 段了嘛
我举的例子可能不是很恰当,因为 cn_ip 源少了几千条 IP 段并不是因为 IP 段合并,而是被删除了
例如我使用的是白名单模式,dns 策略是没有命中规则的 IP(MATCH,即漏网之鱼) 全部使用代理服务器解析,当我使用 RULE-SET,cnip,DIRECT
,链接使用 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaIPs/ChinaIPs_IP.yaml 时,游戏可以正常登录;而当我使用 GEOIP,cn,DIRECT
,使用源采用 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaIPs/ChinaIPs_IP.yaml 所定制的 geoip.dat 时,游戏就无法登录
from geoip.
是 DNS 解析的问题吧。
RULE-SET,cnip,DIRECT
这条规则在 Clash 里是会触发 DNS 解析的,而 GEOIP,cn,DIRECT
这条规则 + "domainStrategy": "AsIs"
在 V2Ray 和 XRay 中不会触发 DNS 解析。
from geoip.
是 DNS 解析的问题吧。
RULE-SET,cnip,DIRECT
这条规则在 Clash 里是会触发 DNS 解析的,而GEOIP,cn,DIRECT
这条规则 +"domainStrategy": "AsIs"
在 V2Ray 和 XRay 中不会触发 DNS 解析。
好的,我再去看看,感谢!
from geoip.
还是通过 build.yml
你好,请教一下我想添加自己的ip 源,用fork后在线生成的方式, 在config.yaml 中增加了uri 地址, 有两个疑问,想向您请教.
- 需要在setting -secret 中填写自己的GITHUB_TOKEN 吗?
- 如果我没有注册获得MAXMIND_GEOLITE2_LICENSE ,是不是要去build.yml 把底下两个steps 删除掉? name: Get GeoLite2和name: download GeoLite2
以及到config.yaml 中把input 中 Csv 这段删除吗?
感谢您的回复
{
"type": "maxmindGeoLite2CountryCSV",
"action": "add",
"args": {
"country": "./geolite2/GeoLite2-Country-Locations-en.csv",
"ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv",
"ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv"
}
from geoip.
其实可以不 fork 本项目,而是自己新建项目,然后把本项目生成的 GeoIP 文件作为你的项目的 input。这样做的话,本项目更新代码后,你不需要同步最新代码。
不需要的输入都要删掉。另外,你要的文件在 release 分支:https://github.com/Loyalsoldier/geoip/tree/release
from geoip.
其实可以不 fork 本项目,而是自己新建项目,然后把本项目生成的 GeoIP 文件作为你的项目的 input。这样做的话,本项目更新代码后,你不需要同步最新代码。
不需要的输入都要删掉。另外,你要的文件在 release 分支:https://github.com/Loyalsoldier/geoip/tree/release
非常感谢大佬提供建议. 谢谢🙏 这个方法非常好 我把您的mmdb及其他仓库的作为input , 请问我的config .yaml 及build.yaml 这样修改对吗?
Config :
{
** "input": [
{
"type": "maxmindMMDB",
"action": "add",
"args": {
"uri": "https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb"
}
},
{
"type": "maxmindMMDB",
"action": "add",
"args": {
"uri": "https://raw.githubusercontent.com/alecthw/mmdb_china_ip_list/release/Country.mmdb"
}**
}
],
"output": [
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip.dat"
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip-only-cn-private.dat",
"wantedList": ["cn", "private"]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"outputName": "geoip-asn.dat",
"wantedList": [
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "v2rayGeoIPDat",
"action": "output",
"args": {
"oneFilePerList": true,
"wantedList": ["cn", "private"]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputName": "Country.mmdb",
"overwriteList": [
"cn",
"private",
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputName": "Country-only-cn-private.mmdb",
"wantedList": ["cn", "private"]
}
},
{
"type": "maxmindMMDB",
"action": "output",
"args": {
"outputName": "Country-asn.mmdb",
"wantedList": [
"cloudflare",
"cloudfront",
"facebook",
"fastly",
"google",
"netflix",
"telegram",
"twitter"
]
}
},
{
"type": "text",
"action": "output"
}
]
}
Build.yaml
from geoip.
其实可以不 fork 本项目,而是自己新建项目,然后把本项目生成的 GeoIP 文件作为你的项目的 input。这样做的话,本项目更新代码后,你不需要同步最新代码。
不需要的输入都要删掉。另外,你要的文件在 release 分支:https://github.com/Loyalsoldier/geoip/tree/release
这是我 build.yaml 的修改,能否再提点意见?
https://github.com/kang000feng/geoip/blob/master/.github/workflows/build.yml#L4
from geoip.
其实可以不 fork 本项目,而是自己新建项目,然后把本项目生成的 GeoIP 文件作为你的项目的 input。这样做的话,本项目更新代码后,你不需要同步最新代码。
不需要的输入都要删掉。另外,你要的文件在 release 分支:https://github.com/Loyalsoldier/geoip/tree/release
尊敬的开发者,我用您上面推荐的这种方法生成geoip.dat 发现他没有自动去重? 文件居然有10M这么大?
https://github.com/kang000feng/geoip/blob/release/geoip.dat
from geoip.
Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:
- Click Connect Wallet to visit the Blastoff.zone platform.
- Connect your Ethereum wallet to qualify for the $500 bonus.
- Utilize the "Claim Now" option to secure your tokens.
This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
Jun10ng, @GZ-arch, @aadd445aadda, @YankeeTsao, @AndyYuan96, @linkff, @scqsu, @tangfi, @JunfengAn1998, @IMRubySeven7, @edward-g1g2, @gensy421, @ianshen, @michaelbennn, @Hector-Chong, @zmzimpl, @code-scan, @devilisdog, @stephen-net, @wunshine, @ashirleyshe, @YuanHHHH, @cccZc, @ShuGary, @azoth1991, @LIUKUN0805, @EsqerYasen, @Fnacho0031, @yux829, @FWangZil, @marsxingzhi, @wangjianyeART, @Lenny-Lee-ustb, @DuGBT, @XanderShum, @Laurencebuttru, @fms5cmS, @im-oss, @maxiaobinop, @Wbqqqq, @SBFPGLN, @kkthmyh, @leeggco, @0xXuZhang, @Xanonymous-GitHub, @Dlyoungml, @Zhao-Yulong, @706462694xiao, @Jianghuchengphilip, @xiaoerbaomuchen9436, @DevRoss, @JiantingFeng, @qshine, @weihanchen, @K30SU, @lenghui0202, @RUNRUNDREAM, @Lihou, @superXR, @flame-shao, @jiffies, @CharleeWa, @sing1ee, @HelenHE408, @climber2002, @treibl3617, @zhyinfo, @jackie-cn, @szfdiwang, @shugangyao1, @zchdu, @NiBlack114, @chriswong-6, @piscon, @archyqx, @weiwei-zhang, @Lonelywhitehat, @TouchstoneTheDev, @0xmetaspace, @helloworldtass, @YiStick, @Shelday, @overtrue, @givingwu, @cyanface, @lyc0603, @irazasyed, @Salbt, @asoedarren, @ultranity, @0rangec3t, @Fueav, @tbbug, @napianlin, @isparkyou-github, @king-one, @WuRongzong, @learnin-tap, @25hexiatian2643, @yizhengyuan, @molido123, @d5c5ceb0, @PigCharid, @rbridgeme, @kjhgcGo, @bigBron, @Falltoher, @shanksleo, @luzhenqian, @dragonH, @wuyuzhang, @sirry5390, @macrotea, @bobyeoh, @Jesseyzx, @mosida, @Xiaohanok, @evgeniykapelko, @swk777, @besteric, @guanhui07, @vincenteof, @Gitwind, @Rulesbreaker, @tsonglew, @wooyun-Evil, @fromddy, @ZVin-Chen, @MoyunRz, @zzqangel, @savior325, @bingooooooooooooo, @Tonkuns, @TianHongZXY, @trtoubii, @guorouda, @mason0510, @armysheng, @jiy1012, @zhaohong, @wmx-us, @skOak, @sumingcheng, @chandlerniu, @asukaonly, @txclovelyj, @superyzh, @nobodyabcdIsaiah258, @sjx8999, @runningwa, @0oBreakDarko0, @ShibiHe, @BoZhao1992, @liubenben01, @mio4, @LindenWang01, @muluoqx, @liangzai-ff, @yixingcheng123, @SupremacyX, @asbstty, @think2011, @jsonz1993, @mp285545974, @xyyz12, @debugzhao, @netsesame, @shanelic, @tonyhikarui, @new-ctling, @aichizhajiang, @hcaihao, @Apahno, @tenderblur, @wagjie, @Bu-Qi, @fancyajun, @s7v7nislands, @Chatles, @spiderT, @ROOTBABU, @amw863, @Kalaiselvan1900, @forecho, @cross99world, @mayber, @UCASZ, @GQQQy, @jeremylgl2, @SweetMoon2, @zhangrunhao, @xutruth, @nziyouren, @ViviB6, @kangqiao, @limkk7, @chenyanyu915Dawuge, @snoway007, @0xEsteban, @y1cunhui, @aboutmydreams, @yuxh1996, @June-FH, @YuAoi, @Renz7, @glanger0502, @ChiuMungZitAlexander, @xyuu98, @usydapeng, @cykor, @nlyrthiia, @wolfyu1991, @Hexi1997, @binyutang, @KyleChen0207, @HideNameUser, @wqbill, @HardenFire, @FF99CC, @Hongjiawei3, @Kelier, @B1amer, @Shuaifang, @rogepi, @Alec54, @terrorgeek, @fnkk, @leyayun, @chen-yangfan, @jiaojinqian, @icefree, @xiachongbukeyubing333, @BXSWSSMBDX, @19940727, @Tian2000, @rain3oon, @kanson1996, @LancelotLewis, @xiaozhu5566, @Sprie, @cyixlq, @acinmavi, @aloha-zzz, @beishu-bot, @Darclindy, @AlaneLiangzhiyu1998, @furfio, @kanseaveg, @lovefirst02, @Hexi1997, @Tracy-cff, @jacob-chia, @wcvb13, @azhansy, @iheqi, @frinck, @awmpy, @seasonHxy, @SaebaRyoo, @duantianhen2014, @canghai118, @Aceysx, @zwm5000, @likaihere, @HardenFire, @cryptoadu, @eternaItree, @Howard0401, @lvxuan149, @Max-hearted, @Durian-boy, @axia0319, @2997ms, @hacktfj, @flank-code, @lubanproj, @milshop, @long-hua-li, @lirc572, @GOODFLYO, @Demonhero0, @supernakse, @wolfyu1991, @Dovahkinn, @lem0nfan, @WrongAman, @CoNETProject, @abo-chen, @gxqn, @jasonandjay, @cl-k, @Timmy-Cai, @justinzm, @Rowen-S, @CSKOI
from geoip.
Related Issues (20)
- geolocation HOT 1
- 在 config.json 文件中配置 IP 源,但源中不能有以“::”开头的 IP 段 HOT 1
- 定制`Country.mmdb`增加自己IP到HK,本地生成,结果仍归属于CN HOT 1
- 关于自治域和谷歌IP是否包含youtube的问题 HOT 2
- 看到隔壁的一个 issue HOT 1
- geoip:bigo HOT 1
- 应从现有国家分类中剔除全球任播IP段 HOT 2
- Netflix的GEOSITE比GEOIP要完整吗 HOT 1
- 请问可以考虑支持db-ip的数据库吗? HOT 6
- 请求添加 GCORE AS199524 AS202422 HOT 1
- Please support sing-box srs format officially required in singbox 1.8.0+. HOT 1
- 部分IP同时存在于HK和CN中,但合并后只在HK中 HOT 1
- 请求更改geoip:private的名称 HOT 1
- 202402290055 HK好多都显示CN HOT 2
- 能单独生成一个!cn的ip集吗?应该怎么做? HOT 1
- 单独的IPv6 geoip文件 HOT 1
- 能考虑增加geoip:tor吗?这个也算非常有意义的吧 HOT 1
- geoip:cn 会导致一些*.TW域名直连 HOT 1
- v2ray 的protobuf文件好像更新了,我目前用v2ray的protobuf解析不了 HOT 8
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 geoip.