Skip to content

v2ray 加强版规则文件,可代替官方规则文件。Enhanced v2ray rules dat files.

License

Notifications You must be signed in to change notification settings

vorkta/v2ray-rules-dat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

简介

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

规则文件生成方式

geoip.dat

geosite.dat

  • 通过仓库 @v2ray/domain-list-community 生成
  • 加入大量中国大陆域名:通过仓库 @felixonmars/dnsmasq-china-list 生成并加入到 geosite:cn 类别中
  • 加入最新 GFWList 域名:通过仓库 @cokebar/gfwlist2dnsmasq 生成并加入到 geosite:geolocation-!cn 类别中
  • 加入 Greatfire Analyzer 检测到的屏蔽域名:通过仓库 @wongsyrone/domain-block-list 获取 Greatfire Analyzer 检测到的屏蔽域名,并加入到 geosite:geolocation-!cn 类别中
  • 加入更多代理域名和广告域名:通过仓库 @ConnersHua/Profiles@GeQ1an/Rules@lhie1/Rules 获取更多代理域名、广告域名,并分别加入到 geosite:geolocation-!cngeosite:category-ads-all 类别中
  • 加入自定义直连和代理域名:由于上游域名列表更新缓慢或缺失某些被屏蔽的域名,所以引入自定义域名列表,主要为了解决在 DNS 解析 AAAAA 记录时的 DNS 泄漏问题。hidden 分支里有两个文件 direct.txtproxy.txt,分别放置自定义的直连、代理域名,最终分别加入到 geosite:cngeosite:geolocation-!cn 类别中

规则文件下载及使用方式

下载地址

使用方式

  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"
    ]
  }
}

致谢

About

v2ray 加强版规则文件,可代替官方规则文件。Enhanced v2ray rules dat files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published