-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig_example.yaml
90 lines (82 loc) · 1.68 KB
/
config_example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# see: https://github.com/Dreamacro/clash/wiki/configuration
external-controller: 0.0.0.0:9090
external-ui: /opt/clash/ui
secret: "MyPassword"
port: 7890
socks-port: 7891
redir-port: 7892
mixed-port: 7893
mode: rule
ipv6: false
allow-lan: true
log-level: info
dns:
enable: true
ipv6: false
listen: 0.0.0.0:53
default-nameserver:
- 114.114.114.114
- 8.8.8.8
enhanced-mode: fake-ip
fake-ip-range: 198.18.0.1/16
nameserver:
- 114.114.114.114
- 223.5.5.5
- 8.8.8.8
- tls://dns.rubyfish.cn:853 # DNS over TLS
- https://1.1.1.1/dns-query # DNS over HTTPS
- dhcp://en0 # dns from dhcp
proxies:
- name: "ss1"
type: ss
server: xxx.com
port: 12345
cipher: aes-256-gcm
password: xyz
udp: true
tls: true
- name: "ss2"
type: ss
server: yyy.com
port: 12345
cipher: aes-256-gcm
password: xyz
- name: "vmess3"
type: vmess
server: zzz.com
port: 12345
uuid: abcd-efg
alterId: 0
cipher: auto
udp: true
proxy-groups:
- name: "auto"
type: url-test
proxies:
- ss1
- ss2
- vmess3
url: "http://www.gstatic.com/generate_204"
interval: 300
- name: Proxy
type: select
proxies:
- ss1
- ss2
- vmess3
- vmess4
- vmess5
- auto
rules:
# - DOMAIN-SUFFIX,google.com,auto
# - DOMAIN-KEYWORD,google,auto
# - DOMAIN,google.com,auto
# - DOMAIN-SUFFIX,ad.com,REJECT
- SRC-IP-CIDR,192.168.1.201/32,DIRECT
# optional param "no-resolve" for IP rules (GEOIP, IP-CIDR, IP-CIDR6)
- IP-CIDR,127.0.0.0/8,DIRECT
- GEOIP,CN,DIRECT
- DST-PORT,80,DIRECT
- SRC-PORT,7777,DIRECT
# - RULE-SET,apple,REJECT # Premium only
- MATCH,auto