8000 GitHub - leemars/geoip: 🌚 🌍 🌝 geoip.dat 路由规则文件加强版。Enhanced edition of GeoIP and geoip.dat for V2Ray, Xray-core, Trojan-Go, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ geoip Public
forked from Loyalsoldier/geoip

🌚 🌍 🌝 geoip.dat 路由规则文件加强版。Enhanced edition of GeoIP and geoip.dat for V2Ray, Xray-core, Trojan-Go, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.

License

Notifications You must be signed in to change notification settings

leemars/geoip

 
 

Repository files navigation

简介

本项目每周四自动生成 GeoIP 文件,同时提供命令行界面(CLI)供用户自行定制 GeoIP 文件,包括但不限于 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb

This project releases GeoIP files automatically every Thursday. It also provides a command line interface(CLI) for users to customize their own GeoIP files, included but not limited to V2Ray dat format file geoip.dat and MaxMind mmdb format file Country.mmdb.

与官方版 GeoIP 的区别

  • 中国大陆 IPv4 地址数据融合了 IPIP.net@gaoyifan/china-operator-ip
  • 中国大陆 IPv6 地址数据融合了 MaxMind GeoLite2 和 @gaoyifan/china-operator-ip
  • 新增类别(方便有特殊需求的用户使用):
    • geoip:cloudflareGEOIP,CLOUDFLARE
    • geoip:cloudfrontGEOIP,CLOUDFRONT
    • geoip:facebookGEOIP,FACEBOOK
    • geoip:fastlyGEOIP,FASTLY
    • geoip:googleGEOIP,GOOGLE
    • geoip:netflixGEOIP,NETFLIX
    • geoip:telegramGEOIP,TELEGRAM
    • geoip:twitterGEOIP,TWITTER

参考配置

V2Ray 中使用本项目 .dat 格式文件的参考配置:

"routing": {
  "rules": [
    {
      "type": "field",
      "outboundTag": "Direct",
      "ip": [
        "geoip:cn",
        "geoip:private",
        "ext:cn.dat:cn",
        "ext:private.dat:private",
        "ext:geoip-only-cn-private.dat:cn",
        "ext:geoip-only-cn-private.dat:private"
      ]
    },
    {
      "type": "field",
      "outboundTag": "Proxy",
      "ip": [
        "geoip:us",
        "geoip:jp",
        "geoip:facebook",
        "geoip:telegram",
        "ext:geoip-asn.dat:facebook",
        "ext:geoip-asn.dat:telegram"
      ]
    }
  ]
}

Clash 中使用本项目 .mmdb 格式文件的参考配置:

rules:
  - GEOIP,PRIVATE,policy,no-resolve
  - GEOIP,FACEBOOK,policy
  - GEOIP,CN,policy,no-resolve

Leaf 中使用本项目 .mmdb 格式文件的参考配置,查看官方 README

下载地址

如果无法访问域名 raw.githubusercontent.com,可以使用第二个地址 cdn.jsdelivr.net。 *.sha256sum 为校验文件。

V2Ray dat 格式路由规则文件

适用于 V2RayXray-coreTrojan-Go

About

🌚 🌍 🌝 geoip.dat 路由规则文件加强版。Enhanced edition of GeoIP and geoip.dat for V2Ray, Xray-core, Trojan-Go, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Shell 1.6%
0