add
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
|
||||
| 系统 | 点击下载 |
|
||||
|:-----|:-----|
|
||||
| Windows |[x86](https://stf.jkwlstv.cn/app/cfw_x86.exe) [Arm](https://stf.jkwlstv.cn/app/cfw_arm.exe)|
|
||||
| Mac |[Intel](https://stf.jkwlstv.cn/app/cfm_intel.dmg) [Arm](https://stf.jkwlstv.cn/app/cfm_arm.dmg)|
|
||||
| Android |[通用](https://stf.jkwlstv.cn/app/cmfa.apk)|
|
||||
| Windows |[x86](https://baidu.com/app/cfw_x86.exe) [Arm](https://baidu.com/app/cfw_arm.exe)|
|
||||
| Mac |[Intel](https://baidu.com/app/cfm_intel.dmg) [Arm](https://baidu.com/app/cfm_arm.dmg)|
|
||||
| Android |[通用](https://baidu.com/app/cmfa.apk)|
|
||||
|
||||
## Android
|
||||
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
|
||||
@@ -37,3 +37,196 @@ Potatso 是**免费**的,不差钱可以用 Shadowrocket。
|
||||
### 开启局域网代理(可选)
|
||||
<img src="./img/clash-pc-4.png" width="70%">
|
||||
<img src="./img/clash-pc-5.png" width="70%">
|
||||
|
||||
## Docker
|
||||
|
||||
```bash
|
||||
# 下载镜像
|
||||
wget https://baidu.com/app/cfd.tar
|
||||
# 导入
|
||||
docker load -i cfd.tar
|
||||
# 删除(可选)
|
||||
rm -rf cfd.tar
|
||||
```
|
||||
|
||||
### docker-compose.yaml
|
||||
|
||||
```yaml
|
||||
services:
|
||||
clash-premium:
|
||||
image: dreamacro/clash-premium:latest
|
||||
container_name: clash-premium
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 7890:7890
|
||||
- 7891:7891
|
||||
- 7892:7892
|
||||
- 9090:9090
|
||||
volumes:
|
||||
- ./data:/root/.config/clash
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
```
|
||||
|
||||
### config.yaml
|
||||
|
||||
**这是示例,真实有效的文件需要找群主要。**
|
||||
|
||||
```yaml
|
||||
port: 7890
|
||||
socks-port: 7891
|
||||
# redir-port: 7892
|
||||
allow-lan: true
|
||||
mode: Rule
|
||||
log-level: info
|
||||
# RESTful API for clash
|
||||
external-controller: 0.0.0.0:9090
|
||||
cfw-latency-timeout: 5000
|
||||
# 实验性功能
|
||||
experimental:
|
||||
ignore-resolve-fail: true
|
||||
hosts:
|
||||
'mtalk.google.com': 108.177.125.188
|
||||
|
||||
# 代理提供商
|
||||
proxy-providers:
|
||||
stf-proxy:
|
||||
type: http
|
||||
url: "https://baidu.com/proxies-202606.yaml"
|
||||
interval: 86400
|
||||
path: ./proxyset/proxies-202606.yaml
|
||||
|
||||
proxy-groups:
|
||||
# 自动选择延迟最低的节点
|
||||
- name: "AUTO_SELECT"
|
||||
type: url-test
|
||||
use:
|
||||
- stf-proxy
|
||||
url: 'http://www.gstatic.com/generate_204'
|
||||
interval: 7200
|
||||
# PROXY指向AUTO_SELECT
|
||||
- name: "PROXY"
|
||||
type: select
|
||||
proxies:
|
||||
- AUTO_SELECT
|
||||
|
||||
# 规则集提供商
|
||||
rule-providers:
|
||||
reject:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/reject.txt"
|
||||
path: ./ruleset/reject.yaml
|
||||
interval: 86400
|
||||
|
||||
icloud:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/icloud.txt"
|
||||
path: ./ruleset/icloud.yaml
|
||||
interval: 86400
|
||||
|
||||
apple:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/apple.txt"
|
||||
path: ./ruleset/apple.yaml
|
||||
interval: 86400
|
||||
|
||||
google:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/google.txt"
|
||||
path: ./ruleset/google.yaml
|
||||
interval: 86400
|
||||
|
||||
proxy:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/proxy.txt"
|
||||
path: ./ruleset/proxy.yaml
|
||||
interval: 86400
|
||||
|
||||
direct:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/direct.txt"
|
||||
path: ./ruleset/direct.yaml
|
||||
interval: 86400
|
||||
|
||||
private:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/private.txt"
|
||||
path: ./ruleset/private.yaml
|
||||
interval: 86400
|
||||
|
||||
gfw:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/gfw.txt"
|
||||
path: ./ruleset/gfw.yaml
|
||||
interval: 86400
|
||||
|
||||
tld-not-cn:
|
||||
type: http
|
||||
behavior: domain
|
||||
url: "https://baidu.com/tld-not-cn.txt"
|
||||
path: ./ruleset/tld-not-cn.yaml
|
||||
interval: 86400
|
||||
|
||||
telegramcidr:
|
||||
type: http
|
||||
behavior: ipcidr
|
||||
url: "https://baidu.com/telegramcidr.txt"
|
||||
path: ./ruleset/telegramcidr.yaml
|
||||
interval: 86400
|
||||
|
||||
cncidr:
|
||||
type: http
|
||||
behavior: ipcidr
|
||||
url: "https://baidu.com/cncidr.txt"
|
||||
path: ./ruleset/cncidr.yaml
|
||||
interval: 86400
|
||||
|
||||
lancidr:
|
||||
type: http
|
||||
behavior: ipcidr
|
||||
url: "https://baidu.com/lancidr.txt"
|
||||
path: ./ruleset/lancidr.yaml
|
||||
interval: 86400
|
||||
|
||||
applications:
|
||||
type: http
|
||||
behavior: classical
|
||||
url: "https://baidu.com/applications.txt"
|
||||
path: ./ruleset/applications.yaml
|
||||
interval: 86400
|
||||
|
||||
proxy-rule:
|
||||
behavior: classical
|
||||
type: http
|
||||
url: "https://baidu.com/yaml/clash-proxy.yaml"
|
||||
interval: 86400
|
||||
path: ./ruleset/jms-clash-proxy.yaml
|
||||
|
||||
# 规则集,从上到下顺序匹配
|
||||
rules:
|
||||
- RULE-SET,applications,DIRECT
|
||||
- DOMAIN,clash.razord.top,DIRECT
|
||||
- DOMAIN,yacd.haishan.me,DIRECT
|
||||
- RULE-SET,private,DIRECT
|
||||
- RULE-SET,reject,REJECT
|
||||
- RULE-SET,icloud,DIRECT
|
||||
- RULE-SET,apple,DIRECT
|
||||
- RULE-SET,google,PROXY
|
||||
- RULE-SET,proxy,PROXY
|
||||
- RULE-SET,proxy-rule,PROXY
|
||||
- RULE-SET,direct,DIRECT
|
||||
- RULE-SET,lancidr,DIRECT
|
||||
- RULE-SET,cncidr,DIRECT
|
||||
- RULE-SET,telegramcidr,PROXY
|
||||
- GEOIP,LAN,DIRECT
|
||||
- GEOIP,CN,DIRECT
|
||||
- MATCH,DIRECT
|
||||
```
|
||||
Reference in New Issue
Block a user