Skip to content

Commit f56fe84

Browse files
committed
feat: 添加 Clash 和 Mosdns 配置文件示例
1 parent 95196a8 commit f56fe84

File tree

3 files changed

+417
-0
lines changed

3 files changed

+417
-0
lines changed

_example/clash.yaml

+146
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# clash 配置文件示例, 注意配合 luci-app-openclash 使用
2+
# 结合自己情况调整,直接复制不是好文明,建议先看一遍理解一下,补上需要的。
3+
4+
ipv6: true
5+
6+
proxies:
7+
- name: "example"
8+
type: vmess
9+
server: "example.com"
10+
port: 443
11+
uuid: "00000000-0000-0000-0000-000000000000"
12+
alterId: 0
13+
cipher: auto
14+
tls: true
15+
servername: example.com
16+
network: ws
17+
ws-path: "/example"
18+
ws-headers:
19+
Host: example.com
20+
21+
proxy-groups:
22+
- name: PROXY
23+
type: select
24+
proxies:
25+
- example
26+
- main
27+
- backup
28+
- DIRECT
29+
- name: AIGC
30+
type: select
31+
use:
32+
- main
33+
- name: main
34+
type: select
35+
use:
36+
- main
37+
- name: backup
38+
type: select
39+
use:
40+
- backup
41+
- name: Unmached
42+
type: select
43+
proxies:
44+
- DIRECT
45+
- PROXY
46+
47+
proxy-providers:
48+
main:
49+
type: http
50+
url: example.com
51+
interval: 3600
52+
path: ./profiles/main.yaml
53+
health-check:
54+
enable: false
55+
url: http://www.gstatic.com/generate_204
56+
interval: 300
57+
backup:
58+
type: http
59+
url: example.com
60+
interval: 3600
61+
path: ./profiles/backup.yaml
62+
health-check:
63+
enable: false
64+
url: http://www.gstatic.com/generate_204
65+
interval: 300
66+
67+
rule-providers:
68+
reject:
69+
type: http
70+
behavior: domain
71+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
72+
path: ./ruleset/reject.yaml
73+
interval: 86400
74+
icloud:
75+
type: http
76+
behavior: domain
77+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
78+
path: ./ruleset/icloud.yaml
79+
interval: 86400
80+
apple:
81+
type: http
82+
behavior: domain
83+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
84+
path: ./ruleset/apple.yaml
85+
interval: 86400
86+
direct:
87+
type: http
88+
behavior: domain
89+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
90+
path: ./ruleset/direct.yaml
91+
interval: 86400
92+
proxy:
93+
type: http
94+
behavior: domain
95+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
96+
path: ./ruleset/proxy.yaml
97+
interval: 86400
98+
gfw:
99+
type: http
100+
behavior: domain
101+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
102+
path: ./ruleset/gfw.yaml
103+
interval: 86400
104+
telegramcidr:
105+
type: http
106+
behavior: ipcidr
107+
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
108+
path: ./ruleset/telegramcidr.yaml
109+
interval: 86400
110+
ai:
111+
type: http
112+
behavior: classical
113+
format: text
114+
interval: 43200
115+
url: https://ruleset.skk.moe/Clash/non_ip/ai.txt
116+
path: ./ruleset/ai.txt
117+
118+
rules:
119+
- DOMAIN,clash.razord.top,DIRECT
120+
- DOMAIN,yacd.haishan.me,DIRECT
121+
- RULE-SET,reject,REJECT
122+
- RULE-SET,ai,AIGC
123+
- IP-CIDR,8.8.8.8/32,PROXY
124+
- IP-CIDR,1.1.1.1/32,PROXY
125+
- IP-CIDR,8.8.4.4/32,PROXY
126+
- IP-CIDR,1.0.0.1/32,PROXY
127+
- IP-CIDR,192.168.3.2/32,DIRECT
128+
- DOMAIN,cdn.jsdelivr.net,PROXY
129+
- DOMAIN,assets.fanart.tv,PROXY
130+
- RULE-SET,telegramcidr,PROXY
131+
- RULE-SET,icloud,DIRECT
132+
- RULE-SET,apple,DIRECT
133+
- RULE-SET,gfw,PROXY
134+
- RULE-SET,direct,DIRECT
135+
- RULE-SET,proxy,PROXY
136+
- GEOIP,CN,DIRECT
137+
- MATCH,Unmached
138+
139+
dns:
140+
nameserver:
141+
- gwdns
142+
fallback:
143+
- https://8.8.8.8/dns-query
144+
- https://1.1.1.1/dns-query
145+
proxy-server-nameserver:
146+
- gwdns

_example/ddnslist.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 黑名单ip
2+
3+
# Github Pages
4+
192.30.252.153/32
5+
192.30.252.154/32
6+
185.199.108.153/32
7+
185.199.109.153/32
8+
185.199.110.153/32
9+
185.199.111.153/32
10+
2606:50c0:8000::153/128
11+
2606:50c0:8001::153/128
12+
2606:50c0:8002::153/128
13+
2606:50c0:8003::153/128

0 commit comments

Comments
 (0)