mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2026-01-15 22:12:48 +08:00
Compare commits
7 Commits
2020102922
...
2020122709
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9486e7b460 | ||
|
|
0fae67f885 | ||
|
|
ccc66630b4 | ||
|
|
a14c3c75f7 | ||
|
|
755fb3a7dd | ||
|
|
ef437ef849 | ||
|
|
7518b62b89 |
31
.github/workflows/run.yml
vendored
31
.github/workflows/run.yml
vendored
@@ -38,41 +38,26 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Checkout the "hidden" branch of this repo
|
||||
uses: actions/checkout@v2.3.3
|
||||
uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
ref: hidden
|
||||
|
||||
- name: Checkout Loyalsoldier/geoip
|
||||
uses: actions/checkout@v2.3.3
|
||||
with:
|
||||
repository: Loyalsoldier/geoip
|
||||
path: geoip
|
||||
|
||||
- name: Checkout Loyalsoldier/domain-list-custom
|
||||
uses: actions/checkout@v2.3.3
|
||||
uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
repository: Loyalsoldier/domain-list-custom
|
||||
path: custom
|
||||
|
||||
- name: Checkout v2fly/domain-list-community
|
||||
uses: actions/checkout@v2.3.3
|
||||
uses: actions/checkout@v2.3.4
|
||||
with:
|
||||
repository: v2fly/domain-list-community
|
||||
path: community
|
||||
|
||||
- name: Get GeoLite2 zip file
|
||||
env:
|
||||
LICENSE_KEY: ${{ secrets.MAXMIND_GEOLITE2_LICENSE }}
|
||||
- name: Get geoip.dat relative files
|
||||
run: |
|
||||
curl -L -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=${LICENSE_KEY}&suffix=zip"
|
||||
unzip GeoLite2-Country-CSV.zip
|
||||
rm -f GeoLite2-Country-CSV.zip
|
||||
mv GeoLite2* geolite2
|
||||
|
||||
- name: Generate geoip.dat file
|
||||
run: |
|
||||
cd geoip || exit 1
|
||||
go run ./ --country=../geolite2/GeoLite2-Country-Locations-en.csv --ipv4=../geolite2/GeoLite2-Country-Blocks-IPv4.csv --ipv6=../geolite2/GeoLite2-Country-Blocks-IPv6.csv --ipv4CN=https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt
|
||||
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat
|
||||
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat.sha256sum
|
||||
|
||||
- name: Get and add direct domains into temp-direct.txt file
|
||||
run: |
|
||||
@@ -173,14 +158,14 @@ jobs:
|
||||
|
||||
- name: Move and zip files and generate sha256 hash
|
||||
run: |
|
||||
install -Dp ./geoip/geoip.dat ./publish/geoip.dat
|
||||
install -Dp ./geoip.dat ./publish/geoip.dat
|
||||
install -Dp ./geoip.dat.sha256sum ./publish/geoip.dat.sha256sum
|
||||
install -Dp ./custom/publish/dlc.dat ./publish/geosite.dat
|
||||
install -p {proxy,direct,reject}-tld-list.txt ./publish/
|
||||
install -p {proxy,direct,reject}-list.txt ./publish/
|
||||
install -p {apple-cn,google-cn,gfw,greatfire}.txt ./publish/
|
||||
cd ./publish || exit 1
|
||||
zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat
|
||||
sha256sum geoip.dat > geoip.dat.sha256sum
|
||||
sha256sum geosite.dat > geosite.dat.sha256sum
|
||||
sha256sum rules.zip > rules.zip.sha256sum
|
||||
|
||||
|
||||
125
README.md
125
README.md
@@ -12,7 +12,7 @@
|
||||
### geoip.dat
|
||||
|
||||
- 通过仓库 [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip) 生成
|
||||
- 其中全球 IP 地址(IPv4 和 IPv6)来源于 [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/),`CN`(中国大陆)类别下的 IPv4 地址来源于 [@pexcn/chnroute.txt](https://github.com/pexcn/daily/blob/gh-pages/chnroute/chnroute.txt)(融合了 [ipip.net](https://github.com/17mon/china_ip_list) 和 [APNIC](https://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest) 的中国大陆 IPv4 地址)
|
||||
- 其中全球 IP 地址(IPv4 和 IPv6)来源于 [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/),`CN`(中国大陆)类别下的 IPv4 地址来源于 [ipip.net](https://github.com/17mon/china_ip_list)
|
||||
|
||||
### geosite.dat
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
- [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 加入到 `geosite:geolocation-!cn` 类别中(如希望本文件中的 Apple 域名直连,请参考下面 [geosite 的 Routing 配置方式](https://github.com/Loyalsoldier/v2ray-rules-dat#geositedat-1))
|
||||
- [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 加入到 `geosite:geolocation-!cn` 类别中(如希望本文件中的 Google 域名直连,请参考下面 [geosite 的 Routing 配置方式](https://github.com/Loyalsoldier/v2ray-rules-dat#geositedat-1))
|
||||
- **加入 GFWList 域名**:
|
||||
- 通过仓库 [@cokebar/gfwlist2dnsmasq](https://github.com/cokebar/gfwlist2dnsmasq) 和 [@pexcn/gfwlist-extras](https://github.com/pexcn/gfwlist-extras) 生成
|
||||
- 加入到 `geosite:gfw` 类别中,供希望使用 GFWList 的用户使用
|
||||
- 基于 [@gfwlist/gfwlist](https://github.com/gfwlist/gfwlist) 数据,通过仓库 [@cokebar/gfwlist2dnsmasq](https://github.com/cokebar/gfwlist2dnsmasq) 和 [@pexcn/gfwlist-extras](https://github.com/pexcn/gfwlist-extras) 生成
|
||||
- 加入到 `geosite:gfw` 类别中,供习惯于 PAC 模式并希望使用 [GFWList](https://github.com/gfwlist/gfwlist) 的用户使用
|
||||
- 同时加入到 `geosite:geolocation-!cn` 类别中
|
||||
- **加入 Greatfire Analyzer 检测到的屏蔽域名**:
|
||||
- 通过仓库 [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain) 获取 [Greatfire Analyzer](https://zh.greatfire.org/analyzer) 检测到的在中国大陆被屏蔽的域名
|
||||
@@ -44,20 +44,32 @@
|
||||
> 如果无法访问域名 `raw.githubusercontent.com`,可以使用第二个地址(`cdn.jsdelivr.net`),但是内容更新会有 12 小时的延迟。
|
||||
|
||||
- **geoip.dat**:
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geoip.dat](https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geoip.dat)
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geoip.dat)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat)
|
||||
- **geosite.dat**:
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geosite.dat](https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/geosite.dat)
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat)
|
||||
- **直连域名列表 direct-list.txt**:
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/direct-list.txt](https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/direct-list.txt)
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/direct-list.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/direct-list.txt)
|
||||
- **代理域名列表 proxy-list.txt**:
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/proxy-list.txt](https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/proxy-list.txt)
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/proxy-list.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/proxy-list.txt)
|
||||
- **广告域名列表 reject-list.txt**:
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/reject-list.txt](https://github.com/Loyalsoldier/v2ray-rules-dat/raw/release/reject-list.txt)
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/reject-list.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/reject-list.txt)
|
||||
- **Apple 在中国大陆可直连的域名列表 apple-cn.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/apple-cn.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/apple-cn.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/apple-cn.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/apple-cn.txt)
|
||||
- **Google 在中国大陆可直连的域名列表 google-cn.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/google-cn.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/google-cn.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/google-cn.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/google-cn.txt)
|
||||
- **GFWList 域名列表 gfw.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/gfw.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/gfw.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/gfw.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/gfw.txt)
|
||||
- **Greatfire 域名列表 greatfire.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/greatfire.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/greatfire.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/greatfire.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/greatfire.txt)
|
||||
|
||||
**使用方式**:
|
||||
|
||||
@@ -133,6 +145,7 @@ scoop install v2ray-rules-dat
|
||||
"type": "field",
|
||||
"outboundTag": "Direct",
|
||||
"domain": [
|
||||
"geosite:private",
|
||||
"geosite:apple-cn",
|
||||
"geosite:google-cn",
|
||||
"geosite:tld-cn"
|
||||
@@ -177,10 +190,102 @@ scoop install v2ray-rules-dat
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"domain": [
|
||||
"geosite:tld-!cn",
|
||||
"geosite:gfw",
|
||||
"geosite:greatfire"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"ip": [
|
||||
"149.154.167.99/32",
|
||||
"149.154.175.10/32",
|
||||
"149.154.167.40/32",
|
||||
"149.154.167.42/32",
|
||||
"149.154.175.117/32",
|
||||
"149.154.175.50/32",
|
||||
"149.154.167.50/32",
|
||||
"149.154.167.51/32",
|
||||
"149.154.175.100/32",
|
||||
"149.154.167.91/32",
|
||||
"149.154.167.90/32",
|
||||
"149.154.165.120/32",
|
||||
"149.154.166.120/32",
|
||||
"149.154.164.250/32",
|
||||
"149.154.167.117/32",
|
||||
"149.154.167.118/32",
|
||||
"149.154.167.192/27",
|
||||
"149.154.164.8/29",
|
||||
"91.108.8.0/27",
|
||||
"91.108.12.0/27",
|
||||
"91.108.16.0/27",
|
||||
"91.108.56.0/24",
|
||||
"91.108.4.0/24",
|
||||
"149.154.160.0/22",
|
||||
"149.154.164.0/22",
|
||||
"149.154.168.0/22",
|
||||
"149.154.172.0/22",
|
||||
"91.108.56.0/22",
|
||||
"91.108.4.0/22",
|
||||
"91.108.8.0/22",
|
||||
"91.108.16.0/22",
|
||||
"91.108.12.0/22",
|
||||
"149.154.160.0/20",
|
||||
"2001:b28:f23d:f001::e/128",
|
||||
"2001:67c:4e8:f002::e/128",
|
||||
"2001:b28:f23d:f003::e/128",
|
||||
"2001:b28:f23d:f001::a/128",
|
||||
"2001:67c:4e8:f002::a/128",
|
||||
"2001:b28:f23d:f003::a/128",
|
||||
"2001:67c:4e8:f004::a/128",
|
||||
"2001:b28:f23f:f005::a/128",
|
||||
"2001:67c:4e8:fa60::/64",
|
||||
"2001:b28:f23d::/48",
|
||||
"2001:b28:f23f::/48",
|
||||
"2001:67c:4e8::/48"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"ip": [
|
||||
"geoip:ae",
|
||||
"geoip:au",
|
||||
"geoip:br",
|
||||
"geoip:ca",
|
||||
"geoip:de",
|
||||
"geoip:dk",
|
||||
"geoip:es",
|
||||
"geoip:fi",
|
||||
"geoip:fr",
|
||||
"geoip:gb",
|
||||
"geoip:gr",
|
||||
"geoip:hk",
|
||||
"geoip:id",
|
||||
"geoip:il",
|
||||
"geoip:in",
|
||||
"geoip:iq",
|
||||
"geoip:ir",
|
||||
"geoip:it",
|
||||
"geoip:jp",
|
||||
"geoip:kr",
|
||||
"geoip:mo",
|
||||
"geoip:my",
|
||||
"geoip:nl",
|
||||
"geoip:no",
|
||||
"geoip:nz",
|
||||
"geoip:ph",
|
||||
"geoip:ru",
|
||||
"geoip:sa",
|
||||
"geoip:sg",
|
||||
"geoip:th",
|
||||
"geoip:tr",
|
||||
"geoip:tw",
|
||||
"geoip:us",
|
||||
"geoip:vn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Direct",
|
||||
@@ -394,9 +499,6 @@ scoop install v2ray-rules-dat
|
||||
|
||||
## 致谢
|
||||
|
||||
> This product includes GeoLite2 data created by MaxMind, available from [Maxmind](https://www.maxmind.com).
|
||||
|
||||
- [MaxMind GeoLite2 Free IP Database](https://dev.maxmind.com/geoip/geoip2/geolite2/)
|
||||
- [@v2fly/geoip](https://github.com/v2fly/geoip)
|
||||
- [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)
|
||||
- [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)
|
||||
@@ -408,7 +510,6 @@ scoop install v2ray-rules-dat
|
||||
- [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain)
|
||||
- [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX)
|
||||
- [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master)
|
||||
- [@pexcn/daily/chnroute.txt](https://github.com/pexcn/daily/blob/gh-pages/chnroute/chnroute.txt)
|
||||
- [@AdblockPlus/EasylistChina+Easylist.txt](https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt)
|
||||
- [@AdGuard/DNS-filter](https://kb.adguard.com/en/general/adguard-ad-filters#dns-filter)
|
||||
- [@PeterLowe/adservers](https://pgl.yoyo.org/adservers)
|
||||
|
||||
Reference in New Issue
Block a user