Compare commits
19 Commits
2020120222
...
2022051522
Author | SHA1 | Date | |
---|---|---|---|
9cf6161dbf | |||
1e6cb3c0e2 | |||
81c1ec313c | |||
e89dd8d764 | |||
6653b1818c | |||
a409fcb644 | |||
b10802d5f3 | |||
c3b9c36c72 | |||
9666b73222 | |||
3231f9422a | |||
0d943b72cf | |||
fcf4f979dc | |||
18c612c4e9 | |||
86a7c719b5 | |||
c210a589f0 | |||
5441d199cf | |||
49f7eb8a57 | |||
1e7b435701 | |||
7f13203f06 |
44
.github/workflows/run.yml
vendored
44
.github/workflows/run.yml
vendored
@ -18,6 +18,7 @@ jobs:
|
|||||||
echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
|
echo "TAG_NAME=$(date +%Y%m%d%H%M)" >> $GITHUB_ENV
|
||||||
echo "custom_icloud=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/icloud.txt" >> $GITHUB_ENV
|
echo "custom_icloud=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/icloud.txt" >> $GITHUB_ENV
|
||||||
echo "custom_tld_not_cn=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/tld-!cn.txt" >> $GITHUB_ENV
|
echo "custom_tld_not_cn=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/tld-!cn.txt" >> $GITHUB_ENV
|
||||||
|
echo "custom_private=https://raw.githubusercontent.com/Loyalsoldier/domain-list-custom/release/private.txt" >> $GITHUB_ENV
|
||||||
echo "Loyalsoldier_reject=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt" >> $GITHUB_ENV
|
echo "Loyalsoldier_reject=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/reject-list.txt" >> $GITHUB_ENV
|
||||||
echo "Loyalsoldier_proxy=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt" >> $GITHUB_ENV
|
echo "Loyalsoldier_proxy=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/proxy-list.txt" >> $GITHUB_ENV
|
||||||
echo "Loyalsoldier_direct=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt" >> $GITHUB_ENV
|
echo "Loyalsoldier_direct=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/direct-list.txt" >> $GITHUB_ENV
|
||||||
@ -25,12 +26,13 @@ jobs:
|
|||||||
echo "Loyalsoldier_greatfire=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/greatfire.txt" >> $GITHUB_ENV
|
echo "Loyalsoldier_greatfire=https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/greatfire.txt" >> $GITHUB_ENV
|
||||||
echo "felixonmars_apple=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV
|
echo "felixonmars_apple=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/apple.china.conf" >> $GITHUB_ENV
|
||||||
echo "felixonmars_google=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV
|
echo "felixonmars_google=https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/google.china.conf" >> $GITHUB_ENV
|
||||||
echo "ipipnet_chinaiplist=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt" >> $GITHUB_ENV
|
echo "cn_cidr=https://raw.githubusercontent.com/Loyalsoldier/geoip/release/text/cn.txt" >> $GITHUB_ENV
|
||||||
echo "telegram_cidr=https://core.telegram.org/resources/cidr.txt" >> $GITHUB_ENV
|
echo "lan_cidr=https://raw.githubusercontent.com/Loyalsoldier/geoip/release/text/private.txt" >> $GITHUB_ENV
|
||||||
|
echo "telegram_cidr=https://raw.githubusercontent.com/Loyalsoldier/geoip/release/text/telegram.txt" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Checkout the "hidden" branch
|
- name: Checkout the "hidden" branch
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: hidden
|
ref: hidden
|
||||||
|
|
||||||
@ -49,15 +51,23 @@ jobs:
|
|||||||
echo "payload:" > apple.txt
|
echo "payload:" > apple.txt
|
||||||
curl -sSL ${felixonmars_apple} | perl -ne '/^server=\/([^\/]+)\// && print " - |+.$1|\n"' | sed "s/|/'/g" >> apple.txt
|
curl -sSL ${felixonmars_apple} | perl -ne '/^server=\/([^\/]+)\// && print " - |+.$1|\n"' | sed "s/|/'/g" >> apple.txt
|
||||||
|
|
||||||
|
- name: Generate private.txt file
|
||||||
|
run: |
|
||||||
|
echo "payload:" > private.txt
|
||||||
|
curl -sSL ${custom_private} | awk -F ':' '/^full:/ {printf " - |%s|\n", $2}' | sed "s/|/'/g" >> private.txt
|
||||||
|
curl -sSL ${custom_private} | awk -F ':' '/^domain:/ {printf " - |+.%s|\n", $2}' | sed "s/|/'/g" >> private.txt
|
||||||
|
|
||||||
- name: Generate direct.txt file
|
- name: Generate direct.txt file
|
||||||
run: |
|
run: |
|
||||||
echo "payload:" > direct.txt
|
echo "payload:" > direct.txt
|
||||||
curl -sSL ${Loyalsoldier_direct} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(domain:|full:)?([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> direct.txt
|
curl -sSL ${Loyalsoldier_direct} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(full:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |$2|\n"' | sed "s/|/'/g" >> direct.txt
|
||||||
|
curl -sSL ${Loyalsoldier_direct} | grep -Ev "^(regexp|keyword|full):" | perl -ne '/^(domain:)?([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> direct.txt
|
||||||
|
|
||||||
- name: Generate proxy.txt file
|
- name: Generate proxy.txt file
|
||||||
run: |
|
run: |
|
||||||
echo "payload:" > proxy.txt
|
echo "payload:" > proxy.txt
|
||||||
curl -sSL ${Loyalsoldier_proxy} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(domain:|full:)?([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> proxy.txt
|
curl -sSL ${Loyalsoldier_proxy} | grep -Ev "^(regexp|keyword):" | perl -ne '/^(full:)([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |$2|\n"' | sed "s/|/'/g" >> proxy.txt
|
||||||
|
curl -sSL ${Loyalsoldier_proxy} | grep -Ev "^(regexp|keyword|full):" | perl -ne '/^(domain:)?([-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*)/ && print " - |+.$2|\n"' | sed "s/|/'/g" >> proxy.txt
|
||||||
|
|
||||||
- name: Generate reject.txt file
|
- name: Generate reject.txt file
|
||||||
run: |
|
run: |
|
||||||
@ -82,20 +92,25 @@ jobs:
|
|||||||
- name: Generate cncidr.txt file
|
- name: Generate cncidr.txt file
|
||||||
run: |
|
run: |
|
||||||
echo "payload:" > cncidr.txt
|
echo "payload:" > cncidr.txt
|
||||||
curl -sSL ${ipipnet_chinaiplist} | perl -ne '/^(\d{1,3}(\.\d{1,3}){3}\/\d{1,2})/ && print " - |$1|\n"' | sed "s/|/'/g" >> cncidr.txt
|
curl -sSL ${cn_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> cncidr.txt
|
||||||
|
|
||||||
- name: Generate telegramcidr.txt file
|
- name: Generate telegramcidr.txt file
|
||||||
run: |
|
run: |
|
||||||
echo "payload:" > telegramcidr.txt
|
echo "payload:" > telegramcidr.txt
|
||||||
curl -sSL ${telegram_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> telegramcidr.txt
|
curl -sSL ${telegram_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> telegramcidr.txt
|
||||||
|
|
||||||
|
- name: Generate lancidr.txt file
|
||||||
|
run: |
|
||||||
|
echo "payload:" > lancidr.txt
|
||||||
|
curl -sSL ${lan_cidr} | perl -ne '/(.+\/\d+)/ && print " - |$1|\n"' | sed "s/|/'/g" >> lancidr.txt
|
||||||
|
|
||||||
- name: Move files to publish directory
|
- name: Move files to publish directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p publish
|
mkdir -p publish
|
||||||
install -p {apple,icloud,google,proxy,direct,reject,gfw,greatfire,tld-not-cn,cncidr,lancidr,telegramcidr}.txt ./publish/
|
cp *.txt ./publish/
|
||||||
|
|
||||||
- name: Release and upload assets
|
- name: Release and upload assets
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v0.1.6
|
||||||
with:
|
with:
|
||||||
name: ${{ env.RELEASE_NAME }}
|
name: ${{ env.RELEASE_NAME }}
|
||||||
tag_name: ${{ env.TAG_NAME }}
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
@ -108,12 +123,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Git push assets to "release" branch
|
- name: Git push assets to "release" branch
|
||||||
run: |
|
run: |
|
||||||
cd publish
|
cd publish || exit 1
|
||||||
git init
|
git init
|
||||||
git config --local user.name "actions"
|
git config --local user.name "github-actions[bot]"
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git checkout -b release
|
git checkout -b release
|
||||||
git add .
|
git add .
|
||||||
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
|
||||||
|
126
README.md
126
README.md
@ -1,18 +1,20 @@
|
|||||||
# 简介
|
# 简介
|
||||||
|
|
||||||
本项目生成适用于 [**Clash Premium**](https://github.com/Dreamacro/clash/releases/tag/premium) 的规则集(RULE-SET)。使用 GitHub Actions 北京时间每天早上 6:30 自动构建,保证规则最新。
|
本项目生成适用于 [**Clash Premium 内核**](https://github.com/Dreamacro/clash/releases/tag/premium)的规则集(RULE-SET),同时适用于所有使用 Clash Premium 内核的 Clash 图形用户界面(GUI)客户端。使用 GitHub Actions 北京时间每天早上 6:30 自动构建,保证规则最新。
|
||||||
|
|
||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
本项目的规则集(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 流量,类似 [Surge for Mac](https://nssurge.com) 的增强模式。更多高级特性请看[官方 wiki](https://github.com/Dreamacro/clash/wiki/premium-core-features)。
|
||||||
|
|
||||||
### Clash 各版本下载地址
|
### 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 Premium **命令行**版(适用于 Windows、macOS、Linux、OpenWRT 等多种平台):[https://github.com/Dreamacro/clash/releases/tag/premium](https://github.com/Dreamacro/clash/releases/tag/premium)
|
||||||
- Clash Premium **图形用户界面**版(ClashX Pro,兼容 macOS):[https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public](https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public)
|
- Clash Premium **图形用户界面**版:
|
||||||
- Clash Premium **图形用户界面**版(Clash for Windows,兼容 Windows、macOS):[https://github.com/Fndroid/clash_for_windows_pkg/releases](https://github.com/Fndroid/clash_for_windows_pkg/releases)
|
- [ClashX Pro](https://install.appcenter.ms/users/clashx/apps/clashx-pro/distribution_groups/public)(适用于 macOS)
|
||||||
|
- [Clash for Windows](https://github.com/Fndroid/clash_for_windows_pkg/releases)(适用于 Windows、macOS)
|
||||||
|
- [Clash for Android](https://github.com/Kr328/ClashForAndroid/releases)(适用于 Android)
|
||||||
|
|
||||||
## 规则文件地址及使用方式
|
## 规则文件地址及使用方式
|
||||||
|
|
||||||
@ -29,13 +31,16 @@
|
|||||||
- **广告域名列表 reject.txt**:
|
- **广告域名列表 reject.txt**:
|
||||||
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt)
|
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt)
|
||||||
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt)
|
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt)
|
||||||
- **Apple 域名列表 apple.txt**:
|
- **私有网络专用域名列表 private.txt**:
|
||||||
|
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/private.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://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)
|
- [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**:
|
- **iCloud 域名列表 icloud.txt**:
|
||||||
- [https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/icloud.txt](https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/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)
|
- [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**:
|
- **[慎用]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/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)
|
- [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**:
|
- **GFWList 域名列表 gfw.txt**:
|
||||||
@ -53,9 +58,12 @@
|
|||||||
- **局域网 IP 及保留 IP 地址列表 lancidr.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://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)
|
- [https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt](https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt)
|
||||||
- **中国大陆 IPv4 地址列表 cncidr.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/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)
|
- [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)
|
||||||
|
|
||||||
### 使用方式
|
### 使用方式
|
||||||
|
|
||||||
@ -109,6 +117,13 @@ rule-providers:
|
|||||||
path: ./ruleset/direct.yaml
|
path: ./ruleset/direct.yaml
|
||||||
interval: 86400
|
interval: 86400
|
||||||
|
|
||||||
|
private:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
|
||||||
|
path: ./ruleset/private.yaml
|
||||||
|
interval: 86400
|
||||||
|
|
||||||
gfw:
|
gfw:
|
||||||
type: http
|
type: http
|
||||||
behavior: domain
|
behavior: domain
|
||||||
@ -150,6 +165,13 @@ rule-providers:
|
|||||||
url: "https://cdn.jsdelivr.net/gh/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:
|
||||||
|
type: http
|
||||||
|
behavior: classical
|
||||||
|
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
|
||||||
|
path: ./ruleset/applications.yaml
|
||||||
|
interval: 86400
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 白名单模式 Rules 配置方式(推荐)
|
#### 白名单模式 Rules 配置方式(推荐)
|
||||||
@ -161,33 +183,20 @@ rule-providers:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
rules:
|
rules:
|
||||||
- PROCESS-NAME,v2ray,DIRECT
|
- RULE-SET,applications,DIRECT
|
||||||
- PROCESS-NAME,Surge%203,DIRECT
|
|
||||||
- PROCESS-NAME,ss-local,DIRECT
|
|
||||||
- PROCESS-NAME,privoxy,DIRECT
|
|
||||||
- PROCESS-NAME,trojan,DIRECT
|
|
||||||
- PROCESS-NAME,trojan-go,DIRECT
|
|
||||||
- PROCESS-NAME,naive,DIRECT
|
|
||||||
- PROCESS-NAME,Thunder,DIRECT
|
|
||||||
- PROCESS-NAME,DownloadService,DIRECT
|
|
||||||
- PROCESS-NAME,qBittorrent,DIRECT
|
|
||||||
- PROCESS-NAME,Transmission,DIRECT
|
|
||||||
- PROCESS-NAME,fdm,DIRECT
|
|
||||||
- PROCESS-NAME,aria2c,DIRECT
|
|
||||||
- PROCESS-NAME,Folx,DIRECT
|
|
||||||
- PROCESS-NAME,NetTransport,DIRECT
|
|
||||||
- PROCESS-NAME,uTorrent,DIRECT
|
|
||||||
- PROCESS-NAME,WebTorrent,DIRECT
|
|
||||||
- DOMAIN,clash.razord.top,DIRECT
|
- DOMAIN,clash.razord.top,DIRECT
|
||||||
- DOMAIN,yacd.haishan.me,DIRECT
|
- DOMAIN,yacd.haishan.me,DIRECT
|
||||||
|
- RULE-SET,private,DIRECT
|
||||||
- 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,DIRECT
|
||||||
- RULE-SET,proxy,PROXY
|
- RULE-SET,proxy,PROXY
|
||||||
- RULE-SET,direct,DIRECT
|
- RULE-SET,direct,DIRECT
|
||||||
|
- RULE-SET,lancidr,DIRECT
|
||||||
|
- RULE-SET,cncidr,DIRECT
|
||||||
- RULE-SET,telegramcidr,PROXY
|
- RULE-SET,telegramcidr,PROXY
|
||||||
- GEOIP,,DIRECT
|
- GEOIP,LAN,DIRECT
|
||||||
- GEOIP,CN,DIRECT
|
- GEOIP,CN,DIRECT
|
||||||
- MATCH,PROXY
|
- MATCH,PROXY
|
||||||
```
|
```
|
||||||
@ -199,72 +208,33 @@ rules:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
rules:
|
rules:
|
||||||
- PROCESS-NAME,v2ray,DIRECT
|
- RULE-SET,applications,DIRECT
|
||||||
- PROCESS-NAME,Surge%203,DIRECT
|
|
||||||
- PROCESS-NAME,ss-local,DIRECT
|
|
||||||
- PROCESS-NAME,privoxy,DIRECT
|
|
||||||
- PROCESS-NAME,trojan,DIRECT
|
|
||||||
- PROCESS-NAME,trojan-go,DIRECT
|
|
||||||
- PROCESS-NAME,naive,DIRECT
|
|
||||||
- PROCESS-NAME,Thunder,DIRECT
|
|
||||||
- PROCESS-NAME,DownloadService,DIRECT
|
|
||||||
- PROCESS-NAME,qBittorrent,DIRECT
|
|
||||||
- PROCESS-NAME,Transmission,DIRECT
|
|
||||||
- PROCESS-NAME,fdm,DIRECT
|
|
||||||
- PROCESS-NAME,aria2c,DIRECT
|
|
||||||
- PROCESS-NAME,Folx,DIRECT
|
|
||||||
- PROCESS-NAME,NetTransport,DIRECT
|
|
||||||
- PROCESS-NAME,uTorrent,DIRECT
|
|
||||||
- PROCESS-NAME,WebTorrent,DIRECT
|
|
||||||
- DOMAIN,clash.razord.top,DIRECT
|
- DOMAIN,clash.razord.top,DIRECT
|
||||||
- DOMAIN,yacd.haishan.me,DIRECT
|
- DOMAIN,yacd.haishan.me,DIRECT
|
||||||
|
- RULE-SET,private,DIRECT
|
||||||
- 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,greatfire,PROXY
|
||||||
- RULE-SET,telegramcidr,PROXY
|
- RULE-SET,telegramcidr,PROXY
|
||||||
- GEOIP,AE,PROXY
|
|
||||||
- GEOIP,AU,PROXY
|
|
||||||
- GEOIP,BR,PROXY
|
|
||||||
- GEOIP,CA,PROXY
|
|
||||||
- GEOIP,DE,PROXY
|
|
||||||
- GEOIP,DK,PROXY
|
|
||||||
- GEOIP,ES,PROXY
|
|
||||||
- GEOIP,FI,PROXY
|
|
||||||
- GEOIP,FR,PROXY
|
|
||||||
- GEOIP,GB,PROXY
|
|
||||||
- GEOIP,GR,PROXY
|
|
||||||
- GEOIP,HK,PROXY
|
|
||||||
- GEOIP,ID,PROXY
|
|
||||||
- GEOIP,IL,PROXY
|
|
||||||
- GEOIP,IN,PROXY
|
|
||||||
- GEOIP,IQ,PROXY
|
|
||||||
- GEOIP,IR,PROXY
|
|
||||||
- GEOIP,IT,PROXY
|
|
||||||
- GEOIP,JP,PROXY
|
|
||||||
- GEOIP,KR,PROXY
|
|
||||||
- GEOIP,MO,PROXY
|
|
||||||
- GEOIP,MY,PROXY
|
|
||||||
- GEOIP,NL,PROXY
|
|
||||||
- GEOIP,NO,PROXY
|
|
||||||
- GEOIP,NZ,PROXY
|
|
||||||
- GEOIP,PH,PROXY
|
|
||||||
- GEOIP,RU,PROXY
|
|
||||||
- GEOIP,SA,PROXY
|
|
||||||
- GEOIP,SG,PROXY
|
|
||||||
- GEOIP,TH,PROXY
|
|
||||||
- GEOIP,TR,PROXY
|
|
||||||
- GEOIP,TW,PROXY
|
|
||||||
- GEOIP,US,PROXY
|
|
||||||
- GEOIP,VN,PROXY
|
|
||||||
- MATCH,DIRECT
|
- MATCH,DIRECT
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 激赏 | Donation
|
||||||
|
|
||||||
|
- **比特币(BTC)bech32 地址**:bc1qfe4nxcanet4w4ph8pf6qqyf263y68vw26nv9j9
|
||||||
|
- **比特币(BTC)地址**:3PRyneb1D7jFFBakAaJiCRSsxsXAtMr7LN
|
||||||
|
|
||||||
## 致谢
|
## 致谢
|
||||||
|
|
||||||
|
- [@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)
|
- [@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)
|
||||||
- [@17mon/china_ip_list](https://github.com/17mon/china_ip_list)
|
- [@17mon/china_ip_list](https://github.com/17mon/china_ip_list)
|
||||||
|
|
||||||
|
## 项目 Star 数增长趋势
|
||||||
|
|
||||||
|
[](https://starchart.cc/Loyalsoldier/clash-rules)
|
||||||
|
Reference in New Issue
Block a user