forked from xjdrew/kone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.ini
94 lines (77 loc) · 1.62 KB
/
example.ini
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
[general]
# outbound network interface
#out = eth0
# virtual network
# tun name, auto allocate if not set
# DEFAULT VALUE: ""
# tun = tun0
# inet addr/mask
# DEFAULT VALUE: 10.192.0.1/16
network = 10.192.0.1/16
# nat config
[tcp]
#listen-port = 82
#nat-port-start = 10000
#nat-port-end = 60000
[udp]
#listen-port = 82
#nat-port-start = 10000
#nat-port-end = 60000
[dns]
# DEFAULT VALUE: 53
# dns-port = 53
# backend dns
# DEFAULT VALUE: 114.114.114.114, 223.5.5.5
# nameserver = 172.16.100.200
# nameserver = 172.16.100.202
# dns-ttl = 600
# dns-packet-size = 4096
# dns-read-timeout = 5
# dns-write-timeout = 5
# define a proxy named "A"
[proxy "A"]
url = http://example.com:3228
# define a proxy named "B"
[proxy "B"]
url = socks5://example.com:2080
default = yes
# define a pattern and outbound proxy
# if don't set proxy, packets will be sent to target directly
[pattern "proxy-website"]
proxy = A
scheme = DOMAIN-SUFFIX
v = twitter.com
v = facebook.com
[pattern "proxy-website-keyword"]
proxy = B
scheme = DOMAIN-KEYWORD
v = google
v = gmail
[pattern "direct-website"]
scheme = DOMAIN-SUFFIX
v = cn
v = apple.com
[pattern "direct-website-keyword"]
scheme = DOMAIN-KEYWORD
v = baidu
v = qq
[pattern "internal-ip"]
scheme = IP-CIDR
v = 172.16.0.0/16
v = 192.168.0.0/16
[pattern "proxy-country"]
proxy = B
scheme = IP-COUNTRY
v = US
v = HK
# rules define the order of checking pattern
[rule]
pattern = proxy-website
pattern = proxy-website-keyword
pattern = direct-website
pattern = direct-website-keyword
pattern = internal-ip
pattern = proxy-country
# set to a proxy for domaines that don't match any pattern
# DEFAULT VALUE: ""
# final = A