-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-3.5.21.16.xml
273 lines (273 loc) · 17.1 KB
/
config-3.5.21.16.xml
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<config programVersion='1.0' configVersion='0'>
<listen ip='*' port='80' type='http'/>
<listen ip='*' port='3311' type='manage'/>
<lang>zh_CN</lang>
<keep_alive>30</keep_alive>
<keep_alive_count>2000</keep_alive_count>
<timeout>60</timeout>
<connect_timeout>10</connect_timeout>
<min_free_thread>0</min_free_thread>
<process_cpu_usage>0</process_cpu_usage>
<run user=''/>
<autoupdate type='off' install='0'/>
<admin user='admin' password='kangle' admin_ips='127.0.0.1|*'/>
<gzip default='0' only_gzip_cache='0' min_gzip_length='256' gzip_level='5'/>
<cache default='1' max_cache_size='1M' max_bigobj_size='2G' memory='50M' disk='5G' disk_dir='/var/cache/kangle' cache_part='1' refresh_time='31536000'/>
<connect max_per_ip='65535' max='1000000'/>
<max_post_size>10G</max_post_size>
<async_io>1</async_io>
<attack enable='0' max_request='30' total_seconds='20' path_info='1'/>
<charset>gbk</charset>
<attack wl_time='7200' cc_key='__KANGLE'/>
<bl_time>600</bl_time>
<unix_socket>1</unix_socket>
<path_info>1</path_info>
<server_software>kangle</server_software>
<hostname>kangle web server</hostname>
<remove_accept_encoding>1</remove_accept_encoding>
<insert_via>0</insert_via>
<x_forwarded_for>0</x_forwarded_for>
<access_log_handle>/usr/bin/gzip ${log_file}</access_log_handle>
<log_handle_concurrent>2</log_handle_concurrent>
<log level='3' rotate_time='0 0 * * *' rotate_size='50M' error_rotate_size='2M' logs_day='7' logs_size='2G' log_handle='1'/>
<log_event_id>1</log_event_id>
<api name='whm' file='buildin:whm'/>
<request action='vhs' >
<table name='BEGIN'>
<chain action='deny' >
<mark_check_black_list></mark_check_black_list>
</chain>
<chain action='deny' >
<acl_url nc='1'><![CDATA[:3312/api/]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=migrate]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=list]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=test]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=get]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=sync]]></acl_url>
<acl_ip_rate request='6' second='60'></acl_ip_rate>
<mark_black_list></mark_black_list>
</chain>
<chain action='deny' >
<acl_meth >HEAD</acl_meth>
</chain>
<chain action='deny' >
<acl_listen_ports revers='1' split='|'>3312</acl_listen_ports>
<mark_param value=''.*[; ]?((or)|(insert)|(select)|(union)|(update)|(delete)|(replace)|(create)|(drop)|(alter)|(grant)|(load)|(show)|(exec))[\s(]' get='1' post='1' icase='1' charset=''></mark_param>
</chain>
<chain action='deny' >
<acl_url revers='1' nc='1'><![CDATA[:3312/vhost/[\s\S]*c=webftp&a=upsave]]></acl_url>
<mark_post_file filename='\.((php)|(asp))$' icase='1'></mark_post_file>
</chain>
<chain action='deny' >
<acl_url nc='1'><![CDATA[:3312/admin/[\s\S]*c=system&a=editFile&]]></acl_url>
<mark_param revers='1' name='file' value='/vhs/kangle/etc/../ext/tpl_php52/php-templete.ini' get='1' post='1' icase='1' charset=''></mark_param>
</chain>
<chain action='deny' >
<acl_listen_ports split='|'>3312</acl_listen_ports>
<acl_url revers='1' nc='1'><![CDATA[:3312/vhost/[\s\S]*c=webftp&a=]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/admin/[\s\S]*c=migrate&a=]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*a=migrate]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/api/[\s\S]*=sync]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/vhost/[\s\S]*c=anticc&a=]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/vhost/[\s\S]*c=protection&a=]]></acl_url>
<acl_url revers='1' nc='1'><![CDATA[:3312/vhost/[\s\S]*c=index&a=ssl]]></acl_url>
<mark_param value='.*(exec|insert|truncate|char|declare|union|replace|alter|grant|etc/|win.ini|chmod|closedir|copy|dir|escapeshellarg|escapeshellcmd|phpinfo|fclose|fileperms|fopen|fread|fwrite|is_dir|link|mkdir|opendir|passthru|proc_close|proc_get_status|proc_nice|proc_open|proc_terminate|readdir|rename|rmdir|shell_exec|system|tempnam|touch|unlink)+.*' get='1' post='1' icase='1' charset=''></mark_param>
</chain>
<chain action='continue' >
<mark_replace_ip header='X-Real-Ip' > </mark_replace_ip>
</chain>
<chain action='continue' >
<mark_flag always_online='1' x_cache='1' x_real_ip='1' age='1' ></mark_flag>
</chain>
<chain action='continue' >
<acl_file_ext icase='1' split='|'>xml</acl_file_ext>
<mark_flag no_cache='1' ></mark_flag>
</chain>
<chain action='continue' >
<acl_ip_rate request='0' second='1'></acl_ip_rate>
<mark_flow flow='0' cache='0' ></mark_flow>
</chain>
</table>
</request>
<response action='allow' >
<table name='BEGIN'>
<chain action='continue' >
<acl_header header='Content-Type' regex='1'><![CDATA[(text/*)|(javascript)]]></acl_header>
<mark_response_flag flagvalue='gzip,'></mark_response_flag>
</chain>
<chain action='continue' >
<acl_header header='Content-Type' regex='1'><![CDATA[(text/*)|(javascript)]]></acl_header>
<mark_add_header attr='Vary' val='Accept-Encoding'></mark_add_header>
</chain>
<chain action='continue' >
<mark_cookie cookie='.' http_only='1'></mark_cookie>
</chain>
<chain action='continue' >
<acl_file_ext icase='1' split='|'>3gp|7z|apk|avi|bdmv|bmp|bz2|css|csv|dat|db|deb|dll|dmg|doc|exe|f4v|flv|gif|gz|ico|img|inf|iso|jar|jpg|jpeg|js|letv|log|m2ts|map|md5|mkv|mp3|mp4|msi|old|otf|pac|pdf|png|rar|rpm|sh|swf|tar|test|torrent|ttf|txt|txz|wim|xz|zip</acl_file_ext>
<acl_status_code op='lt' code='400'></acl_status_code>
<mark_cache_control max_age='31536000'></mark_cache_control>
</chain>
<chain action='continue' >
<acl_status_code op='gt' code='400'></acl_status_code>
<mark_response_flag flagvalue='nocache,nodiskcache,'></mark_response_flag>
</chain>
<chain action='continue' >
<acl_listen_ports split='|'>3313</acl_listen_ports>
<acl_reg_path nc='1' path='/mysql/(changelog|url).php'></acl_reg_path>
<mark_add_header attr='X-Frame-Options' val='SAMEORIGIN' force='0'></mark_add_header>
</chain>
</table>
</response>
<vhs index='index.html,index.htm' error_404='/404.html' error_403='/403.html'>
<mime_type ext='*' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='3gp' type='video/3gpp' max_age='31536000'/>
<mime_type ext='3gpp' type='video/3gpp' max_age='31536000'/>
<mime_type ext='ai' type='application/postscript' max_age='31536000'/>
<mime_type ext='aif' type='audio/x-aiff' max_age='31536000'/>
<mime_type ext='aifc' type='audio/x-aiff' max_age='31536000'/>
<mime_type ext='aiff' type='audio/x-aiff' max_age='31536000'/>
<mime_type ext='amr' type='audio/amr' max_age='31536000'/>
<mime_type ext='arj' type='application/x-arj-compressed' max_age='31536000'/>
<mime_type ext='atom' type='application/atom+xml' max_age='31536000'/>
<mime_type ext='au' type='audio/basic' max_age='31536000'/>
<mime_type ext='avi' type='video/x-msvideo' max_age='31536000'/>
<mime_type ext='bcpio' type='application/x-bcpio' max_age='31536000'/>
<mime_type ext='bin' type='application/macbinary' max_age='31536000'/>
<mime_type ext='bmp' type='image/x-bmp' gzip='1' max_age='31536000'/>
<mime_type ext='c' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='cab' type='application/octet-stream' max_age='31536000'/>
<mime_type ext='cc' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='cdf' type='application/x-netcdf' max_age='31536000'/>
<mime_type ext='cod' type='text/x-co-desc' gzip='1' max_age='31536000'/>
<mime_type ext='core' type='application/octet-stream' max_age='31536000'/>
<mime_type ext='cpio' type='application/x-cpio' max_age='31536000'/>
<mime_type ext='cpp' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='csh' type='application/x-csh' max_age='31536000'/>
<mime_type ext='css' type='text/css' gzip='1' max_age='31536000'/>
<mime_type ext='dll' type='application/octet-stream' max_age='31536000'/>
<mime_type ext='doc' type='application/msword' max_age='31536000'/>
<mime_type ext='dvi' type='application/x-dvi' max_age='31536000'/>
<mime_type ext='ear' type='application/java-archive' max_age='31536000'/>
<mime_type ext='eps' type='application/postscript' max_age='31536000'/>
<mime_type ext='etx' type='text/x-setext' gzip='1' max_age='31536000'/>
<mime_type ext='exe' type='application/octet-stream' max_age='31536000'/>
<mime_type ext='f90' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='flv' type='video/x-flv' max_age='31536000'/>
<mime_type ext='gif' type='image/gif' gzip='1' max_age='31536000'/>
<mime_type ext='gtar' type='application/x-gtar' max_age='31536000'/>
<mime_type ext='gz' type='application/x-tar' max_age='31536000'/>
<mime_type ext='h' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='hdf' type='application/x-hdf' max_age='31536000'/>
<mime_type ext='hh' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='hqx' type='application/mac-binhex40' max_age='31536000'/>
<mime_type ext='htm' type='text/html' gzip='1' max_age='31536000'/>
<mime_type ext='html' type='text/html' gzip='1' max_age='31536000'/>
<mime_type ext='ico' type='image/x-icon' gzip='1' max_age='31536000'/>
<mime_type ext='ief' type='image/ief' gzip='1' max_age='31536000'/>
<mime_type ext='jad' type='text/vnd.sun.j2me.app-descriptor' gzip='1' max_age='31536000'/>
<mime_type ext='jar' type='application/java-archive' max_age='31536000'/>
<mime_type ext='jng' type='image/x-jng' gzip='1' max_age='31536000'/>
<mime_type ext='jpe' type='image/jpeg' gzip='1' max_age='31536000'/>
<mime_type ext='jpeg' type='image/jpeg' gzip='1' max_age='31536000'/>
<mime_type ext='jpg' type='image/jpeg' gzip='1' max_age='31536000'/>
<mime_type ext='js' type='application/x-javascript' gzip='1' max_age='31536000'/>
<mime_type ext='latex' type='application/x-latex' max_age='31536000'/>
<mime_type ext='lha' type='application/x-lha-compressed' max_age='31536000'/>
<mime_type ext='lsm' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='lzh' type='application/x-lha-compressed' max_age='31536000'/>
<mime_type ext='m' type='text/plain' gzip='1' max_age='31536000'/>
<mime_type ext='man' type='application/x-troff-man' max_age='31536000'/>
<mime_type ext='mbm' type='image/x-epoc-mbm' gzip='1' max_age='31536000'/>
<mime_type ext='me' type='application/x-troff-me' max_age='31536000'/>
<mime_type ext='mid' type='audio/midi' max_age='31536000'/>
<mime_type ext='midi' type='audio/midi' max_age='31536000'/>
<mime_type ext='mif' type='application/x-mif' max_age='31536000'/>
<mime_type ext='mmf' type='application/x-smaf' max_age='31536000'/>
<mime_type ext='mml' type='text/mathml' gzip='1' max_age='31536000'/>
<mime_type ext='mov' type='video/quicktime' max_age='31536000'/>
<mime_type ext='movie' type='video/x-sgi-movie' max_age='31536000'/>
<mime_type ext='mp2' type='audio/basic' max_age='31536000'/>
<mime_type ext='mp3' type='audio/mpeg' max_age='31536000'/>
<mime_type ext='mp4' type='video/mp4' max_age='31536000'/>
<mime_type ext='mpe' type='video/mpeg' max_age='31536000'/>
<mime_type ext='mpeg' type='video/mpeg' max_age='31536000'/>
<mime_type ext='mpg' type='video/mpeg' max_age='31536000'/>
<mime_type ext='ms' type='application/x-troff-ms' max_age='31536000'/>
<mime_type ext='msw' type='application/msword' max_age='31536000'/>
<mime_type ext='mwrt' type='application/macwriteii' max_age='31536000'/>
<mime_type ext='n3a' type='image/vnd.nok-3dscreensaver' gzip='1' max_age='31536000'/>
<mime_type ext='nc' type='application/x-netcdf' max_age='31536000'/>
<mime_type ext='ngd' type='application/x-nokiagamedata' max_age='31536000'/>
<mime_type ext='nok' type='image/vnd.nok-oplogo-colornokia-op-logo' gzip='1' max_age='31536000'/>
<mime_type ext='nqd' type='application/vnd.nokia.gamedata' max_age='31536000'/>
<mime_type ext='oda' type='application/oda' max_age='31536000'/>
<mime_type ext='pbm' type='image/x-portable-bitmap' gzip='1' max_age='31536000'/>
<mime_type ext='pdf' type='application/pdf' max_age='31536000'/>
<mime_type ext='pgm' type='image/x-portable-graymap' gzip='1' max_age='31536000'/>
<mime_type ext='pic' type='application/pict' max_age='31536000'/>
<mime_type ext='pict' type='application/pict' max_age='31536000'/>
<mime_type ext='pmd' type='application/x-pmd' max_age='31536000'/>
<mime_type ext='png' type='image/png' gzip='1' max_age='31536000'/>
<mime_type ext='pnm' type='image/x-portable-anymap' gzip='1' max_age='31536000'/>
<mime_type ext='ppm' type='image/x-portable-pixmap' gzip='1' max_age='31536000'/>
<mime_type ext='ps' type='application/postscript' max_age='31536000'/>
<mime_type ext='qcp' type='audio/vnd.qcelp' max_age='31536000'/>
<mime_type ext='qt' type='video/quicktime' max_age='31536000'/>
<mime_type ext='rar' type='application/x-rar-compressed' max_age='31536000'/>
<mime_type ext='ras' type='image/cmu-raster' gzip='1' max_age='31536000'/>
<mime_type ext='rgb' type='image/x-rgb' gzip='1' max_age='31536000'/>
<mime_type ext='rng' type='application/vnd.nokie.ringing-tone' max_age='31536000'/>
<mime_type ext='roff' type='application/x-troff' max_age='31536000'/>
<mime_type ext='rpm' type='application/x-rpm' max_age='31536000'/>
<mime_type ext='rss' type='application/rss+xml' max_age='31536000'/>
<mime_type ext='rtf' type='application/x-rtf' max_age='31536000'/>
<mime_type ext='rtx' type='text/richtext' gzip='1' max_age='31536000'/>
<mime_type ext='sh' type='application/x-sh' max_age='31536000'/>
<mime_type ext='shar' type='application/x-shar' max_age='31536000'/>
<mime_type ext='si' type='text/vnd.wap.si' gzip='1' max_age='31536000'/>
<mime_type ext='sic' type='application/vnd.wap.sic' max_age='31536000'/>
<mime_type ext='sis' type='application/vnd.symbian.install' max_age='31536000'/>
<mime_type ext='sit' type='application/stuffit' max_age='31536000'/>
<mime_type ext='sl' type='text/vnd.wap.sl' gzip='1' max_age='31536000'/>
<mime_type ext='slc' type='application/vnd.wap.slc' max_age='31536000'/>
<mime_type ext='snd' type='audio/basic' max_age='31536000'/>
<mime_type ext='src' type='application/x-wais-source' max_age='31536000'/>
<mime_type ext='sv4cpio' type='application/x-sv4cpio' max_age='31536000'/>
<mime_type ext='sv4crc' type='application/x-sv4crc' max_age='31536000'/>
<mime_type ext='svg' type='image/svg+xml' gzip='1' max_age='31536000'/>
<mime_type ext='svgz' type='image/svg+xml' gzip='1' max_age='31536000'/>
<mime_type ext='swf' type='application/x-shockwave-flash' max_age='31536000'/>
<mime_type ext='t' type='application/x-troff' max_age='31536000'/>
<mime_type ext='tar' type='application/x-tar' max_age='31536000'/>
<mime_type ext='tcl' type='application/x-tcl' max_age='31536000'/>
<mime_type ext='tex' type='application/x-tex' max_age='31536000'/>
<mime_type ext='texi' type='application/x-texinfo' max_age='31536000'/>
<mime_type ext='texinfo' type='application/x-texinfo' max_age='31536000'/>
<mime_type ext='tgz' type='application/x-tar' max_age='31536000'/>
<mime_type ext='tif' type='image/tiff' gzip='1' max_age='31536000'/>
<mime_type ext='tiff' type='image/tiff' gzip='1' max_age='31536000'/>
<mime_type ext='tr' type='application/x-troff' max_age='31536000'/>
<mime_type ext='tsv' type='text/tab-separated-values' gzip='1' max_age='31536000'/>
<mime_type ext='ustar' type='application/x-ustar' max_age='31536000'/>
<mime_type ext='vcf' type='text/v-vcard' gzip='1' max_age='31536000'/>
<mime_type ext='vcs' type='text/x-vcalendar' gzip='1' max_age='31536000'/>
<mime_type ext='war' type='application/java-archive' max_age='31536000'/>
<mime_type ext='wav' type='audio/x-wav' max_age='31536000'/>
<mime_type ext='wbmp' type='image/vnd.wap.wmbp' gzip='1' max_age='31536000'/>
<mime_type ext='webm' type='video/webm' max_age='31536000'/>
<mime_type ext='webp' type='image/webp' gzip='1' max_age='31536000'/>
<mime_type ext='wml' type='text/vnd.wap.wml' gzip='1' max_age='31536000'/>
<mime_type ext='wmlc' type='application/vnd.wap.wmlc' max_age='31536000'/>
<mime_type ext='wmls' type='text/vnd.wap.wmlscript' gzip='1' max_age='31536000'/>
<mime_type ext='wmlsc' type='text/vnd.wap.wmlscript' gzip='1' max_age='31536000'/>
<mime_type ext='wmv' type='video/x-ms-wmv' max_age='31536000'/>
<mime_type ext='xbm' type='image/x-xbitmap' gzip='1' max_age='31536000'/>
<mime_type ext='xls' type='application/msexcel' max_age='31536000'/>
<mime_type ext='xml' type='text/xml' gzip='1' max_age='31536000'/>
<mime_type ext='xpm' type='image/x-xpixmap' gzip='1' max_age='31536000'/>
<mime_type ext='xwd' type='image/x-xwindowdump' gzip='1' max_age='31536000'/>
<mime_type ext='Z' type='application/x-tar' max_age='31536000'/>
<mime_type ext='zip' type='application/x-zip-compressed' max_age='31536000'/>
<mime_type ext='zlib' type='application/x-deflate' max_age='31536000'/>
</vhs>
</config>