Compare commits

...

8 Commits

Author SHA1 Message Date
7055f29131 Rule: proxy google list in whitelist mode by default 2024-01-29 13:21:46 +08:00
98fe5fd593 Docs: clash & ecosystem backup 2023-11-05 22:17:48 +08:00
7a9894fa22 Chore: bump actions/checkout from 3 to 4 (#212) 2023-09-07 17:48:30 +08:00
3b76324b76 Feat: remove obsolete cn blocked domains 2023-04-23 15:17:57 +08:00
113caa01de Fix: update dep to suppress warning 2023-02-08 17:38:26 +08:00
52af20ac3c Docs: fix links & platform 2023-01-28 14:31:49 +08:00
9155127ee1 Docs: remove donation section 2022-08-30 21:18:27 +08:00
11ed3bf0c9 Revert "Feat: deprecate jsDelivr links"
This reverts commit fa12eabc89ae3f373d556f0d0846909a691d19aa.
2022-08-30 21:17:42 +08:00
2 changed files with 75 additions and 50 deletions

View File

@ -32,7 +32,7 @@ jobs:
shell: bash shell: bash
- name: Checkout the "hidden" branch - name: Checkout the "hidden" branch
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: hidden ref: hidden
@ -110,7 +110,7 @@ jobs:
cp *.txt ./publish/ cp *.txt ./publish/
- name: Release and upload assets - name: Release and upload assets
uses: softprops/action-gh-release@v0.1.6 uses: softprops/action-gh-release@v1
with: with:
name: ${{ env.RELEASE_NAME }} name: ${{ env.RELEASE_NAME }}
tag_name: ${{ env.TAG_NAME }} tag_name: ${{ env.TAG_NAME }}
@ -132,3 +132,10 @@ jobs:
git commit -m "${{ env.RELEASE_NAME }}" git commit -m "${{ env.RELEASE_NAME }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f origin release git push -f 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

114
README.md
View File

@ -6,39 +6,70 @@
本项目规则集RULE-SET的数据主要来源于项目 [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) 和 [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)[`Apple`](https://github.com/Loyalsoldier/clash-rules/blob/release/apple.txt) 和 [`Google`](https://github.com/Loyalsoldier/clash-rules/blob/release/google.txt) 列表里的域名来源于项目 [@felixonmars/dnsmasq-china-list](https://github.com/felixonmars/dnsmasq-china-list);中国大陆 IPv4 地址数据使用 [@17mon/china_ip_list](https://github.com/17mon/china_ip_list)。 本项目规则集RULE-SET的数据主要来源于项目 [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) 和 [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)[`Apple`](https://github.com/Loyalsoldier/clash-rules/blob/release/apple.txt) 和 [`Google`](https://github.com/Loyalsoldier/clash-rules/blob/release/google.txt) 列表里的域名来源于项目 [@felixonmars/dnsmasq-china-list](https://github.com/felixonmars/dnsmasq-china-list);中国大陆 IPv4 地址数据使用 [@17mon/china_ip_list](https://github.com/17mon/china_ip_list)。
本项目的规则集RULE-SET只适用于 Clash **Premium** 版本。Clash Premium 相对于普通版,增加了 **TUN 增强模式**,能接管设备所有 TCP 和 UDP 流量,类似 [Surge for Mac](https://nssurge.com) 的增强模式。更多高级特性请看[官方 wiki](https://github.com/Dreamacro/clash/wiki/premium-core-features) 本项目的规则集RULE-SET只适用于 Clash **Premium** 版本。Clash Premium 相对于普通版,增加了 **TUN 增强模式**,能接管设备所有 TCP 和 UDP 流量。
### Clash Premium 各版本下载地址 ### Clash Premium 各版本下载地址
- Clash Premium **命令行**版(适用于 Windows、macOS、Linux、OpenWRT 等多种平台):[https://github.com/Dreamacro/clash/releases/tag/premium](https://github.com/Dreamacro/clash/releases/tag/premium) > ⚠️ 由于 Clash 及其部分周边生态项目于 2023 年 11 月上旬删库跑路,现提供部分官方原版安装包、可执行文件,详情见 [**hidden**](https://github.com/Loyalsoldier/clash-rules/tree/hidden) 分支。
- Clash Premium **命令行**版:
- [官方版](https://github.com/Loyalsoldier/clash-rules/tree/hidden/software/clash-premium)(适用于 Windows、macOS、Linux、OpenWRT 等多种平台)
- [衍生版 Clash.Meta](https://github.com/MetaCubeX/Clash.Meta/releases)(适用于 Windows、macOS、Linux、OpenWRT 等多种平台)
- Clash Premium **图形用户界面**版: - Clash Premium **图形用户界面**版:
- [ClashX Pro](https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public)(适用于 macOS - [ClashN](https://github.com/2dust/clashN/releases)(适用于 Windows
- [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg/releases)(适用于 Windows、macOS - [ClashX Pro](https://github.com/Loyalsoldier/clash-rules/tree/hidden/software/clashx-pro)(适用于 macOS
- [Clash for Android](https://github.com/Kr328/ClashForAndroid/releases)(适用于 Android - [Clash-verge](https://github.com/zzzgydi/clash-verge/releases)(适用于 Windows、macOS、Linux
- [Clash for Windows](https://github.com/Loyalsoldier/clash-rules/tree/hidden/software/clash-for-windows)(适用于 Windows、macOS、Linux
- [Clash for Android](https://apkpure.com/clash-for-android/com.github.kr328.clash/versions)(适用于 Android
## 规则文件地址及使用方式 ## 规则文件地址及使用方式
### 在线地址URL ### 在线地址URL
- **直连域名列表 direct.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt) > 如果无法访问域名 `raw.githubusercontent.com`,可以使用第二个地址(`cdn.jsdelivr.net`),但是内容更新会有 12 小时的延迟。以下地址填写在 Clash 配置文件里的 `rule-providers` 里的 `url` 配置项中。
- **代理域名列表 proxy.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt)
- **广告域名列表 reject.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt) - **直连域名列表 direct.txt**
- **私有网络专用域名列表 private.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt) - [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt)
- **Apple 在中国大陆可直连的域名列表 apple.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt) - [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt)
- **iCloud 域名列表 icloud.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt) - **代理域名列表 proxy.txt**
- **[慎用]Google 在中国大陆可直连的域名列表 google.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt) - [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt)
- **GFWList 域名列表 gfw.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt) - [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt)
- **GreatFire 域名列表 greatfire.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/greatfire.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/greatfire.txt) - **广告域名列表 reject.txt**
- **非中国大陆使用的顶级域名列表 tld-not-cn.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt) - [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt)
- **Telegram 使用的 IP 地址列表 telegramcidr.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt) - [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt)
- **局域网 IP 及保留 IP 地址列表 lancidr.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt) - **私有网络专用域名列表 private.txt**
- **中国大陆 IP 地址列表 cncidr.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt) - [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt)
- **需要直连的常见软件列表 applications.txt**[https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt) - [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt)
- **Apple 在中国大陆可直连的域名列表 apple.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt)
- **iCloud 域名列表 icloud.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt)
- **[慎用]Google 在中国大陆可直连的域名列表 google.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt)
- **GFWList 域名列表 gfw.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt)
- **非中国大陆使用的顶级域名列表 tld-not-cn.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt)
- **Telegram 使用的 IP 地址列表 telegramcidr.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt)
- **局域网 IP 及保留 IP 地址列表 lancidr.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt)
- **中国大陆 IP 地址列表 cncidr.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt)
- **需要直连的常见软件列表 applications.txt**
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt)
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt)
### 使用方式 ### 使用方式
关于 Clash Premium 使用方式,请查看[官方文档](https://github.com/Dreamacro/clash/wiki/premium-core-features) 或 [Lancellc's GitBook](https://lancellc.gitbook.io/clash/)。
要想使用本项目的规则集,只需要在 Clash 配置文件中添加如下 `rule-providers``rules` 要想使用本项目的规则集,只需要在 Clash 配置文件中添加如下 `rule-providers``rules`
#### Rule Providers 配置方式 #### Rule Providers 配置方式
@ -48,98 +79,91 @@ rule-providers:
reject: reject:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml path: ./ruleset/reject.yaml
interval: 86400 interval: 86400
icloud: icloud:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
path: ./ruleset/icloud.yaml path: ./ruleset/icloud.yaml
interval: 86400 interval: 86400
apple: apple:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/apple.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
path: ./ruleset/apple.yaml path: ./ruleset/apple.yaml
interval: 86400 interval: 86400
google: google:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/google.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
path: ./ruleset/google.yaml path: ./ruleset/google.yaml
interval: 86400 interval: 86400
proxy: proxy:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/proxy.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
path: ./ruleset/proxy.yaml path: ./ruleset/proxy.yaml
interval: 86400 interval: 86400
direct: direct:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/direct.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
path: ./ruleset/direct.yaml path: ./ruleset/direct.yaml
interval: 86400 interval: 86400
private: private:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
path: ./ruleset/private.yaml path: ./ruleset/private.yaml
interval: 86400 interval: 86400
gfw: gfw:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/gfw.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
path: ./ruleset/gfw.yaml path: ./ruleset/gfw.yaml
interval: 86400 interval: 86400
greatfire:
type: http
behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/greatfire.txt"
path: ./ruleset/greatfire.yaml
interval: 86400
tld-not-cn: tld-not-cn:
type: http type: http
behavior: domain behavior: domain
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/tld-not-cn.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt"
path: ./ruleset/tld-not-cn.yaml path: ./ruleset/tld-not-cn.yaml
interval: 86400 interval: 86400
telegramcidr: telegramcidr:
type: http type: http
behavior: ipcidr behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/telegramcidr.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
path: ./ruleset/telegramcidr.yaml path: ./ruleset/telegramcidr.yaml
interval: 86400 interval: 86400
cncidr: cncidr:
type: http type: http
behavior: ipcidr behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/cncidr.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
path: ./ruleset/cncidr.yaml path: ./ruleset/cncidr.yaml
interval: 86400 interval: 86400
lancidr: lancidr:
type: http type: http
behavior: ipcidr behavior: ipcidr
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/lancidr.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
path: ./ruleset/lancidr.yaml path: ./ruleset/lancidr.yaml
interval: 86400 interval: 86400
applications: applications:
type: http type: http
behavior: classical behavior: classical
url: "https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/applications.txt" url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
path: ./ruleset/applications.yaml path: ./ruleset/applications.yaml
interval: 86400 interval: 86400
``` ```
@ -160,7 +184,7 @@ rules:
- RULE-SET,reject,REJECT - RULE-SET,reject,REJECT
- RULE-SET,icloud,DIRECT - RULE-SET,icloud,DIRECT
- RULE-SET,apple,DIRECT - RULE-SET,apple,DIRECT
- RULE-SET,google,DIRECT - RULE-SET,google,PROXY
- RULE-SET,proxy,PROXY - RULE-SET,proxy,PROXY
- RULE-SET,direct,DIRECT - RULE-SET,direct,DIRECT
- RULE-SET,lancidr,DIRECT - RULE-SET,lancidr,DIRECT
@ -185,20 +209,14 @@ rules:
- RULE-SET,reject,REJECT - RULE-SET,reject,REJECT
- RULE-SET,tld-not-cn,PROXY - RULE-SET,tld-not-cn,PROXY
- RULE-SET,gfw,PROXY - RULE-SET,gfw,PROXY
- RULE-SET,greatfire,PROXY
- RULE-SET,telegramcidr,PROXY - RULE-SET,telegramcidr,PROXY
- MATCH,DIRECT - MATCH,DIRECT
``` ```
## 激赏 | Donation
**比特币BTC地址**bc1qfe4nxcanet4w4ph8pf6qqyf263y68vw26nv9j9
## 致谢 ## 致谢
- [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip) - [@Loyalsoldier/geoip](https://github.com/Loyalsoldier/geoip)
- [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) - [@Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)
- [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain)
- [@gfwlist/gfwlist](https://github.com/gfwlist/gfwlist) - [@gfwlist/gfwlist](https://github.com/gfwlist/gfwlist)
- [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community) - [@v2fly/domain-list-community](https://github.com/v2fly/domain-list-community)
- [@felixonmars/dnsmasq-china-list](https://github.com/felixonmars/dnsmasq-china-list) - [@felixonmars/dnsmasq-china-list](https://github.com/felixonmars/dnsmasq-china-list)