-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.yaml
executable file
·110 lines (110 loc) · 3.35 KB
/
profile.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# This is the local http proxy server port.
# Note there is another SOCKS5 proxy server starts at port+1 automatically.
port: 9090
# Adapter is the remote proxy server you want to connect to
adapter:
# id is used to distinguish adapter when defining rules.
# There is a 'direct' adapter that connect directly to target host without proxy.
- id: adapter1
# HTTP server is a http proxy server.
type: HTTP
host: http.proxy
port: 3128
auth: true
username: proxy_username
password: proxy_password
- id: adapter2
# SHTTP server is a http proxy server on SSL.
type: SHTTP
host: http.proxy.connect.via.https
port: 3128
auth: true
username: proxy_username
password: proxy_password
- id: adapter3
type: ss
host: 8.8.8.8
port: 80
# Currently support: AES-128-CFB, AES-192-CFB, AES-256-CFB, chacha20, salsa20, rc4-md5
# Shadowsocks encryption methods are not fully tested, please report if there is anything not working.
method: AES-256-CFB
password: proxy_password
# Do not use ota: true, use protocol: verify_sha1 instead.
protocol: verify_sha1
- id: adapter4
type: socks5
host: socks5.server
port: 3128
# Speed adapter automatically connects to all specified adapters (with given delay)
# and uses the fastest one that becomes ready.
- id: proxy
type: SPEED
adapters:
- id: adapter1
# Delay in milliseconds.
delay: 0
- id: adapter2
delay: 0
- id: adapter3
delay: 0
- id: speed
type: SPEED
adapters:
- id: proxy
delay: 300
- id: direct
delay: 0
# Disconnect after given delay without connecting to remote.
- id: reject
type: reject
# It's very important to set a delay since some apps may try to reconnect repeatedly.
delay: 300
# Here defines how things should work.
# Rule will be matched one by one.
rule:
- type: list
# Forward requests based on whether the host domain matches the given regular expressions.
file: ~/.SpechtLite/proxylist
adapter: proxy
- type: iplist
# Forward polluted host IP address
file: ~/.SpechtLite/pollutedip
adapter: proxy
- type: list
# Forward requests based on whether the host domain matches the given regular expressions.
file: ~/.SpechtLite/directlist
adapter: direct
- type: iplist
# Forward requests based on the IP address of the host.
file: ~/.SpechtLite/proxyiprange
adapter: proxy
- type: list
# Reject requests based on whether the host domain matches the given regular expressions.
file: ~/.SpechtLite/rejectlist
adapter: reject
- type: iplist
# Reject requests based on the IP address of the host.
file: ~/.SpechtLite/rejectiprange
adapter: reject
- type: iplist
# Forward requests based on the IP address of the host.
file: ~/.SpechtLite/directiprange
adapter: direct
- type: country
# When the location is unknown. Usually this means this is resolved an Intranet IP.
country: CN
match: true
adapter: direct
- type: country
# When the location is unknown. Usually this means this is resolved an Intranet IP.
country: --
match: true
adapter: direct
- type: DNSFail
# When the DNS lookup of the host fails.
adapter: proxy
#adapter: direct
- type: all
# Match all other requests.
adapter: proxy
#adapter: direct