mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2026-01-13 04:57:12 +08:00
Compare commits
33 Commits
2020121422
...
2022030222
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1728a3bf05 | ||
|
|
467b44b760 | ||
|
|
49289a0a3c | ||
|
|
106d799bf3 | ||
|
|
1971d7a499 | ||
|
|
012a6308ee | ||
|
|
12e336e982 | ||
|
|
03d4e100dc | ||
|
|
1aaa2c3955 | ||
|
|
41248053f3 | ||
|
|
2ed2fba720 | ||
|
|
6961566065 | ||
|
|
2af1272d91 | ||
|
|
ac755bf110 | ||
|
|
12939697c3 | ||
|
|
9926d01d75 | ||
|
|
a5493afd04 | ||
|
|
2f1bd7ab4d | ||
|
|
036184df55 | ||
|
|
4ed156d7f2 | ||
|
|
ad309a7706 | ||
|
|
8cb84a1a3a | ||
|
|
235e8968c2 | ||
|
|
080cc5f1bc | ||
|
|
13c933da65 | ||
|
|
29deedd739 | ||
|
|
a1f75daf61 | ||
|
|
7e34cb7a21 | ||
|
|
18f0a8301a | ||
|
|
c99bec25ad | ||
|
|
d54f2a5424 | ||
|
|
ba6139b8fe | ||
|
|
9486e7b460 |
75
.github/workflows/run.yml
vendored
75
.github/workflows/run.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
- name: Setup Go 1.x.y
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: "^1.15"
|
||||
go-version: ^1.16
|
||||
|
||||
- name: Set variables
|
||||
run: |
|
||||
@@ -24,10 +24,8 @@ jobs:
|
||||
echo "CHINA_DOMAINS_URL=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf" >> $GITHUB_ENV
|
||||
echo "GOOGLE_DOMAINS_URL=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV
|
||||
echo "APPLE_DOMAINS_URL=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV
|
||||
echo "GFWLIST_DOMAINS_URL=https://cokebar.github.io/gfwlist2dnsmasq/gfwlist_domain.txt" >> $GITHUB_ENV
|
||||
echo "GFWLIST_EXTRAS_DOMAINS_URL=https://raw.githubusercontent.com/pexcn/gfwlist-extras/master/gfwlist-extras.txt" >> $GITHUB_ENV
|
||||
echo "GREATFIRE_DOMAINS_URL=https://raw.githubusercontent.com/Loyalsoldier/cn-blocked-domain/release/domains.txt" >> $GITHUB_ENV
|
||||
echo "GEQ1AN_RULES_GLOBAL_MEDIA_URL=https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/GMedia.list" >> $GITHUB_ENV
|
||||
echo "LHIE1_RULES_PROXY_URL=https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list" >> $GITHUB_ENV
|
||||
echo "EASYLISTCHINA_EASYLIST_REJECT_URL=https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt" >> $GITHUB_ENV
|
||||
echo "PETERLOWE_REJECT_URL=https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext" >> $GITHUB_ENV
|
||||
@@ -35,45 +33,59 @@ jobs:
|
||||
echo "DANPOLLOCK_REJECT_URL=https://someonewhocares.org/hosts/hosts" >> $GITHUB_ENV
|
||||
echo "CUSTOM_DIRECT=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/cn.txt" >> $GITHUB_ENV
|
||||
echo "CUSTOM_PROXY=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/geolocation-!cn.txt" >> $GITHUB_ENV
|
||||
echo "WIN_SPY=https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt" >> $GITHUB_ENV
|
||||
echo "WIN_UPDATE=https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update.txt" >> $GITHUB_ENV
|
||||
echo "WIN_EXTRA=https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra.txt" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Checkout the "hidden" branch of this repo
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: hidden
|
||||
|
||||
- name: Checkout Loyalsoldier/domain-list-custom
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: Loyalsoldier/domain-list-custom
|
||||
path: custom
|
||||
|
||||
- name: Checkout v2fly/domain-list-community
|
||||
uses: actions/checkout@v2.3.4
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: v2fly/domain-list-community
|
||||
path: community
|
||||
|
||||
- name: Checkout cokebar/gfwlist2dnsmasq
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: cokebar/gfwlist2dnsmasq
|
||||
path: gfwlist2dnsmasq
|
||||
|
||||
- name: Get geoip.dat relative files
|
||||
run: |
|
||||
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat
|
||||
wget https://github.com/Loyalsoldier/geoip/raw/release/geoip.dat.sha256sum
|
||||
|
||||
- name: Generate GFWList domains
|
||||
run: |
|
||||
cd gfwlist2dnsmasq || exit 1
|
||||
chmod +x ./gfwlist2dnsmasq.sh
|
||||
./gfwlist2dnsmasq.sh -l -o ./temp-gfwlist.txt
|
||||
|
||||
- name: Get and add direct domains into temp-direct.txt file
|
||||
run: |
|
||||
curl -sSL $CHINA_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > temp-direct.txt
|
||||
curl -sSL ${CUSTOM_DIRECT} | perl -ne '/^(domain|full):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> temp-direct.txt
|
||||
curl -sSL ${CUSTOM_DIRECT} | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> temp-direct.txt
|
||||
|
||||
- name: Get and add proxy domains into temp-proxy.txt file
|
||||
run: |
|
||||
curl -sSL $GFWLIST_DOMAINS_URL | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' > temp-proxy.txt
|
||||
cat ./gfwlist2dnsmasq/temp-gfwlist.txt | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' > temp-proxy.txt
|
||||
curl -sSL $GFWLIST_EXTRAS_DOMAINS_URL | perl -ne 'print if not /^(#|\s)/' >> temp-proxy.txt
|
||||
curl -sSL $GREATFIRE_DOMAINS_URL | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' >> temp-proxy.txt
|
||||
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' >> temp-proxy.txt
|
||||
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' >> temp-proxy.txt
|
||||
curl -sSL $GEQ1AN_RULES_GLOBAL_MEDIA_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+GMedia/ {print $2}' >> temp-proxy.txt
|
||||
curl -sSL $LHIE1_RULES_PROXY_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+/ {print $2}' >> temp-proxy.txt
|
||||
curl -sSL ${CUSTOM_PROXY} | grep -Ev ":@cn" | perl -ne '/^(domain|full):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> temp-proxy.txt
|
||||
curl -sSL ${CUSTOM_PROXY} | grep -Ev ":@cn" | perl -ne '/^(domain):([^:]+)(\n$|:@.+)/ && print "$2\n"' >> temp-proxy.txt
|
||||
|
||||
- name: Get and add reject domains into temp-reject.txt file
|
||||
run: |
|
||||
@@ -82,10 +94,10 @@ jobs:
|
||||
curl -sSL $PETERLOWE_REJECT_URL | perl -ne '/^127\.0\.0\.1\s([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+){1,64})$/ && print "$1\n"' >> temp-reject.txt
|
||||
curl -sSL $DANPOLLOCK_REJECT_URL | perl -ne '/^127\.0\.0\.1\s([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+){1,64})/ && print "$1\n"' | sed '1d' >> temp-reject.txt
|
||||
|
||||
- name: Reserve `regexp` and `keyword` type of rules from custom lists to "reserve" files
|
||||
- name: Reserve `full`, `regexp` and `keyword` type of rules from custom lists to "reserve" files
|
||||
run: |
|
||||
curl -sSL ${CUSTOM_DIRECT} | perl -ne '/^((regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' > direct-reserve.txt
|
||||
curl -sSL ${CUSTOM_PROXY} | grep -Ev ":@cn" | perl -ne '/^((regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' > proxy-reserve.txt
|
||||
curl -sSL ${CUSTOM_DIRECT} | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u > direct-reserve.txt
|
||||
curl -sSL ${CUSTOM_PROXY} | grep -Ev ":@cn" | perl -ne '/^((full|regexp|keyword):[^:]+)(\n$|:@.+)/ && print "$1\n"' | sort --ignore-case -u > proxy-reserve.txt
|
||||
|
||||
- name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files
|
||||
run: |
|
||||
@@ -130,7 +142,7 @@ jobs:
|
||||
cat temp-category-ads-all.txt | sort --ignore-case -u | perl -ne '/^((?=^.{1,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})*)/ && print "$1\n"' > ./community/data/category-ads-all
|
||||
cat temp-category-ads-all.txt | sort --ignore-case -u | perl -ne 'print if not /^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/' > reject-tld-list.txt
|
||||
|
||||
- name: Add `regexp` and `keyword` type of rules back into "cn", "geolocation-!cn" and "category-ads-all" list
|
||||
- name: Add `full`, `regexp` and `keyword` type of rules back into "cn", "geolocation-!cn" and "category-ads-all" list
|
||||
run: |
|
||||
[ -f "direct-reserve.txt" ] && cat direct-reserve.txt >> ./community/data/cn
|
||||
[ -f "proxy-reserve.txt" ] && cat proxy-reserve.txt >> ./community/data/geolocation-\!cn
|
||||
@@ -141,15 +153,21 @@ jobs:
|
||||
|
||||
- name: Create `google-cn`、`apple-cn`、`gfw`、`greatfire` lists
|
||||
run: |
|
||||
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > ./community/data/google-cn
|
||||
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > google-cn.txt
|
||||
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > ./community/data/apple-cn
|
||||
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > apple-cn.txt
|
||||
curl -sSL $GFWLIST_DOMAINS_URL | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' >> ./community/data/gfw
|
||||
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "full:$1\n"' > ./community/data/google-cn
|
||||
curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "full:$1\n"' > google-cn.txt
|
||||
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "full:$1\n"' > ./community/data/apple-cn
|
||||
curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "full:$1\n"' > apple-cn.txt
|
||||
cat ./gfwlist2dnsmasq/temp-gfwlist.txt | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' >> ./community/data/gfw
|
||||
curl -sSL $GFWLIST_EXTRAS_DOMAINS_URL | perl -ne 'print if not /^(#|\s)/' >> ./community/data/gfw
|
||||
cat ./community/data/gfw | sort --ignore-case -u > gfw.txt
|
||||
curl -sSL $GREATFIRE_DOMAINS_URL | perl -ne '/^((?=^.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)/ && print "$1\n"' >> ./community/data/greatfire
|
||||
cat ./community/data/greatfire | sort --ignore-case -u > greatfire.txt
|
||||
curl -sSL $WIN_SPY | grep "0.0.0.0" | awk '{print $2}' > ./community/data/win-spy
|
||||
curl -sSL $WIN_SPY | grep "0.0.0.0" | awk '{print $2}' > win-spy.txt
|
||||
curl -sSL $WIN_UPDATE | grep "0.0.0.0" | awk '{print $2}' > ./community/data/win-update
|
||||
curl -sSL $WIN_UPDATE | grep "0.0.0.0" | awk '{print $2}' > win-update.txt
|
||||
curl -sSL $WIN_EXTRA | grep "0.0.0.0" | awk '{print $2}' > ./community/data/win-extra
|
||||
curl -sSL $WIN_EXTRA | grep "0.0.0.0" | awk '{print $2}' > win-extra.txt
|
||||
|
||||
- name: Build geosite.dat file
|
||||
run: |
|
||||
@@ -160,17 +178,17 @@ jobs:
|
||||
run: |
|
||||
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 -Dp ./custom/publish/geosite.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/
|
||||
install -p {apple-cn,google-cn,gfw,greatfire,win-spy,win-update,win-extra}.txt ./publish/
|
||||
cd ./publish || exit 1
|
||||
zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat
|
||||
sha256sum geosite.dat > geosite.dat.sha256sum
|
||||
sha256sum rules.zip > rules.zip.sha256sum
|
||||
|
||||
- name: Release and upload assets
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: softprops/action-gh-release@v0.1.6
|
||||
with:
|
||||
name: ${{ env.RELEASE_NAME }}
|
||||
tag_name: ${{ env.TAG_NAME }}
|
||||
@@ -183,12 +201,19 @@ jobs:
|
||||
|
||||
- name: Git push assets to "release" branch
|
||||
run: |
|
||||
cd publish
|
||||
cd publish || exit 1
|
||||
git init
|
||||
git config --local user.name "actions"
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git checkout -b release
|
||||
git add .
|
||||
git commit -m "${{ env.RELEASE_NAME }}"
|
||||
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
|
||||
git push -f -u origin release
|
||||
|
||||
- name: Purge jsdelivr CDN
|
||||
run: |
|
||||
cd publish || exit 1
|
||||
for file in $(ls); do
|
||||
curl -i "https://purge.jsdelivr.net/gh/${{ github.repository }}@release/${file}"
|
||||
done
|
||||
|
||||
319
README.md
319
README.md
@@ -1,11 +1,6 @@
|
||||
# 简介
|
||||
|
||||
[**V2Ray**](https://github.com/v2fly/v2ray-core) 路由规则文件加强版,可代替 V2Ray 官方 `geoip.dat` 和 `geosite.dat` 规则文件,兼容 [**Trojan-Go**](https://github.com/p4gefau1t/trojan-go)。利用 GitHub Actions 北京时间每天早上 6 点自动构建,保证规则最新。
|
||||
|
||||
## 说明
|
||||
|
||||
- 本项目适用于命令行版本 V2Ray 客户端。第三方桌面图形界面版(GUI)V2Ray 客户端一般都有路由规则图形化配置界面,但一般也都支持使用自定义 V2Ray JSON 配置和 dat 规则文件,请自行研究并修改配置。第三方移动设备版 V2Ray 客户端情况比较复杂,大概率不支持使用自定义 V2Ray JSON 配置和 dat 规则文件,请知悉。
|
||||
- [Fork](https://github.com/Loyalsoldier/v2ray-rules-dat/fork) 本项目后,需要在自己仓库的 **[Settings]** 选项卡的 **[Secrets]** 页面中添加一个名为 **MAXMIND_GEOLITE2_LICENSE** 的 secret,否则 GitHub Actions 会运行失败。这个 secret 的值为 MAXMIND 账号的 LICENSE KEY,需要[**注册 MAXMIND 账号**](https://www.maxmind.com/en/geolite2/signup)后,在[**个人账号管理页面**](https://www.maxmind.com/en/account)左侧边栏的 **[Services]** 项下的 **[My License Key]** 里生成。
|
||||
[**V2Ray**](https://github.com/v2fly/v2ray-core) 路由规则文件加强版,可代替 V2Ray 官方 `geoip.dat` 和 `geosite.dat`,兼容 [Shadowsocks-windows](https://github.com/shadowsocks/shadowsocks-windows)、[Xray-core](https://github.com/XTLS/Xray-core)、[Trojan-Go](https://github.com/p4gefau1t/trojan-go) 和 [leaf](https://github.com/eycorsican/leaf)。利用 GitHub Actions 北京时间每天早上 6 点自动构建,保证规则最新。
|
||||
|
||||
## 规则文件生成方式
|
||||
|
||||
@@ -13,6 +8,17 @@
|
||||
|
||||
- 通过仓库 [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip) 生成
|
||||
- 其中全球 IP 地址(IPv4 和 IPv6)来源于 [MaxMind GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/),`CN`(中国大陆)类别下的 IPv4 地址来源于 [ipip.net](https://github.com/17mon/china_ip_list)
|
||||
- 新增类别(方便有特殊需求的用户使用):
|
||||
- `geoip:cloudflare`
|
||||
- `geoip:cloudfront`
|
||||
- `geoip:facebook`
|
||||
- `geoip:fastly`
|
||||
- `geoip:google`
|
||||
- `geoip:netflix`
|
||||
- `geoip:telegram`
|
||||
- `geoip:twitter`
|
||||
|
||||
> 希望定制 `geoip.dat` 文件?查看仓库 [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)。
|
||||
|
||||
### geosite.dat
|
||||
|
||||
@@ -22,8 +28,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) 检测到的在中国大陆被屏蔽的域名
|
||||
@@ -33,7 +39,13 @@
|
||||
- **加入 AdGuard DNS Filter 广告域名**:通过 [@AdGuard/DNS-filter](https://kb.adguard.com/en/general/adguard-ad-filters#dns-filter) 获取并加入到 `geosite:category-ads-all` 类别中
|
||||
- **加入 Peter Lowe 广告和隐私跟踪域名**:通过 [@PeterLowe/adservers](https://pgl.yoyo.org/adservers) 获取并加入到 `geosite:category-ads-all` 类别中
|
||||
- **加入 Dan Pollock 广告域名**:通过 [@DanPollock/hosts](https://someonewhocares.org/hosts) 获取并加入到 `geosite:category-ads-all` 类别中
|
||||
- **加入更多代理域名**:通过仓库 [@GeQ1an/Rules](https://github.com/GeQ1an/Rules/tree/master/QuantumultX) 和 [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master) 获取更多代理域名,并加入到 `geosite:geolocation-!cn` 类别中
|
||||
- **加入 Windows 操作系统相关的系统升级和隐私跟踪域名**:
|
||||
- 基于 [@crazy-max/WindowsSpyBlocker](https://github.com/crazy-max/WindowsSpyBlocker/tree/master/data/hosts) 数据
|
||||
- [**慎用**] Windows 操作系统使用的隐私跟踪域名 [@crazy-max/WindowsSpyBlocker/hosts/spy.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/spy.txt) 加入到 `geosite:win-spy` 类别中
|
||||
- [**慎用**] Windows 操作系统使用的系统升级域名 [@crazy-max/WindowsSpyBlocker/hosts/update.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/update.txt) 加入到 `geosite:win-update` 类别中
|
||||
- [**慎用**] Windows 操作系统附加的隐私跟踪域名 [@crazy-max/WindowsSpyBlocker/hosts/extra.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/extra.txt) 加入到 `geosite:win-extra` 类别中
|
||||
- 关于这三个类别的使用方式,请参考下面 [geosite 的 Routing 配置方式](https://github.com/Loyalsoldier/v2ray-rules-dat#geositedat-1)
|
||||
- **加入更多代理域名**:通过仓库 [@lhie1/Rules](https://github.com/lhie1/Rules/tree/master) 获取更多代理域名,并加入到 `geosite:geolocation-!cn` 类别中
|
||||
- **可添加自定义直连、代理和广告域名**:由于上游域名列表更新缓慢或缺失某些域名,所以引入**需要添加的域名**列表。[`hidden 分支`](https://github.com/Loyalsoldier/v2ray-rules-dat/tree/hidden)里的三个文件 `direct.txt`、`proxy.txt` 和 `reject.txt`,分别存放自定义的需要添加的直连、代理、广告域名,最终分别加入到 `geosite:cn`、`geosite:geolocation-!cn` 和 `geosite:category-ads-all` 类别中
|
||||
- **可移除自定义直连、代理和广告域名**:由于上游域名列表存在需要被移除的域名,所以引入**需要移除的域名**列表。[`hidden 分支`](https://github.com/Loyalsoldier/v2ray-rules-dat/tree/hidden)里的三个文件 `direct-need-to-remove.txt`、`proxy-need-to-remove.txt` 和 `reject-need-to-remove.txt`,分别存放自定义的需要从 `direct-list`(直连域名列表)、`proxy-list`(代理域名列表)和 `reject-list`(广告域名列表) 移除的域名
|
||||
|
||||
@@ -44,10 +56,10 @@
|
||||
> 如果无法访问域名 `raw.githubusercontent.com`,可以使用第二个地址(`cdn.jsdelivr.net`),但是内容更新会有 12 小时的延迟。
|
||||
|
||||
- **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://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat](https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/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://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/geosite.dat)
|
||||
- [https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat](https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/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://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt)
|
||||
@@ -70,21 +82,22 @@
|
||||
- **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)
|
||||
- **Windows 操作系统使用的隐私跟踪域名列表 win-spy.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-spy.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-spy.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-spy.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-spy.txt)
|
||||
- **Windows 操作系统使用的系统升级域名列表 win-update.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-update.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-update.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-update.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-update.txt)
|
||||
- **Windows 操作系统使用的附加隐私跟踪域名列表 win-extra.txt**:
|
||||
- [https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-extra.txt](https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/win-extra.txt)
|
||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-extra.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/win-extra.txt)
|
||||
|
||||
**使用方式**:
|
||||
|
||||
Windows 用户可通过 [Scoop](https://scoop.sh) 来安装:
|
||||
|
||||
```shell
|
||||
scoop bucket add sushi https://github.com/kidonng/sushi
|
||||
scoop install v2ray-rules-dat
|
||||
```
|
||||
|
||||
非 Windows 用户:
|
||||
|
||||
1. 点击上面下载地址,下载 `geoip.dat` 和 `geosite.dat`
|
||||
2. 把下载下来的 `geoip.dat` 和 `geosite.dat` 文件放入到 V2Ray 的规则文件目录,替换掉原来的 `geoip.dat` 和 `geosite.dat`
|
||||
3. 修改 V2Ray 配置文件,配置参考下面 👇👇👇
|
||||
1. 安装适用于自己操作系统的客户端(推荐 [V2Ray 客户端](https://www.v2fly.org/awesome/tools.html#%E7%AC%AC%E4%B8%89%E6%96%B9%E5%9B%BE%E5%BD%A2%E5%AE%A2%E6%88%B7%E7%AB%AF))
|
||||
2. 下载本项目的 `geoip.dat` 和 `geosite.dat`
|
||||
3. 把下载下来的 `geoip.dat` 和 `geosite.dat` 放入到客户端的规则文件目录,替换掉原来的 `geoip.dat` 和 `geosite.dat`
|
||||
4. 如果使用的是 V2Ray 客户端,配置可参考下面 👇👇👇
|
||||
|
||||
## 参考配置
|
||||
|
||||
@@ -118,7 +131,8 @@ scoop install v2ray-rules-dat
|
||||
"8.8.8.8/32",
|
||||
"8.8.4.4/32",
|
||||
"geoip:us",
|
||||
"geoip:ca"
|
||||
"geoip:ca",
|
||||
"geoip:telegram"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -127,7 +141,32 @@ scoop install v2ray-rules-dat
|
||||
|
||||
### geosite.dat
|
||||
|
||||
跟 V2Ray 官方 `geosite.dat` 配置方式相同。`geosite:apple-cn` 和 `geosite:google-cn` 为本项目特有的两个类别,分别包含 [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 和 [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 文件里的域名,供希望 Apple 和 Google 域名直连(不走代理)的用户使用。在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:apple-cn` 和 `geosite:google-cn` 要放置在 `geosite:geolocation-!cn` 前(上)面。配置参考下面 👇👇👇
|
||||
跟 V2Ray 官方 `geosite.dat` 配置方式相同。相比官方 `geosite.dat` 文件,本项目特有的类别:
|
||||
|
||||
- `geosite:apple-cn`:包含 [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 文件里的域名,供希望 Apple 域名直连(不走代理)的用户使用。
|
||||
- `geosite:google-cn`:包含 [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 文件里的域名,供希望 Google 域名直连(不走代理)的用户使用。
|
||||
- [**慎用**]`geosite:win-spy`:包含 [@crazy-max/WindowsSpyBlocker/hosts/spy.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/spy.txt) 文件里的域名,供希望屏蔽 Windows 操作系统隐私跟踪域名的用户使用。
|
||||
- [**慎用**]`geosite:win-update`:包含 [@crazy-max/WindowsSpyBlocker/hosts/update.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/update.txt) 文件里的域名,供希望屏蔽 Windows 操作系统自动升级的用户使用。
|
||||
- [**慎用**]`geosite:win-extra`:包含 [@crazy-max/WindowsSpyBlocker/hosts/extra.txt](https://github.com/crazy-max/WindowsSpyBlocker/blob/master/data/hosts/extra.txt) 文件里的域名,供希望屏蔽 Windows 操作系统附加隐私跟踪域名的用户使用。
|
||||
|
||||
> ⚠️ 注意:在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:apple-cn` 和 `geosite:google-cn` 要放置在 `geosite:geolocation-!cn` 前(上)面才能生效。
|
||||
|
||||
#### 高级用法
|
||||
|
||||
v2fly/domain-list-community 项目 [data](https://github.com/v2fly/domain-list-community/tree/master/data) 目录中某些列表里的规则会被标记诸如 `@cn` 的 attribute(如下所示),意为该域名在中国大陆有接入点,可直连。
|
||||
|
||||
```
|
||||
steampowered.com.8686c.com @cn
|
||||
steamstatic.com.8686c.com @cn
|
||||
```
|
||||
|
||||
对于玩 Steam 国区游戏,想要直连的用户,可以设置类别 `geosite:steam@cn` 为直连,意为将 [steam](https://github.com/v2fly/domain-list-community/blob/master/data/steam) 列表内所有被标记了 `@cn` attribute 的规则(域名)设置为直连。同理,由于 [category-games](https://github.com/v2fly/domain-list-community/blob/master/data/category-games) 列表包含了 `steam`、`ea`、`blizzard`、`epicgames` 和 `nintendo` 等常见的游戏厂商。设置类别 `geosite:category-games@cn` 为直连,即可节省大量服务器流量。
|
||||
|
||||
> ⚠️ 注意:在 Routing 配置中,类别越靠前(上),优先级越高,所以 `geosite:category-games@cn` 等所有带有 `@cn` attribute 的规则都要放置在 `geosite:geolocation-!cn` 前(上)面才能生效。
|
||||
>
|
||||
> `category-games` 列表内的规则(域名)可能会有疏漏,请留意规则命中情况。如发现遗漏,欢迎到项目 v2fly/domain-list-community 提 [issue](https://github.com/v2fly/domain-list-community/issues) 反馈。
|
||||
|
||||
#### 配置参考下面 👇👇👇
|
||||
|
||||
**白名单模式 Routing 配置方式**:
|
||||
|
||||
@@ -137,9 +176,7 @@ scoop install v2ray-rules-dat
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Reject",
|
||||
"domain": [
|
||||
"geosite:category-ads-all"
|
||||
]
|
||||
"domain": ["geosite:category-ads-all"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
@@ -148,27 +185,24 @@ scoop install v2ray-rules-dat
|
||||
"geosite:private",
|
||||
"geosite:apple-cn",
|
||||
"geosite:google-cn",
|
||||
"geosite:tld-cn"
|
||||
"geosite:tld-cn",
|
||||
"geosite:category-games@cn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"domain": [
|
||||
"geosite:geolocation-!cn"
|
||||
]
|
||||
"domain": ["geosite:geolocation-!cn"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Direct",
|
||||
"domain": [
|
||||
"geosite:cn"
|
||||
]
|
||||
"domain": ["geosite:cn"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"network": "tcp,udp"
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"network": "tcp,udp"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -182,114 +216,22 @@ scoop install v2ray-rules-dat
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Reject",
|
||||
"domain": [
|
||||
"geosite:category-ads-all"
|
||||
]
|
||||
"domain": ["geosite:category-ads-all"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"domain": [
|
||||
"geosite:tld-!cn",
|
||||
"geosite:gfw",
|
||||
"geosite:greatfire"
|
||||
]
|
||||
"domain": ["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"
|
||||
]
|
||||
"ip": ["geoip:telegram"]
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"network": "tcp,udp"
|
||||
"outboundTag": "Direct",
|
||||
"network": "tcp,udp"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -299,23 +241,30 @@ scoop install v2ray-rules-dat
|
||||
|
||||
```json
|
||||
"dns": {
|
||||
"hosts": {
|
||||
"dns.google": "8.8.8.8",
|
||||
"dns.pub": "119.29.29.29",
|
||||
"dns.alidns.com": "223.5.5.5",
|
||||
"geosite:category-ads-all": "127.0.0.1"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"domains": ["geosite:geolocation-!cn"],
|
||||
"expectIPs": ["geoip:!cn"]
|
||||
},
|
||||
"8.8.8.8",
|
||||
{
|
||||
"address": "114.114.114.114",
|
||||
"port": 53,
|
||||
"domains": [
|
||||
"geosite:cn"
|
||||
]
|
||||
"domains": ["geosite:cn", "geosite:category-games@cn"],
|
||||
"expectIPs": ["geoip:cn"],
|
||||
"skipFallback": true
|
||||
},
|
||||
{
|
||||
"address": "1.1.1.1",
|
||||
"port": 53,
|
||||
"domains": [
|
||||
"geosite:geolocation-!cn"
|
||||
]
|
||||
},
|
||||
"223.5.5.5",
|
||||
"8.8.8.8"
|
||||
"address": "localhost",
|
||||
"skipFallback": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
@@ -324,11 +273,11 @@ scoop install v2ray-rules-dat
|
||||
|
||||
注意事项:
|
||||
|
||||
- 由于下面客户端配置使用了 DoH (DNS over HTTPS) 功能,所以必须使用 v4.22.0 或更新版本的 [V2Ray](https://github.com/v2fly/v2ray-core/releases)
|
||||
- 由于下面客户端配置的 DNS 使用了 `skipFallback` 选项,所以必须使用 v4.37.2 或更新版本的 [V2Ray](https://github.com/v2fly/v2ray-core/releases)
|
||||
- 下面客户端配置使 V2Ray 在本机开启 SOCKS 代理(监听 1080 端口)和 HTTP 代理(监听 2080 端口),允许局域网内其他设备连接并使用代理
|
||||
- BT 流量统统直连(实测依然会有部分 BT 流量走代理,尚不清楚是不是 V2Ray 的 bug。如果服务商禁止 BT 下载的话,请不要为下载软件设置代理)
|
||||
- BT 流量统统直连(实测依然会有部分 BT 流量走代理,如果服务商禁止 BT 下载,请不要为下载软件设置代理)
|
||||
- 最后,不命中任何路由规则的请求和流量,统统走代理
|
||||
- `outbounds` 里的第一个大括号内的配置,即为 V2Ray 代理服务的配置。请根据自身需求进行修改,并参照 V2Ray 官网配置说明中的 [配置 > Outbounds > OutboundObject](https://www.v2fly.org/chapter_02/outbounds.html#outboundobject) 部分进行补全
|
||||
- `outbounds` 里的第一个大括号内的配置,即为 V2Ray 代理服务的配置。请根据自身需求进行修改,并参照 V2Ray 官网配置文档中的 [配置 > Outbounds > OutboundObject](https://www.v2fly.org/config/outbounds.html#outboundobject) 部分进行补全
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -338,25 +287,31 @@ scoop install v2ray-rules-dat
|
||||
"dns": {
|
||||
"hosts": {
|
||||
"dns.google": "8.8.8.8",
|
||||
"doh.pub": "119.29.29.29"
|
||||
"dns.pub": "119.29.29.29",
|
||||
"dns.alidns.com": "223.5.5.5",
|
||||
"geosite:category-ads-all": "127.0.0.1"
|
||||
},
|
||||
"servers": [
|
||||
"https://dns.google/dns-query",
|
||||
{
|
||||
"address": "https+local://223.5.5.5/dns-query",
|
||||
"domains": [
|
||||
"geosite:cn",
|
||||
"geosite:icloud"
|
||||
],
|
||||
"expectIPs": [
|
||||
"geoip:cn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"address": "https://1.1.1.1/dns-query",
|
||||
"domains": ["geosite:geolocation-!cn", "geosite:google@cn"],
|
||||
"expectIPs": ["geoip:!cn"]
|
||||
},
|
||||
"8.8.8.8",
|
||||
{
|
||||
"address": "114.114.114.114",
|
||||
"port": 53,
|
||||
"domains": [
|
||||
"geosite:geolocation-!cn"
|
||||
]
|
||||
"geosite:cn",
|
||||
"geosite:icloud",
|
||||
"geosite:category-games@cn"
|
||||
],
|
||||
"expectIPs": ["geoip:cn"],
|
||||
"skipFallback": true
|
||||
},
|
||||
{
|
||||
"address": "localhost",
|
||||
"skipFallback": true
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -420,6 +375,7 @@ scoop install v2ray-rules-dat
|
||||
],
|
||||
"routing": {
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"domainMatcher": "mph",
|
||||
"rules": [
|
||||
{
|
||||
"type": "field",
|
||||
@@ -429,26 +385,22 @@ scoop install v2ray-rules-dat
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Dns-Out",
|
||||
"inboundTag": [
|
||||
"Socks-In",
|
||||
"Http-In"
|
||||
],
|
||||
"inboundTag": ["Socks-In", "Http-In"],
|
||||
"network": "udp",
|
||||
"port": 53
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Reject",
|
||||
"domain": [
|
||||
"geosite:category-ads-all"
|
||||
]
|
||||
"domain": ["geosite:category-ads-all"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"domain": [
|
||||
"full:www.icloud.com",
|
||||
"domain:icloud-content.com"
|
||||
"domain:icloud-content.com",
|
||||
"geosite:google"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -456,31 +408,24 @@ scoop install v2ray-rules-dat
|
||||
"outboundTag": "Direct",
|
||||
"domain": [
|
||||
"geosite:tld-cn",
|
||||
"geosite:icloud"
|
||||
"geosite:icloud",
|
||||
"geosite:category-games@cn"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Proxy",
|
||||
"domain": [
|
||||
"geosite:geolocation-!cn"
|
||||
]
|
||||
"domain": ["geosite:geolocation-!cn"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Direct",
|
||||
"domain": [
|
||||
"geosite:cn",
|
||||
"geosite:private"
|
||||
]
|
||||
"domain": ["geosite:cn", "geosite:private"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"outboundTag": "Direct",
|
||||
"ip": [
|
||||
"geoip:cn",
|
||||
"geoip:private"
|
||||
]
|
||||
"ip": ["geoip:cn", "geoip:private"]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
@@ -492,6 +437,11 @@ scoop install v2ray-rules-dat
|
||||
}
|
||||
```
|
||||
|
||||
## 激赏 | Donation
|
||||
|
||||
- **比特币(BTC)bech32 地址**:bc1qfe4nxcanet4w4ph8pf6qqyf263y68vw26nv9j9
|
||||
- **比特币(BTC)地址**:3PRyneb1D7jFFBakAaJiCRSsxsXAtMr7LN
|
||||
|
||||
## 使用本项目的项目
|
||||
|
||||
- [@Loyalsoldier/clash-rules](https://github.com/Loyalsoldier/clash-rules)
|
||||
@@ -508,13 +458,12 @@ scoop install v2ray-rules-dat
|
||||
- [@pexcn/gfwlist-extras](https://github.com/pexcn/gfwlist-extras)
|
||||
- [@cokebar/gfwlist2dnsmasq](https://github.com/cokebar/gfwlist2dnsmasq)
|
||||
- [@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)
|
||||
- [@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)
|
||||
- [@DanPollock/hosts](https://someonewhocares.org/hosts)
|
||||
- [@kidonng/sushi](https://github.com/kidonng/sushi)
|
||||
- [@crazy-max/WindowsSpyBlocker](https://github.com/crazy-max/WindowsSpyBlocker)
|
||||
|
||||
## 项目 Star 数增长趋势
|
||||
|
||||
|
||||
Reference in New Issue
Block a user