-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
77 lines (70 loc) · 1.35 KB
/
config.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
mixed-port: 7890
redir-port: 7892
allow-lan: true
mode: Rule
log-level: warning
external-controller: 0.0.0.0:9090
external-ui: dashboard
secret: ""
dns:
enable: true
listen: 0.0.0.0:1053
fake-ip-range: 198.18.0.1/16
ipv6: false
enhanced-mode: redir-host
nameserver:
- 114.114.114.114
- 223.5.5.5
# - tls://dns.rubyfish.cn:853
fallback:
- https://dns.google/dns-query
- tls://1.1.1.1
fallback-filter:
geoip: true
ipcidr:
- 240.0.0.0/4
#tun:
# enable: true
# stack: system
# dns-hijack:
# - tcp://8.8.8.8:53
interface-name: en0
proxy-groups:
- name: PROXY
type: select
proxies:
- AUTO
use:
- my_provider
- name: AUTO
use:
- my_provider
type: url-test
url: http://www.gstatic.com/generate_204
interval: 3600
- name: 国内站点
type: select
proxies:
- DIRECT
proxy-providers:
my_provider:
type: file
path: ./proxies.yaml
health-check:
enable: true
interval: 36000
url: http://www.gstatic.com/generate_204
rule-providers:
my_proxy_rules:
type: file
behavior: classical
path: ./my_proxy_rules.yaml
my_direct_rules:
type: file
behavior: classical
path: ./my_direct_rules.yaml
rules:
- RULE-SET,my_direct_rules,DIRECT
- GEOIP,CN,国内站点
- RULE-SET,my_proxy_rules,PROXY
- MATCH,PROXY