Skip to content
/ geoip Public
forked from Loyalsoldier/geoip

🌚 🌍 🌝 GeoIP for V2Ray and Trojan-Go, with replaced CN IPv4 CIDR available from ipip.net and appended Telegram CIDR list.

License

Notifications You must be signed in to change notification settings

890604/geoip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

简介

本项目每周四自动生成适用于 V2RayTrojan-Gogeoip.dat 规则文件。

与官方版 geoip.dat 不同之处

  • 中国大陆 IPv4 地址数据使用 IPIP.net
  • 新增 geoip:telegram 类别,方便黑名单模式用户使用

说明

Fork 本项目后,需要在自己仓库的 [Settings] 选项卡的 [Secrets] 页面中添加一个名为 MAXMIND_GEOLITE2_LICENSE 的 secret,否则 GitHub Actions 会运行失败。这个 secret 的值为 MAXMIND 账号的 LICENSE KEY,需要注册 MAXMIND 账号后,在个人账号管理页面左侧边栏的 [Services] 项下的 [My License Key] 里生成。

下载地址

如果无法访问域名 raw.githubusercontent.com,可以使用第二个地址(cdn.jsdelivr.net),但是内容更新会有 12 小时的延迟。

参考配置

"routing": {
  "rules": [
    {
      "type": "field",
      "outboundTag": "Direct",
      "ip": [
        "223.5.5.5/32",
        "119.29.29.29/32",
        "180.76.76.76/32",
        "114.114.114.114/32",
        "geoip:cn",
        "geoip:private"
      ]
    },
    {
      "type": "field",
      "outboundTag": "Proxy-1",
      "ip": [
        "1.1.1.1/32",
        "1.0.0.1/32",
        "8.8.8.8/32",
        "8.8.4.4/32",
        "geoip:telegram"
      ]
    },
    {
      "type": "field",
      "outboundTag": "Proxy-2",
      "ip": [
        "geoip:us",
        "geoip:ca"
      ]
    },
    {
      "type": "field",
      "outboundTag": "Proxy-3",
      "ip": [
        "geoip:hk",
        "geoip:tw",
        "geoip:jp",
        "geoip:sg"
      ]
    }
  ]
}

License

CC-BY-SA-4.0

This product includes GeoLite2 data created by MaxMind, available from MaxMind.

About

🌚 🌍 🌝 GeoIP for V2Ray and Trojan-Go, with replaced CN IPv4 CIDR available from ipip.net and appended Telegram CIDR list.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%