mirror
Go to file
Loyalsoldier 964be7423e
Change LICENSE
Change license to follow GPL license of @gfwlist gfwlist project and @cokebar gfwlist2dnsmasq project
2019-12-15 12:44:25 +08:00
.github/workflows Update build.yml 2019-12-15 03:17:46 +08:00
LICENSE Change LICENSE 2019-12-15 12:44:25 +08:00
README.md Update README.md 2019-12-15 12:38:43 +08:00

简介

v2ray 加强版规则文件,可代替 v2ray 官方 geoip.datgeosite.dat 文件。利用 GitHub Actions 每天自动构建,保证最新。

规则文件生成方式

geoip.dat

  • 通过仓库 @v2ray/geoip 生成
  • 其中 IP 地址来源于 MaxMind 免费 IP
  • 优点:由于项目每天自动构建,所以更新速度比官方 geoip.dat 要快得多

geosite.dat

  • 通过仓库 @v2ray/domain-list-community 生成
  • 优点:由于项目每天自动构建,所以更新速度比官方 geosite.dat 要快得多
  • 加入大量中国大陆域名:通过仓库 @felixonmars/dnsmasq-china-list 生成 chinalist 类别域名并加入到 geosite:cn 类别中
  • 加入最新 GFWList:通过仓库 @cokebar/gfwlist2dnsmasq 生成 gfwlist 类别域名并加入到 geosite:geolocation-!cn 类别中
  • 加入更多直连、代理、广告域名:通过仓库 @ConnersHua/Profiles 获取更多直连、代理、广告域名,并分别加入到 geosite:cngeosite:geolocation-!cngeosite:category-ads-all 类别中

使用方式

  1. 点击进入规则文件发布页面,点击下载位于最上方的 geoip.datgeosite.dat
  2. 把下载下来的 geoip.datgeosite.dat 文件放入到 v2ray 软件的规则文件目录,替换掉原来的 geoip.datgeosite.dat
  3. 修改 v2ray 配置文件。配置参考下面👇

geoip.dat

跟 v2ray 官方 geoip.dat 配置方式相同。

Routing 配置方式:

{
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "Direct",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ]
      }
    ]
  }
}

geosite.dat

跟 v2ray 官方 geosite.dat 配置方式相同。

Routing 配置方式:

{
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "Reject",
        "domain": [
          "geosite:category-ads-all"
        ]
      },
      {
        "type": "field",
        "outboundTag": "Proxy",
        "domain": [
          "geosite:geolocation-!cn"
        ]
      },
      {
        "type": "field",
        "outboundTag": "Direct",
        "domain": [
          "geosite:cn"
        ]
      }
    ]
  }
}

DNS 配置方式:

{
  "dns": {
    "servers": [
      {
        "address": "1.1.1.1",
        "port": 53,
        "domains": [
          "geosite:geolocation-!cn"
        ]
      },
      {
        "address": "114.114.114.114",
        "port": 53,
        "domains": [
          "geosite:cn"
        ]
      },
      "8.8.8.8",
      "223.5.5.5"
    ]
  }
}