]>
Commit | Line | Data |
---|---|---|
3a278cb8 | 1 | |
9cef6668 | 2 | # |
1dfa1d81 | 3 | # $Id: cf.data.pre,v 1.96 1998/08/17 21:27:31 wessels Exp $ |
9cef6668 | 4 | # |
5 | # | |
6 | # SQUID Internet Object Cache http://squid.nlanr.net/Squid/ | |
7 | # ---------------------------------------------------------- | |
8 | # | |
9 | # Squid is the result of efforts by numerous individuals from the | |
10 | # Internet community. Development is led by Duane Wessels of the | |
11 | # National Laboratory for Applied Network Research and funded by the | |
12 | # National Science Foundation. Squid is Copyrighted (C) 1998 by | |
13 | # Duane Wessels and the University of California San Diego. Please | |
14 | # see the COPYRIGHT file for full details. Squid incorporates | |
15 | # software developed and/or copyrighted by other sources. Please see | |
16 | # the CREDITS file for full details. | |
17 | # | |
18 | # This program is free software; you can redistribute it and/or modify | |
19 | # it under the terms of the GNU General Public License as published by | |
20 | # the Free Software Foundation; either version 2 of the License, or | |
21 | # (at your option) any later version. | |
22 | # | |
23 | # This program is distributed in the hope that it will be useful, | |
24 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | # GNU General Public License for more details. | |
27 | # | |
28 | # You should have received a copy of the GNU General Public License | |
29 | # along with this program; if not, write to the Free Software | |
30 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. | |
31 | # | |
32 | ||
0f74202c | 33 | COMMENT_START |
34 | WELCOME TO SQUID 1.2 | |
35 | -------------------- | |
3a278cb8 | 36 | |
cf5cc17e | 37 | This is the default Squid configuration file. You may wish |
b58b1ad6 | 38 | to look at http://cache.is.co.za/squid/ for documentation, |
39 | or the Squid home page (http://squid.nlanr.net/) for the FAQ. | |
3a278cb8 | 40 | |
0f74202c | 41 | COMMENT_END |
3a278cb8 | 42 | |
0f74202c | 43 | COMMENT_START |
3a278cb8 | 44 | NETWORK OPTIONS |
45 | ----------------------------------------------------------------------------- | |
0f74202c | 46 | COMMENT_END |
3a278cb8 | 47 | |
934b03fc | 48 | NAME: http_port ascii_port |
49 | TYPE: ushortlist | |
f53b06f9 | 50 | DEFAULT: none |
51 | DEFAULT_IF_NONE: 3128 | |
934b03fc | 52 | LOC: Config.Port.http |
53 | DOC_START | |
cf5cc17e | 54 | The port number where Squid will listen for HTTP client |
934b03fc | 55 | requests. Default is 3128, for httpd-accel mode use port 80. |
56 | May be overridden with -a on the command line. | |
57 | ||
58 | You may specify multiple ports here, but they MUST all be on | |
59 | a single line. | |
60 | ||
61 | http_port 3128 | |
62 | DOC_END | |
63 | ||
64 | ||
65 | NAME: icp_port udp_port | |
66 | TYPE: ushort | |
67 | DEFAULT: 3130 | |
68 | LOC: Config.Port.icp | |
69 | DOC_START | |
459f1836 | 70 | The port number where Squid sends and receives ICP requests to |
934b03fc | 71 | and from neighbor caches. Default is 3130. To disable use |
72 | "0". May be overridden with -u on the command line. | |
73 | ||
74 | icp_port 3130 | |
75 | DOC_END | |
76 | ||
459f1836 | 77 | NAME: htcp_port |
78 | IFDEF: USE_HTCP | |
79 | TYPE: ushort | |
80 | DEFAULT: 4827 | |
81 | LOC: Config.Port.htcp | |
82 | DOC_START | |
83 | The port number where Squid sends and receives ICP requests to | |
84 | and from neighbor caches. Default is 4827. To disable use | |
85 | "0". | |
86 | ||
87 | htcp_port 4827 | |
88 | DOC_END | |
89 | ||
934b03fc | 90 | |
91 | NAME: mcast_groups | |
92 | TYPE: wordlist | |
93 | LOC: Config.mcast_group_list | |
1273d501 | 94 | DEFAULT: none |
934b03fc | 95 | DOC_START |
cf5cc17e | 96 | This tag specifies a list of multicast groups which your server |
97 | should join to receive multicasted ICP requests. | |
934b03fc | 98 | |
99 | NOTE! Be very careful what you put here! Be sure you | |
100 | understand the difference between an ICP _query_ and an ICP | |
101 | _reply_. This option is to be set only if you want to RECEIVE | |
102 | multicast queries. Do NOT set this option to SEND multicast | |
a95856a0 | 103 | ICP (use cache_peer for that). ICP replies are always sent via |
934b03fc | 104 | unicast, so this option does not affect whether or not you will |
105 | receive replies from multicast group members. | |
106 | ||
107 | You must be very careful to NOT use a multicast address which | |
108 | is already in use by another group of caches. NLANR has been | |
109 | assigned a block of multicast address space for use in Web | |
110 | Caching. Plese write to us at nlanr-cache@nlanr.net to receive | |
111 | an address for your own use. | |
112 | ||
cf5cc17e | 113 | If you are unsure about multicast, please read the Multicast |
114 | chapter in the Squid FAQ (http://squid.nlanr.net/Squid/FAQ/). | |
115 | ||
934b03fc | 116 | Usage: mcast_groups 239.128.16.128 224.0.1.20 |
117 | ||
cf5cc17e | 118 | By default, Squid doesn't listen on any multicast groups. |
934b03fc | 119 | |
120 | mcast_groups 239.128.16.128 | |
121 | DOC_END | |
122 | ||
123 | ||
124 | NAME: tcp_incoming_address bind_address | |
125 | TYPE: address | |
126 | LOC: Config.Addrs.tcp_incoming | |
270b86af | 127 | DEFAULT: 0.0.0.0 |
934b03fc | 128 | DOC_NONE |
129 | ||
130 | NAME: tcp_outgoing_address outbound_address | |
131 | TYPE: address | |
132 | LOC: Config.Addrs.tcp_outgoing | |
270b86af | 133 | DEFAULT: 255.255.255.255 |
934b03fc | 134 | DOC_NONE |
135 | ||
136 | NAME: udp_incoming_address | |
137 | TYPE: address | |
138 | LOC:Config.Addrs.udp_incoming | |
270b86af | 139 | DEFAULT: 0.0.0.0 |
934b03fc | 140 | DOC_NONE |
141 | ||
142 | NAME: udp_outgoing_address | |
143 | TYPE: address | |
144 | LOC: Config.Addrs.udp_outgoing | |
270b86af | 145 | DEFAULT: 255.255.255.255 |
934b03fc | 146 | DOC_START |
147 | Usage: tcp_incoming_address 10.20.30.40 | |
148 | udp_outgoing_address fully.qualified.domain.name | |
149 | ||
934b03fc | 150 | tcp_incoming_address is used for the HTTP socket which accepts |
151 | connections from clients and other caches. | |
152 | tcp_outgoing_address is used for connections made to remote | |
153 | servers and other caches. | |
154 | udp_incoming_address is used for the ICP socket receiving packets | |
155 | from other caches. | |
156 | udp_outgoing_address is used for ICP packets sent out to other | |
157 | caches. | |
158 | ||
15dcc168 | 159 | The default behaviour is to not bind to any specific address. |
934b03fc | 160 | |
161 | NOTE, udp_incoming_address and udp_outgoing_address can not have | |
162 | the same value since they both use port 3130. | |
163 | ||
164 | tcp_incoming_address 0.0.0.0 | |
165 | tcp_outgoing_address 0.0.0.0 | |
166 | udp_incoming_address 0.0.0.0 | |
167 | udp_outgoing_address 0.0.0.0 | |
168 | DOC_END | |
169 | ||
0f74202c | 170 | COMMENT_START |
3a278cb8 | 171 | OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM |
172 | ----------------------------------------------------------------------------- | |
0f74202c | 173 | COMMENT_END |
934b03fc | 174 | |
40a1495e | 175 | NAME: cache_peer |
176 | TYPE: peer | |
1273d501 | 177 | DEFAULT: none |
0153d498 | 178 | LOC: Config.peers |
934b03fc | 179 | DOC_START |
180 | To specify other caches in a hierarchy, use the format: | |
181 | ||
182 | hostname type http_port icp_port | |
183 | ||
d0d41f07 | 184 | For example, |
934b03fc | 185 | |
186 | # proxy icp | |
187 | # hostname type port port options | |
188 | # -------------------- -------- ----- ----- ----------- | |
cf5cc17e | 189 | cache_peer parent.foo.net parent 3128 3130 [proxy-only] |
190 | cache_peer sib1.foo.net sibling 3128 3130 [proxy-only] | |
191 | cache_peer sib2.foo.net sibling 3128 3130 [proxy-only] | |
934b03fc | 192 | |
193 | type: either 'parent', 'sibling', or 'multicast'. | |
194 | ||
195 | proxy_port: The port number where the cache listens for proxy | |
196 | requests. | |
197 | ||
198 | icp_port: Used for querying neighbor caches about | |
199 | objects. To have a non-ICP neighbor | |
200 | specify '7' for the ICP port and make sure the | |
201 | neighbor machine has the UDP echo port | |
202 | enabled in its /etc/inetd.conf file. | |
203 | ||
204 | options: proxy-only | |
205 | weight=n | |
206 | ttl=n | |
207 | no-query | |
208 | default | |
209 | round-robin | |
210 | multicast-responder | |
b3264694 | 211 | closest-only |
223213df | 212 | no-netdb-exchange |
95e36d02 | 213 | no-delay |
934b03fc | 214 | |
215 | use 'proxy-only' to specify that objects fetched | |
216 | from this cache should not be saved locally. | |
217 | ||
218 | use 'weight=n' to specify a weighted parent. | |
219 | The weight must be an integer. The default weight | |
220 | is 1, larger weights are favored more. | |
221 | ||
222 | use 'ttl=n' to specify a IP multicast TTL to use | |
223 | when sending an ICP request to this address. | |
224 | Only useful when sending to a multicast group. | |
225 | Because we don't accept ICP replies from random | |
226 | hosts, you must configure other group members as | |
227 | peers with the 'multicast-responder' option below. | |
228 | ||
229 | use 'no-query' to NOT send ICP queries to this | |
230 | neighbor. | |
231 | ||
232 | use 'default' if this is a parent cache which can | |
233 | be used as a "last-resort." You should probably | |
234 | only use 'default' in situations where you cannot | |
235 | use ICP with your parent cache(s). | |
236 | ||
237 | use 'round-robin' to define a set of parents which | |
238 | should be used in a round-robin fashion in the | |
239 | absence of any ICP queries. | |
240 | ||
241 | 'multicast-responder' indicates that the named peer | |
242 | is a member of a multicast group. ICP queries will | |
243 | not be sent directly to the peer, but ICP replies | |
244 | will be accepted from it. | |
245 | ||
b3264694 | 246 | 'closest-only' indicates that, for ICP_OP_MISS |
247 | replies, we'll only forward CLOSEST_PARENT_MISSes | |
248 | and never FIRST_PARENT_MISSes. | |
249 | ||
223213df | 250 | 'no-netdb-exchange' disables requesting ICMP |
251 | RTT database (NetDB) from the neighbor. | |
252 | ||
95e36d02 | 253 | use 'no-delay' to prevent access to this neighbor |
254 | from influencing the delay pools. | |
255 | ||
934b03fc | 256 | NOTE: non-ICP neighbors must be specified as 'parent'. |
257 | ||
a95856a0 | 258 | cache_peer hostname type 3128 3130 |
934b03fc | 259 | DOC_END |
260 | ||
261 | ||
af7d912e | 262 | NAME: cache_peer_domain cache_host_domain |
934b03fc | 263 | TYPE: hostdomain |
f1dc9b30 | 264 | DEFAULT: none |
265 | LOC: none | |
934b03fc | 266 | DOC_START |
cf5cc17e | 267 | Use to limit the domains for which a neighbor cache will be |
268 | queried. Usage: | |
934b03fc | 269 | |
af7d912e | 270 | cache_peer_domain cache-host domain [domain ...] |
271 | cache_peer_domain cache-host !domain | |
934b03fc | 272 | |
273 | For example, specifying | |
274 | ||
af7d912e | 275 | cache_peer_domain parent.foo.net .edu |
934b03fc | 276 | |
277 | has the effect such that UDP query packets are sent to | |
278 | 'bigserver' only when the requested object exists on a | |
279 | server in the .edu domain. Prefixing the domainname | |
280 | with '!' means that the cache will be queried for objects | |
281 | NOT in that domain. | |
282 | ||
283 | NOTE: * Any number of domains may be given for a cache-host, | |
284 | either on the same or separate lines. | |
285 | * When multiple domains are given for a particular | |
286 | cache-host, the first matched domain is applied. | |
287 | * Cache hosts with no domain restrictions are queried | |
288 | for all requests. | |
289 | * There are no defaults. | |
af7d912e | 290 | * There is also a 'cache_peer_acl' tag in the ACL |
934b03fc | 291 | section. |
292 | DOC_END | |
293 | ||
294 | ||
295 | NAME: neighbor_type_domain | |
296 | TYPE: hostdomaintype | |
f1dc9b30 | 297 | DEFAULT: none |
298 | LOC: none | |
934b03fc | 299 | DOC_START |
300 | usage: neighbor_type_domain parent|sibling domain domain ... | |
301 | ||
302 | Modifying the neighbor type for specific domains is now | |
303 | possible. You can treat some domains differently than the the | |
a95856a0 | 304 | default neighbor type specified on the 'cache_peer' line. |
934b03fc | 305 | Normally it should only be necessary to list domains which |
306 | should be treated differently because the default neighbor type | |
307 | applies for hostnames which do not match domains listed here. | |
308 | ||
309 | EXAMPLE: | |
a95856a0 | 310 | cache_peer parent cache.foo.org 3128 3130 |
934b03fc | 311 | neighbor_type_domain cache.foo.org sibling .com .net |
312 | neighbor_type_domain cache.foo.org sibling .au .de | |
313 | DOC_END | |
314 | ||
465dc415 | 315 | NAME: icp_query_timeout |
316 | COMMENT: (msec) | |
317 | DEFAULT: 0 | |
318 | TYPE: int | |
319 | LOC: Config.Timeout.icp_query | |
934b03fc | 320 | DOC_START |
465dc415 | 321 | Normally Squid will automatically determine an optimal ICP |
322 | query timeout value based on the round-trip-time of recent ICP | |
323 | queries. If you want to override the value determined by | |
324 | Squid, set this 'icp_query_timeout' to a non-zero value. This | |
325 | value is specified in MILLISECONDS, so, to use a 2-second | |
326 | timeout (the old default), you would write: | |
934b03fc | 327 | |
465dc415 | 328 | icp_query_timeout 2000 |
329 | ||
330 | icp_query_timeout 0 | |
331 | DOC_END | |
332 | ||
333 | NAME: mcast_icp_query_timeout | |
334 | COMMENT: (msec) | |
335 | DEFAULT: 2000 | |
336 | TYPE: int | |
337 | LOC: Config.Timeout.mcast_icp_query | |
338 | DOC_START | |
339 | For Multicast peers, Squid regularly sends out ICP "probes" to | |
340 | count how many other peers are listening on the given multicast | |
341 | address. This value specifies how long Squid should wait to | |
342 | count all the replies. The default is 2000 msec, or 2 | |
343 | seconds. | |
344 | ||
345 | mcast_icp_query_timeout 2000 | |
934b03fc | 346 | DOC_END |
347 | ||
dc835977 | 348 | NAME: dead_peer_timeout |
349 | COMMENT: (seconds) | |
350 | DEFAULT: 10 seconds | |
351 | TYPE: time_t | |
352 | LOC: Config.Timeout.deadPeer | |
353 | DOC_START | |
354 | This controls how long Squid waits to declare a peer cache | |
355 | as "dead." If there are no ICP replies received in this | |
356 | amount of time, Squid will declare the peer dead and not | |
357 | expect to receive any further ICP replies. However, it | |
358 | continues to send ICP queries, and will mark the peer as | |
359 | alive upon receipt of the first subsequent ICP reply. | |
360 | ||
361 | dead_peer_timeout 10 seconds | |
362 | DOC_END | |
363 | ||
934b03fc | 364 | |
365 | NAME: hierarchy_stoplist | |
366 | TYPE: wordlist | |
f8d9f54a | 367 | DEFAULT: none |
368 | DEFAULT_IF_NONE: cgi-bin ? | |
934b03fc | 369 | LOC: Config.hierarchy_stoplist |
370 | DOC_START | |
371 | A list of words which, if found in a URL, cause the object to | |
372 | be handled directly by this cache. In other words, use this | |
373 | to not query neighbor caches for certain objects. You may | |
374 | list this option multiple times. | |
375 | ||
376 | The default is to directly fetch URLs containing 'cgi-bin' or '?'. | |
377 | ||
378 | hierarchy_stoplist cgi-bin ? | |
379 | DOC_END | |
380 | ||
381 | ||
bd05e3e3 | 382 | NAME: no_cache |
383 | TYPE: acl_access | |
384 | DEFAULT: none | |
385 | LOC: Config.accessList.noCache | |
934b03fc | 386 | DOC_START |
bd05e3e3 | 387 | A list of ACL elements which, if matched, cause the reply to |
934b03fc | 388 | immediately removed from the cache. In other words, use this |
bd05e3e3 | 389 | to force certain objects to never be cached. |
934b03fc | 390 | |
b269cf4e | 391 | You must use the word 'DENY' to indicate the ACL names which should |
392 | NOT be cached. | |
0fdafae7 | 393 | |
bd05e3e3 | 394 | There is no default. We recommend you uncomment the following |
395 | two lines. | |
934b03fc | 396 | |
bd05e3e3 | 397 | acl QUERY urlpath_regex cgi-bin \? |
b269cf4e | 398 | no_cache deny QUERY |
934b03fc | 399 | DOC_END |
400 | ||
934b03fc | 401 | |
0f74202c | 402 | COMMENT_START |
3a278cb8 | 403 | OPTIONS WHICH AFFECT THE CACHE SIZE |
404 | ----------------------------------------------------------------------------- | |
0f74202c | 405 | COMMENT_END |
934b03fc | 406 | |
407 | NAME: cache_mem | |
9906e724 | 408 | COMMENT: (bytes) |
1b635117 | 409 | TYPE: b_size_t |
9906e724 | 410 | DEFAULT: 8 MB |
934b03fc | 411 | LOC: Config.Mem.maxSize |
412 | DOC_START | |
7b2496ca | 413 | NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS |
414 | SIZE. IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY | |
415 | USAGE. SQUID USES MEMORY FOR OTHER THINGS AS WELL. | |
416 | YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES | |
417 | BIGGER THAN THE VALUE YOU PUT HERE | |
418 | ||
419 | 'cache_mem' specifies the ideal amount of memory to be used | |
420 | for: | |
421 | * In-Transit objects | |
422 | * Hot Objects | |
423 | * Negative-Cached objects | |
424 | ||
425 | Data for these objects are stored in 4 KB blocks. This | |
426 | parameter specifies the ideal upper limit on the total size of | |
427 | 4 KB blocks allocated. In-Transit objects take the highest | |
428 | priority. | |
934b03fc | 429 | |
430 | In-transit objects have priority over the others. When | |
431 | additional space is needed for incoming data, negative-cached | |
432 | and hot objects will be released. In other words, the | |
433 | negative-cached and hot objects will fill up any unused space | |
434 | not needed for in-transit objects. | |
435 | ||
7b2496ca | 436 | If circumstances require, this limit will be exceeded. |
437 | Specifically, if your incoming request rate requires more than | |
438 | 'cache_mem' of memory to hold in-transit objects, Squid will | |
439 | exceed this limit to satisfy the new requests. When the load | |
440 | decreases, blocks will be freed until the high-water mark is | |
441 | reached. Thereafter, blocks will be used to store hot | |
442 | objects. | |
443 | ||
934b03fc | 444 | The values of cache_mem_low and cache_mem_high (below) can be |
445 | used to tune the use of the memory pool. When the high mark is | |
446 | reached, in-transit and hot objects will be released to clear | |
447 | space. When an object transfer is completed, it will remain in | |
448 | memory only if the current memory usage is below the low water | |
449 | mark. | |
450 | ||
451 | The default is 8 Megabytes. | |
452 | ||
9906e724 | 453 | cache_mem 8 MB |
934b03fc | 454 | DOC_END |
455 | ||
456 | ||
457 | NAME: cache_swap_low | |
458 | COMMENT: (percent, 0-100) | |
459 | TYPE: int | |
460 | DEFAULT: 90 | |
461 | LOC: Config.Swap.lowWaterMark | |
462 | DOC_NONE | |
463 | ||
464 | NAME: cache_swap_high | |
465 | COMMENT: (percent, 0-100) | |
466 | TYPE: int | |
467 | DEFAULT: 95 | |
468 | LOC: Config.Swap.highWaterMark | |
469 | DOC_START | |
cf5cc17e | 470 | The low- and high-water marks for cache LRU replacement. LRU |
471 | replacement begins when the high-water mark is reached and ends | |
472 | when enough objects have been removed and the low-water mark is | |
473 | reached. Defaults are 90% and 95%. If you have a large cache, 5% | |
474 | could be hundreds of MB. If this is the case you may wish to | |
475 | set these numbers closer together. | |
934b03fc | 476 | |
477 | cache_swap_low 90 | |
478 | cache_swap_high 95 | |
479 | DOC_END | |
480 | ||
481 | ||
482 | NAME: cache_mem_low | |
483 | COMMENT: (in percent, 0-100) | |
484 | TYPE: int | |
485 | DEFAULT: 75 | |
486 | LOC: Config.Mem.lowWaterMark | |
487 | DOC_NONE | |
488 | ||
489 | NAME: cache_mem_high | |
490 | COMMENT: (in percent, 0-100) | |
491 | TYPE: int | |
492 | DEFAULT: 95 | |
493 | LOC: Config.Mem.highWaterMark | |
494 | DOC_START | |
495 | The low- and high-water mark for cache memory storage. When | |
496 | the amount of RAM used by the hot-object RAM cache reaches this | |
497 | point, the cache starts throwing objects out of the RAM cache | |
498 | (but they remain on disk). Defaults are 75% and 90%. | |
499 | ||
500 | cache_mem_low 75 | |
501 | cache_mem_high 90 | |
502 | DOC_END | |
503 | ||
504 | ||
505 | NAME: maximum_object_size | |
9e975e4e | 506 | COMMENT: (bytes) |
1b635117 | 507 | TYPE: b_size_t |
9906e724 | 508 | DEFAULT: 4096 KB |
934b03fc | 509 | LOC: Config.Store.maxObjectSize |
510 | DOC_START | |
511 | Objects larger than this size will NOT be saved on disk. The | |
cf5cc17e | 512 | value is specified in kilobytes, and the default is 4MB. If |
513 | you wish to get a high BYTES hit ratio, you should probably | |
514 | increase this (one 32 MB object hit counts for 3200 10KB | |
515 | hits). If you wish to increase speed more than your want to | |
516 | save bandwidth you should leave this low. | |
934b03fc | 517 | |
9906e724 | 518 | maximum_object_size 4096 KB |
934b03fc | 519 | DOC_END |
520 | ||
521 | ||
522 | NAME: ipcache_size | |
523 | COMMENT: (number of entries) | |
524 | TYPE: int | |
525 | DEFAULT: 1024 | |
526 | LOC: Config.ipcache.size | |
527 | DOC_NONE | |
528 | ||
529 | NAME: ipcache_low | |
530 | COMMENT: (percent) | |
531 | TYPE: int | |
532 | DEFAULT: 90 | |
533 | LOC: Config.ipcache.low | |
534 | DOC_NONE | |
535 | ||
536 | NAME: ipcache_high | |
537 | COMMENT: (percent) | |
538 | TYPE: int | |
539 | DEFAULT: 95 | |
540 | LOC: Config.ipcache.high | |
541 | DOC_START | |
542 | The size, low-, and high-water marks for the IP cache. | |
543 | ||
544 | ipcache_size 1024 | |
545 | ipcache_low 90 | |
546 | ipcache_high 95 | |
547 | DOC_END | |
548 | ||
0f74202c | 549 | COMMENT_START |
3a278cb8 | 550 | LOGFILE PATHNAMES AND CACHE DIRECTORIES |
551 | ----------------------------------------------------------------------------- | |
0f74202c | 552 | COMMENT_END |
934b03fc | 553 | |
554 | NAME: cache_dir | |
555 | TYPE: cachedir | |
f1dc9b30 | 556 | DEFAULT: none |
0108d71f | 557 | DEFAULT_IF_NONE: @DEFAULT_SWAP_DIR@ 100 16 256 |
f1dc9b30 | 558 | LOC: Config.cacheSwap |
934b03fc | 559 | DOC_START |
cf5cc17e | 560 | Usage: |
561 | ||
562 | cache_dir Directory-Name Mbytes Level-1 Level2 | |
934b03fc | 563 | |
564 | You can specify multiple cache_dir lines to spread the | |
565 | cache among different disk partitions. | |
566 | ||
cf5cc17e | 567 | 'Directory' is a top-level directory where cache swap |
568 | files will be stored. If you want to use an entire disk | |
569 | for caching, then this can be the mount-point directory. | |
570 | The directory must exist and be writable by the Squid | |
571 | process. Squid will NOT create this directory for you. | |
572 | ||
573 | If no 'cache_dir' lines are specified, the following | |
574 | default will be used: @DEFAULT_SWAP_DIR@. | |
575 | ||
576 | 'Mbytes' is the amount of disk space (MB) to use under this | |
577 | directory. The default is 100 MB. Change this to suit your | |
578 | configuration. | |
579 | ||
580 | 'Level-1' is the number of first-level subdirectories which | |
581 | will be created under the 'Directory'. The default is 16. | |
582 | ||
583 | 'Level-2' is the number of second-level subdirectories which | |
584 | will be created under each first-level directory. The default | |
585 | is 256. | |
586 | ||
5375428c | 587 | cache_dir @DEFAULT_SWAP_DIR@ 100 16 256 |
934b03fc | 588 | DOC_END |
589 | ||
590 | ||
591 | NAME: cache_access_log | |
592 | TYPE: string | |
d0b98f84 | 593 | DEFAULT: @DEFAULT_ACCESS_LOG@ |
934b03fc | 594 | LOC: Config.Log.access |
595 | DOC_START | |
596 | Logs the client request activity. Contains an entry for | |
597 | every HTTP and ICP request received. | |
598 | ||
5375428c | 599 | cache_access_log @DEFAULT_ACCESS_LOG@ |
934b03fc | 600 | DOC_END |
601 | ||
602 | ||
603 | NAME: cache_log | |
604 | TYPE: string | |
0153d498 | 605 | DEFAULT: @DEFAULT_CACHE_LOG@ |
934b03fc | 606 | LOC: Config.Log.log |
607 | DOC_START | |
cf5cc17e | 608 | Cache logging file. This is where general information about |
609 | your cache's behaviour goes. You can increase the amount of data | |
610 | logged to this file with the "debug_options" tag below. | |
934b03fc | 611 | |
0153d498 | 612 | cache_log @DEFAULT_CACHE_LOG@ |
934b03fc | 613 | DOC_END |
614 | ||
615 | ||
616 | NAME: cache_store_log | |
617 | TYPE: string | |
0153d498 | 618 | DEFAULT: @DEFAULT_STORE_LOG@ |
934b03fc | 619 | LOC: Config.Log.store |
620 | DOC_START | |
621 | Logs the activities of the storage manager. Shows which | |
622 | objects are ejected from the cache, and which objects are | |
cf5cc17e | 623 | saved and for how long. To disable, enter "none". There are |
624 | not really utilities to analyse this data, so you can safely | |
625 | disable it. | |
934b03fc | 626 | |
0153d498 | 627 | cache_store_log @DEFAULT_STORE_LOG@ |
934b03fc | 628 | DOC_END |
629 | ||
630 | ||
631 | NAME: cache_swap_log | |
632 | TYPE: string | |
633 | LOC: Config.Log.swap | |
1273d501 | 634 | DEFAULT: none |
934b03fc | 635 | DOC_START |
d0d3ec94 | 636 | Location for the cache "swap.log." This log file holds the |
934b03fc | 637 | metadata of objects saved on disk. It is used to rebuild the |
638 | cache during startup. Normally this file resides in the first | |
639 | 'cache_dir' directory, but you may specify an alternate | |
640 | pathname here. Note you must give a full filename, not just | |
cf5cc17e | 641 | a directory. Since this is the index for the whole object |
642 | list you CANNOT periodically rotate it! | |
934b03fc | 643 | |
644 | cache_swap_log | |
645 | DOC_END | |
646 | ||
647 | ||
648 | NAME: emulate_httpd_log | |
649 | COMMENT: on|off | |
650 | TYPE: onoff | |
f1dc9b30 | 651 | DEFAULT: off |
17a0a4ee | 652 | LOC: Config.onoff.common_log |
934b03fc | 653 | DOC_START |
654 | The Cache can emulate the log file format which many 'httpd' | |
655 | programs use. To disable/enable this emulation, set | |
656 | emulate_httpd_log to 'off' or 'on'. The default | |
cf5cc17e | 657 | is to use the native log format since it includes useful |
658 | information that Squid-specific log analysers use. | |
934b03fc | 659 | |
660 | emulate_httpd_log off | |
661 | DOC_END | |
662 | ||
663 | ||
664 | NAME: mime_table | |
f0b19334 | 665 | TYPE: string |
0153d498 | 666 | DEFAULT: @DEFAULT_MIME_TABLE@ |
934b03fc | 667 | LOC: Config.mimeTablePathname |
668 | DOC_START | |
cf5cc17e | 669 | Pathname to Squid's MIME table. You shouldn't need to change |
670 | this, but the default file contains examples and formatting | |
671 | information if you do. | |
934b03fc | 672 | |
0153d498 | 673 | mime_table @DEFAULT_MIME_TABLE@ |
934b03fc | 674 | DOC_END |
675 | ||
676 | ||
677 | NAME: log_mime_hdrs | |
678 | COMMENT: on|off | |
679 | TYPE: onoff | |
17a0a4ee | 680 | LOC: Config.onoff.log_mime_hdrs |
f1dc9b30 | 681 | DEFAULT: off |
934b03fc | 682 | DOC_START |
cf5cc17e | 683 | The Cache can record both the request and the response MIME |
684 | headers for each HTTP transaction. The headers are encoded | |
685 | safely and will appear as two bracketed fields at the end of | |
686 | the access log (for either the native or httpd-emulated log | |
687 | formats). To enable this logging set log_mime_hdrs to 'on'. | |
934b03fc | 688 | |
689 | log_mime_hdrs off | |
690 | DOC_END | |
691 | ||
692 | ||
693 | NAME: useragent_log | |
694 | TYPE: string | |
695 | LOC: Config.Log.useragent | |
f1dc9b30 | 696 | DEFAULT: none |
934b03fc | 697 | DOC_START |
cf5cc17e | 698 | If configured with the "--enable-useragent_log" configure |
699 | option, Squid will write the User-Agent field from HTTP | |
700 | requests to the filename specified here. By default | |
701 | useragent_log is disabled. | |
934b03fc | 702 | |
703 | useragent_log none | |
704 | DOC_END | |
705 | ||
706 | ||
707 | NAME: pid_filename | |
708 | TYPE: string | |
0153d498 | 709 | DEFAULT: @DEFAULT_PID_FILE@ |
934b03fc | 710 | LOC: Config.pidFilename |
711 | DOC_START | |
d0d41f07 | 712 | A filename to write the process-id to. To disable, enter "none". |
934b03fc | 713 | |
0153d498 | 714 | pid_filename @DEFAULT_PID_FILE@ |
934b03fc | 715 | DOC_END |
716 | ||
717 | ||
718 | NAME: debug_options | |
f1dc9b30 | 719 | TYPE: eol |
934b03fc | 720 | DEFAULT: ALL,1 |
721 | LOC: Config.debugOptions | |
722 | DOC_START | |
723 | Logging options are set as section,level where each source file | |
724 | is assigned a unique section. Lower levels result in less | |
725 | output, Full debugging (level 9) can result in a very large | |
726 | log file, so be careful. The magic word "ALL" sets debugging | |
727 | levels for all sections. We recommend normally running with | |
728 | "ALL,1". | |
729 | ||
730 | debug_options ALL,1 | |
731 | DOC_END | |
732 | ||
733 | ||
734 | NAME: ident_lookup | |
735 | COMMENT: on|off | |
736 | TYPE: onoff | |
f1dc9b30 | 737 | DEFAULT: off |
17a0a4ee | 738 | LOC: Config.onoff.ident_lookup |
934b03fc | 739 | DOC_START |
cf5cc17e | 740 | If you wish to make an RFC931/ident lookup of the client |
741 | username for each connection, enable this. It is off by | |
742 | default. | |
934b03fc | 743 | |
744 | ident_lookup off | |
745 | DOC_END | |
746 | ||
747 | ||
748 | NAME: log_fqdn | |
749 | COMMENT: on|off | |
750 | TYPE: onoff | |
f1dc9b30 | 751 | DEFAULT: off |
17a0a4ee | 752 | LOC: Config.onoff.log_fqdn |
934b03fc | 753 | DOC_START |
754 | Turn this on if you wish to log fully qualified domain names | |
cf5cc17e | 755 | in the access.log. To do this Squid does a DNS lookup of all |
756 | IP's connecting to it. This can (in some situations) increase | |
757 | latency, which makes your cache seem slower for interactive | |
758 | browsing. | |
934b03fc | 759 | |
760 | log_fqdn off | |
761 | DOC_END | |
762 | ||
763 | ||
764 | NAME: client_netmask | |
765 | TYPE: address | |
766 | LOC: Config.Addrs.client_netmask | |
f1dc9b30 | 767 | DEFAULT: 255.255.255.255 |
934b03fc | 768 | DOC_START |
769 | A netmask for client addresses in logfiles and cachemgr output. | |
770 | Change this to protect the privacy of your cache clients. | |
cf5cc17e | 771 | A netmask of 255.255.255.0 will log all IP's in that range with |
772 | the last digit set to '0'. | |
934b03fc | 773 | |
774 | client_netmask 255.255.255.255 | |
775 | DOC_END | |
776 | ||
777 | ||
0f74202c | 778 | COMMENT_START |
3a278cb8 | 779 | OPTIONS FOR EXTERNAL SUPPORT PROGRAMS |
780 | ----------------------------------------------------------------------------- | |
0f74202c | 781 | COMMENT_END |
934b03fc | 782 | |
934b03fc | 783 | NAME: ftp_user |
784 | TYPE: string | |
cf5cc17e | 785 | DEFAULT: Squid@ |
934b03fc | 786 | LOC: Config.Ftp.anon_user |
787 | DOC_START | |
788 | If you want the anonymous login password to be more informative | |
789 | (and enable the use of picky ftp servers), set this to something | |
790 | resonable for your domain, like wwwuser@somewhere.net | |
791 | ||
792 | The reason why this is domainless by default is that the | |
793 | request can be made on the behalf of a user in any domain, | |
794 | depending on how the cache is used. | |
795 | Some ftp server also validate that the email address is valid | |
796 | (for example perl.com). | |
797 | ||
cf5cc17e | 798 | ftp_user Squid@ |
934b03fc | 799 | DOC_END |
800 | ||
365cb147 | 801 | NAME: ftp_list_width |
1b635117 | 802 | TYPE: size_t |
365cb147 | 803 | DEFAULT: 32 |
804 | LOC: Config.Ftp.list_width | |
805 | DOC_START | |
cf5cc17e | 806 | Sets the width of ftp listings. This should be set to fit in |
807 | the width of a standard browser. Setting this too small | |
808 | can cut off long filenames when browsing ftp sites. | |
809 | ||
365cb147 | 810 | ftp_list_width 32 |
811 | DOC_END | |
812 | ||
934b03fc | 813 | NAME: cache_dns_program |
f0b19334 | 814 | TYPE: string |
0153d498 | 815 | DEFAULT: @DEFAULT_DNSSERVER@ |
934b03fc | 816 | LOC: Config.Program.dnsserver |
817 | DOC_START | |
818 | Specify the location of the executable for dnslookup process. | |
819 | ||
0153d498 | 820 | cache_dns_program @DEFAULT_DNSSERVER@ |
934b03fc | 821 | DOC_END |
822 | ||
934b03fc | 823 | NAME: dns_children |
824 | TYPE: int | |
825 | DEFAULT: 5 | |
826 | LOC: Config.dnsChildren | |
827 | DOC_START | |
828 | The number of processes spawn to service DNS name lookups. | |
829 | For heavily loaded caches on large servers, you should | |
830 | probably increase this value to at least 10. The maximum | |
831 | is 32. The default is 5. | |
832 | ||
833 | To disable dnsservers, set this to 0. NOTE, this is very | |
834 | strongly discouraged. If you disable dnsservers your Squid | |
835 | process will BLOCK on DNS lookups! | |
836 | ||
837 | dns_children 5 | |
838 | DOC_END | |
839 | ||
840 | ||
841 | NAME: dns_defnames | |
842 | COMMENT: on|off | |
843 | TYPE: onoff | |
f1dc9b30 | 844 | DEFAULT: off |
17a0a4ee | 845 | LOC: Config.onoff.res_defnames |
934b03fc | 846 | DOC_START |
847 | Normally the 'dnsserver' disables the RES_DEFNAMES resolver | |
848 | option (see res_init(3)). This prevents caches in a hierarchy | |
849 | from interpreting single-component hostnames locally. To allow | |
850 | dnsserver to handle single-component names, enable this | |
851 | option. | |
852 | ||
853 | dns_defnames off | |
854 | DOC_END | |
855 | ||
09c483ec | 856 | NAME: dns_nameservers |
857 | TYPE: wordlist | |
858 | DEFAULT: none | |
859 | LOC: Config.dns_nameservers | |
860 | DOC_START | |
861 | Use this if you want to specify a list of DNS name servers | |
862 | (IP addresses) to use instead of those given in your | |
863 | /etc/resolv.conf file. | |
864 | ||
865 | Example: dns_nameservers 10.0.0.1 192.172.0.4 | |
866 | ||
867 | dns_nameservers none | |
868 | DOC_END | |
869 | ||
934b03fc | 870 | |
871 | NAME: unlinkd_program | |
f0b19334 | 872 | TYPE: string |
0153d498 | 873 | DEFAULT: @DEFAULT_UNLINKD@ |
934b03fc | 874 | LOC: Config.Program.unlinkd |
875 | DOC_START | |
876 | Specify the location of the executable for file deletion process. | |
cf5cc17e | 877 | This isn't needed if you are using async-io since it's handled by |
878 | a thread. | |
934b03fc | 879 | |
0153d498 | 880 | unlinkd_program @DEFAULT_UNLINKD@ |
934b03fc | 881 | DOC_END |
882 | ||
883 | ||
884 | NAME: pinger_program | |
a95856a0 | 885 | TYPE: string |
0153d498 | 886 | DEFAULT: @DEFAULT_PINGER@ |
934b03fc | 887 | LOC: Config.Program.pinger |
888 | DOC_START | |
889 | Specify the location of the executable for the pinger process. | |
cf5cc17e | 890 | This is only useful if you configured Squid (during compliation) |
891 | with the '--enable-icmp' option. | |
934b03fc | 892 | |
0153d498 | 893 | pinger_program @DEFAULT_PINGER@ |
934b03fc | 894 | DOC_END |
895 | ||
896 | ||
897 | NAME: redirect_program | |
f0b19334 | 898 | TYPE: string |
934b03fc | 899 | LOC: Config.Program.redirect |
62607543 | 900 | DEFAULT: none |
934b03fc | 901 | DOC_START |
902 | Specify the location of the executable for the URL redirector. | |
cf5cc17e | 903 | Since they can perform almost any function there isn't one included. |
904 | See the Release-Notes for information on how to write one. | |
905 | By default, a redirector is not used. | |
934b03fc | 906 | |
f0b19334 | 907 | redirect_program none |
934b03fc | 908 | DOC_END |
909 | ||
910 | ||
911 | NAME: redirect_children | |
912 | TYPE: int | |
913 | DEFAULT: 5 | |
914 | LOC: Config.redirectChildren | |
915 | DOC_START | |
cf5cc17e | 916 | The number of redirector processes to spawn. If you start |
917 | too few Squid will have to wait for them to process a backlog of | |
918 | URLs, slowing it down. If you start too many they will use RAM | |
919 | and other system resources. | |
934b03fc | 920 | |
921 | redirect_children 5 | |
922 | DOC_END | |
923 | ||
0f74202c | 924 | COMMENT_START |
3a278cb8 | 925 | OPTIONS FOR TUNING THE CACHE |
926 | ----------------------------------------------------------------------------- | |
0f74202c | 927 | COMMENT_END |
934b03fc | 928 | |
0153d498 | 929 | NAME: wais_relay_host |
930 | TYPE: string | |
1273d501 | 931 | DEFAULT: none |
0153d498 | 932 | LOC: Config.Wais.relayHost |
933 | DOC_NONE | |
934b03fc | 934 | |
0153d498 | 935 | NAME: wais_relay_port |
936 | TYPE: ushort | |
937 | DEFAULT: 0 | |
938 | LOC: Config.Wais.relayPort | |
934b03fc | 939 | DOC_START |
940 | Relay WAIS request to host (1st arg) at port (2 arg). | |
941 | ||
0153d498 | 942 | wais_relay_host localhost |
943 | wais_relay_port 8000 | |
934b03fc | 944 | DOC_END |
945 | ||
946 | ||
947 | NAME: request_size | |
9906e724 | 948 | COMMENT: (KB) |
518da0bd | 949 | TYPE: b_size_t |
9906e724 | 950 | DEFAULT: 100 KB |
934b03fc | 951 | LOC: Config.maxRequestSize |
952 | DOC_START | |
953 | Maximum allowed request size in kilobytes. If people are using | |
954 | POST to upload files, then set this to the largest acceptable | |
955 | filesize plus a few extra kbytes. | |
956 | ||
9906e724 | 957 | request_size 100 KB |
934b03fc | 958 | DOC_END |
959 | ||
960 | ||
961 | NAME: refresh_pattern | |
934b03fc | 962 | TYPE: refreshpattern |
f1dc9b30 | 963 | LOC: Config.Refresh |
1273d501 | 964 | DEFAULT: none |
934b03fc | 965 | DOC_START |
1dfa1d81 | 966 | usage: refresh_pattern regex min percent max [options] |
934b03fc | 967 | |
968 | min and max are specified in MINUTES. | |
969 | percent is an integer number. | |
970 | ||
1dfa1d81 | 971 | options: override-expire |
972 | override-lastmod | |
973 | ||
974 | override-expire enforces min age even if the server | |
975 | sent a Expires: header. Warning: This breaks HTTP | |
976 | freshness control, and may have servere inpact on | |
977 | the usability of sites that makes correct use of | |
978 | Expires: headers on dynamic data. | |
979 | ||
980 | override-lastmod enforces min age even on objects | |
981 | that was modified recently. | |
982 | ||
934b03fc | 983 | Please see the file doc/Release-Notes-1.1.txt for a full |
984 | description of Squid's refresh algorithm. Basically a | |
1dfa1d81 | 985 | cached object is: (the order is changed from 1.1.X) |
934b03fc | 986 | |
934b03fc | 987 | STALE if age > max |
1dfa1d81 | 988 | FRESH if expires < now, else STALE |
989 | FRESH if lm-factor < percent, else STALE | |
990 | FRESH if age < min | |
991 | else STALE | |
934b03fc | 992 | |
993 | The refresh_pattern lines are checked in the order listed here. | |
994 | The first entry which matches is used. If none of the entries | |
995 | match, then the default will be used. | |
996 | ||
997 | Default: | |
998 | refresh_pattern . 0 20% 4320 | |
999 | DOC_END | |
1000 | ||
1001 | ||
1002 | NAME: reference_age | |
f1dc9b30 | 1003 | TYPE: time_t |
934b03fc | 1004 | LOC: Config.referenceAge |
f1dc9b30 | 1005 | DEFAULT: 1 year |
934b03fc | 1006 | DOC_START |
1007 | As a part of normal operation, Squid performs Least Recently | |
1008 | Used removal of cached objects. The LRU age for removal is | |
1009 | computed dynamically, based on the amount of disk space in | |
6778c757 | 1010 | use. The dynamic value can be seen in the Cache Manager 'info' |
1011 | output. | |
1012 | ||
1013 | The 'reference_age' parameter defines the maximum LRU age. For | |
1014 | example, setting reference_age to '1 week' will cause objects | |
1015 | to be removed if they have not been accessed for a week or | |
1016 | more. The default value is one month. | |
934b03fc | 1017 | |
1018 | Specify a number here, followed by units of time. For example: | |
1019 | 1 week | |
1020 | 3.5 days | |
1021 | 4 months | |
1022 | 2.2 hours | |
1023 | ||
f1dc9b30 | 1024 | reference_age 1 month |
934b03fc | 1025 | DOC_END |
1026 | ||
1027 | ||
0153d498 | 1028 | NAME: quick_abort_min |
9906e724 | 1029 | COMMENT: (KB) |
1030 | TYPE: kb_size_t | |
9e975e4e | 1031 | DEFAULT: -1 kb |
0153d498 | 1032 | LOC: Config.quickAbort.min |
1033 | DOC_NONE | |
1034 | ||
1035 | NAME: quick_abort_pct | |
1036 | COMMENT: (percent) | |
1037 | TYPE: int | |
1038 | DEFAULT: 0 | |
1039 | LOC: Config.quickAbort.pct | |
1040 | DOC_NONE | |
1041 | ||
1042 | NAME: quick_abort_max | |
9906e724 | 1043 | COMMENT: (KB) |
1044 | TYPE: kb_size_t | |
9e975e4e | 1045 | DEFAULT: 0 kb |
0153d498 | 1046 | LOC: Config.quickAbort.max |
934b03fc | 1047 | DOC_START |
cf5cc17e | 1048 | The cache can be configured to continue downloading aborted |
1049 | requests. This may be undesirable on slow (e.g. SLIP) links | |
1050 | and/or very busy caches. Impatient users may tie up file | |
1051 | descriptors and bandwidth by repeatedly requesting and | |
1052 | immediately aborting downloads. | |
934b03fc | 1053 | |
1054 | When the user aborts a request, Squid will check the | |
1055 | quick_abort values to the amount of data transfered until | |
1056 | then. | |
1057 | ||
cf5cc17e | 1058 | If the transfer has less than 'quick_abort_min' KB remaining, |
1059 | it will finish the retrieval. Setting 'quick_abort_min' to -1 | |
1060 | will disable the quick_abort feature. | |
934b03fc | 1061 | |
cf5cc17e | 1062 | If more than 'quick_abort_pct' of the transfer has completed, |
1063 | it will finish the retrieval. | |
934b03fc | 1064 | |
cf5cc17e | 1065 | If the transfer has more than 'quick_abort_max' KB remaining, |
1066 | it will abort the retrieval. | |
934b03fc | 1067 | |
cf5cc17e | 1068 | quick_abort_min -1 KB |
0153d498 | 1069 | quick_abort_pct 0 |
cf5cc17e | 1070 | quick_abort_max 0 KB |
934b03fc | 1071 | DOC_END |
1072 | ||
1073 | ||
1074 | NAME: negative_ttl | |
bc0eb004 | 1075 | COMMENT: time-units |
f1dc9b30 | 1076 | TYPE: time_t |
934b03fc | 1077 | LOC: Config.negativeTtl |
9e975e4e | 1078 | DEFAULT: 5 minutes |
934b03fc | 1079 | DOC_START |
1080 | Time-to-Live (TTL) for failed requests. Certain types of | |
1081 | failures (such as "connection refused" and "404 Not Found") are | |
cf5cc17e | 1082 | negatively-cached for a configurable amount of time. The |
1083 | default is 5 minutes. Note that this is different from | |
1084 | negative caching of DNS lookups. | |
934b03fc | 1085 | |
1086 | negative_ttl 5 minutes | |
1087 | DOC_END | |
1088 | ||
1089 | ||
1090 | NAME: positive_dns_ttl | |
bc0eb004 | 1091 | COMMENT: time-units |
f1dc9b30 | 1092 | TYPE: time_t |
934b03fc | 1093 | LOC: Config.positiveDnsTtl |
9e975e4e | 1094 | DEFAULT: 6 hours |
934b03fc | 1095 | DOC_START |
1096 | Time-to-Live (TTL) for positive caching of successful DNS lookups. | |
1097 | Default is 6 hours (360 minutes). If you want to minimize the | |
1098 | use of Squid's ipcache, set this to 1, not 0. | |
1099 | ||
9e975e4e | 1100 | positive_dns_ttl 6 hours |
934b03fc | 1101 | DOC_END |
1102 | ||
1103 | ||
1104 | NAME: negative_dns_ttl | |
bc0eb004 | 1105 | COMMENT: time-units |
f1dc9b30 | 1106 | TYPE: time_t |
934b03fc | 1107 | LOC: Config.negativeDnsTtl |
9e975e4e | 1108 | DEFAULT: 5 minutes |
934b03fc | 1109 | DOC_START |
1110 | Time-to-Live (TTL) for negative caching of failed DNS lookups. | |
1111 | ||
1112 | negative_dns_ttl 5 minutes | |
1113 | DOC_END | |
1114 | ||
0f74202c | 1115 | COMMENT_START |
3a278cb8 | 1116 | TIMEOUTS |
1117 | ----------------------------------------------------------------------------- | |
0f74202c | 1118 | COMMENT_END |
934b03fc | 1119 | |
1120 | NAME: connect_timeout | |
bc0eb004 | 1121 | COMMENT: time-units |
f1dc9b30 | 1122 | TYPE: time_t |
934b03fc | 1123 | LOC: Config.Timeout.connect |
9e975e4e | 1124 | DEFAULT: 2 minutes |
934b03fc | 1125 | DOC_START |
1126 | Some systems (notably Linux) can not be relied upon to properly | |
cf5cc17e | 1127 | time out connect(2) requests. Therefore the Squid process |
934b03fc | 1128 | enforces its own timeout on server connections. This parameter |
1129 | specifies how long to wait for the connect to complete. The | |
1130 | default is two minutes (120 seconds). | |
1131 | ||
1132 | connect_timeout 120 seconds | |
1133 | DOC_END | |
1134 | ||
23d92c64 | 1135 | NAME: siteselect_timeout |
1136 | COMMENT: time-units | |
1137 | TYPE: time_t | |
1138 | LOC: Config.Timeout.siteSelect | |
1139 | DEFAULT: 4 seconds | |
1140 | DOC_START | |
1141 | For URN to multiple URL's URL selection | |
1142 | ||
1143 | siteselect_timeout 4 seconds | |
1144 | DOC_END | |
934b03fc | 1145 | |
1146 | NAME: read_timeout | |
bc0eb004 | 1147 | COMMENT: time-units |
f1dc9b30 | 1148 | TYPE: time_t |
934b03fc | 1149 | LOC: Config.Timeout.read |
9e975e4e | 1150 | DEFAULT: 15 minutes |
934b03fc | 1151 | DOC_START |
1152 | The read_timeout is applied on server-side connections. After | |
1153 | each successful read(), the timeout will be extended by this | |
1154 | amount. If no data is read again after this amount of time, | |
1155 | the request is aborted and logged with ERR_READ_TIMEOUT. The | |
1156 | default is 15 minutes. | |
1157 | ||
1158 | read_timeout 15 minutes | |
1159 | DOC_END | |
1160 | ||
1161 | ||
934b03fc | 1162 | NAME: request_timeout |
f1dc9b30 | 1163 | TYPE: time_t |
934b03fc | 1164 | LOC: Config.Timeout.request |
9e975e4e | 1165 | DEFAULT: 30 seconds |
934b03fc | 1166 | DOC_START |
1167 | How long to wait for an HTTP request after connection | |
1168 | establishment. For persistent connections, wait this long | |
1169 | after the previous request completes. | |
1170 | ||
0fbcf3c7 | 1171 | request_timeout 30 seconds |
934b03fc | 1172 | DOC_END |
1173 | ||
1174 | ||
1175 | NAME: client_lifetime | |
bc0eb004 | 1176 | COMMENT: time-units |
f1dc9b30 | 1177 | TYPE: time_t |
934b03fc | 1178 | LOC: Config.Timeout.lifetime |
9e975e4e | 1179 | DEFAULT: 1 day |
934b03fc | 1180 | DOC_START |
1181 | The maximum amount of time that a client (browser) is allowed to | |
1182 | remain connected to the cache process. This protects the Cache | |
1183 | from having alot of sockets (and hence file descriptors) tied up | |
1184 | in a CLOSE_WAIT state from remote clients that go away without | |
1185 | properly shutting down (either because of a network failure or | |
1186 | because of a poor client implementation). The default is one | |
1187 | day, 1440 minutes. | |
1188 | ||
1189 | NOTE: The default value is intended to be much larger than any | |
1190 | client would ever need to be connected to your cache. You | |
1191 | should probably change client_lifetime only as a last resort. | |
1192 | If you seem to have many client connections tying up | |
1193 | filedescriptors, we recommend first tuning the read_timeout, | |
0fbcf3c7 | 1194 | request_timeout, pconn_timeout and quick_abort values. |
934b03fc | 1195 | |
1196 | client_lifetime 1 day | |
1197 | DOC_END | |
1198 | ||
ea285003 | 1199 | NAME: half_closed_clients |
1200 | TYPE: onoff | |
1201 | LOC: Config.onoff.half_closed_clients | |
1202 | DEFAULT: on | |
1203 | DOC_START | |
1204 | Some clients may shutdown the sending side of their TCP | |
1205 | connections, while leaving their receiving sides open. Sometimes, | |
1206 | Squid can not tell the difference between a half-closed and a | |
1207 | fully-closed TCP connection. By default, half-closed client | |
1208 | connections are kept open until a read(2) or write(2) on the | |
1209 | socket returns an error. Change this option to 'off' and Squid | |
1210 | will immediately close client connections when read(2) returns | |
1211 | "no more data to read." | |
1212 | ||
1213 | half_closed_clients on | |
1214 | DOC_END | |
1215 | ||
603a02fd | 1216 | NAME: pconn_timeout |
1217 | TYPE: time_t | |
1218 | LOC: Config.Timeout.pconn | |
1219 | DEFAULT: 120 seconds | |
1220 | DOC_START | |
1221 | Timeout for idle persistent connections to servers and other | |
1222 | proxies. | |
1223 | pconn_timeout 120 seconds | |
1224 | DOC_END | |
1225 | ||
934b03fc | 1226 | |
1227 | NAME: shutdown_lifetime | |
bc0eb004 | 1228 | COMMENT: time-units |
f1dc9b30 | 1229 | TYPE: time_t |
934b03fc | 1230 | LOC: Config.shutdownLifetime |
9e975e4e | 1231 | DEFAULT: 30 seconds |
934b03fc | 1232 | DOC_START |
1233 | When SIGTERM or SIGHUP is received, the cache is put into | |
1234 | "shutdown pending" mode until all active sockets are closed. | |
1235 | This value is the lifetime to set for all open descriptors | |
1236 | during shutdown mode. Any active clients after this many | |
1237 | seconds will receive a 'timeout' message. | |
1238 | ||
1239 | shutdown_lifetime 30 seconds | |
1240 | DOC_END | |
1241 | ||
0f74202c | 1242 | COMMENT_START |
3a278cb8 | 1243 | ACCESS CONTROLS |
1244 | ----------------------------------------------------------------------------- | |
0f74202c | 1245 | COMMENT_END |
934b03fc | 1246 | |
1247 | NAME: acl | |
1248 | TYPE: acl | |
f1dc9b30 | 1249 | LOC: Config.aclList |
1250 | DEFAULT: none | |
934b03fc | 1251 | DOC_START |
1252 | Defining an Access List | |
1253 | ||
1254 | acl aclname acltype string1 ... | |
1255 | acl aclname acltype "file" ... | |
1256 | ||
1257 | when using "file", the file should contain one item per line | |
1258 | ||
1259 | acltype is one of src dst srcdomain dstdomain url_pattern | |
1260 | urlpath_pattern time port proto method browser user | |
1261 | ||
1262 | acl aclname src ip-address/netmask ... (clients IP address) | |
1263 | acl aclname src addr1-addr2/netmask ... (range of addresses) | |
1264 | acl aclname dst ip-address/netmask ... (URL host's IP address) | |
d0d41f07 | 1265 | |
1266 | acl aclname srcdomain foo.com ... # reverse lookup, client IP | |
1267 | acl aclname dstdomain foo.com ... # Destination server from URL | |
1268 | acl aclname srcdom_regex xxx ... # regex matching client name | |
1269 | acl aclname dstdom_regex xxx ... # regex matching server | |
1270 | # For dstdomain and dstdom_regex a reverse lookup is tried if a IP | |
1271 | # based URL is used. The name "none" is used if the reverse lookup | |
1272 | # fails. | |
1273 | ||
934b03fc | 1274 | acl aclname time [day-abbrevs] [h1:m1-h2:m2] |
1275 | day-abbrevs: | |
1276 | S - Sunday | |
1277 | M - Monday | |
1278 | T - Tuesday | |
1279 | W - Wednesday | |
1280 | H - Thursday | |
1281 | F - Friday | |
1282 | A - Saturday | |
1283 | h1:m1 must be less than h2:m2 | |
1284 | acl aclname url_regex ^http:// ... # regex matching on whole URL | |
d0d41f07 | 1285 | acl aclname urlpath_regex \.gif$ ... # regex matching on URL path |
934b03fc | 1286 | acl aclname port 80 70 21 ... |
1287 | acl aclname proto HTTP FTP ... | |
1288 | acl aclname method GET POST ... | |
1289 | acl aclname browser regexp | |
1290 | acl aclname user username ... # string match on ident output. | |
1291 | # use REQUIRED to accept any | |
1292 | # non-null ident. | |
6468fe10 | 1293 | acl aclname src_as number ... |
1294 | acl aclname dst_as number ... | |
1295 | # Except for access control, AS numbers can be used for | |
1296 | # routing of requests to specific caches. Here's an | |
1297 | # example for routing all requests for AS#1241 and only | |
1298 | # those to mycache.mydomain.net: | |
1299 | # acl asexample dst_as 1241 | |
af7d912e | 1300 | # cache_peer_acl mycache.mydomain.net asexample |
1301 | # cache_peer_acl mycache_mydomain.net !all | |
6468fe10 | 1302 | |
afe95a7e | 1303 | acl aclname proxy_auth passwd_file [ refresh ] |
1304 | # 'passwd_file' is an Apache-style file of passwords for | |
1305 | # authenticated proxy access. Looks like user:password, with | |
1306 | # the password being standard crypt() format. 'refresh' is | |
1307 | # the time in seconds to check for a changes in the file | |
1308 | # (default = 300 secs). When using a proxy_auth ACL in an | |
1309 | # ACL list, make sure it is the *last* in the list and the | |
1310 | # only proxy_auth ACL in the list. NOTE: when a | |
1311 | # Proxy-Authentication header is sent but it is not needed | |
1312 | # during ACL checking the username is NOT logged in | |
1313 | # access.log. | |
934b03fc | 1314 | |
1315 | acl manager proto cache_object | |
1316 | acl localhost src 127.0.0.1/255.255.255.255 | |
1317 | acl all src 0.0.0.0/0.0.0.0 | |
6468fe10 | 1318 | acl myexample dst_as 1241 |
934b03fc | 1319 | acl SSL_ports port 443 563 |
1320 | acl Dangerous_ports port 7 9 19 | |
1321 | acl CONNECT method CONNECT | |
1322 | DOC_END | |
1323 | ||
1324 | NAME: http_access | |
1325 | TYPE: acl_access | |
f1dc9b30 | 1326 | LOC: Config.accessList.http |
1327 | DEFAULT: none | |
934b03fc | 1328 | DOC_START |
1329 | Allowing or Denying access based on defined access lists | |
1330 | ||
1331 | Access to the HTTP port: | |
1332 | http_access allow|deny [!]aclname ... | |
1333 | ||
1334 | Access to the ICP port: | |
1335 | icp_access allow|deny [!]aclname ... | |
1336 | ||
1337 | NOTE on default values: | |
1338 | ||
1339 | If there are no "access" lines present, the default is to allow | |
1340 | the request. | |
1341 | ||
1342 | If none of the "access" lines cause a match, the default is the | |
1343 | opposite of the last line in the list. If the last line was | |
1344 | deny, then the default is allow. Conversely, if the last line | |
1345 | is allow, the default will be deny. For these reasons, it is a | |
1346 | good idea to have an "deny all" or "allow all" entry at the end | |
1347 | of your access lists to avoid potential confusion. | |
1348 | ||
1349 | ||
1350 | Only allow access to the cache manager functions from the local host. | |
1351 | http_access deny manager !localhost | |
1352 | http_access deny CONNECT !SSL_ports | |
1353 | http_access deny Dangerous_ports | |
1354 | ||
1355 | Allow everything else | |
1356 | http_access allow all | |
1357 | DOC_END | |
1358 | ||
1359 | ||
1360 | NAME: icp_access | |
1361 | TYPE: acl_access | |
f1dc9b30 | 1362 | LOC: Config.accessList.icp |
1363 | DEFAULT: none | |
934b03fc | 1364 | DOC_START |
1365 | Reply to all ICP queries we receive | |
1366 | ||
1367 | icp_access allow all | |
1368 | DOC_END | |
1369 | ||
1370 | ||
1371 | NAME: miss_access | |
1372 | TYPE: acl_access | |
f1dc9b30 | 1373 | LOC: Config.accessList.miss |
1374 | DEFAULT: none | |
934b03fc | 1375 | DOC_START |
1376 | Use to force your neighbors to use you as a sibling instead of | |
1377 | a parent. For example: | |
1378 | ||
1379 | acl localclients src 172.16.0.0/16 | |
1380 | miss_access allow localclients | |
1381 | miss_access deny !localclients | |
1382 | ||
1383 | This means that only your local clients are allowed to fetch | |
1384 | MISSES and all other clients can only fetch HITS. | |
1385 | ||
1386 | By default, allow all clients who passed the http_access rules | |
1387 | to fetch MISSES from us. | |
1388 | ||
1389 | miss_access allow all | |
1390 | DOC_END | |
1391 | ||
1392 | ||
505e35db | 1393 | NAME: cache_peer_access |
1394 | TYPE: peer_access | |
f1dc9b30 | 1395 | DEFAULT: none |
1396 | LOC: none | |
934b03fc | 1397 | DOC_START |
505e35db | 1398 | Similar to 'cache_peer_domain' but provides more flexibility by |
1399 | using ACL elements. | |
934b03fc | 1400 | |
505e35db | 1401 | cache_peer_access cache-host allow|deny [!]aclname ... |
934b03fc | 1402 | |
505e35db | 1403 | The syntax is identical to 'http_access' and the other lists of |
1404 | ACL elements. See the comments for 'http_access' below, or | |
1405 | the Squid FAQ (http://squid.nlanr.net/Squid/FAQ/FAQ-10.html). | |
934b03fc | 1406 | DOC_END |
1407 | ||
f715bd3a | 1408 | NAME: proxy_auth_realm |
1409 | TYPE: eol | |
1410 | DEFAULT: Squid proxy-caching web server | |
1411 | LOC: Config.proxyAuthRealm | |
1412 | DOC_START | |
1413 | Specifies the realm name which is to be reported to the client for | |
1414 | proxy authentication (part of the text the user will see when | |
1415 | prompted their username and password). | |
1416 | ||
1417 | proxy_auth_realm Squid proxy-caching web server | |
1418 | DOC_END | |
1419 | ||
1420 | ||
0f74202c | 1421 | COMMENT_START |
3a278cb8 | 1422 | ADMINISTRATIVE PARAMETERS |
1423 | ----------------------------------------------------------------------------- | |
0f74202c | 1424 | COMMENT_END |
934b03fc | 1425 | |
1426 | NAME: cache_mgr | |
1427 | TYPE: string | |
1428 | DEFAULT: webmaster | |
1429 | LOC: Config.adminEmail | |
1430 | DOC_START | |
1431 | Email-address of local cache manager who will receive | |
1432 | mail if the cache dies. The default is "webmaster." | |
1433 | ||
1434 | cache_mgr webmaster | |
1435 | DOC_END | |
1436 | ||
1437 | ||
1438 | NAME: cache_effective_user | |
0153d498 | 1439 | TYPE: string |
a95856a0 | 1440 | DEFAULT: nobody |
0153d498 | 1441 | LOC: Config.effectiveUser |
1442 | DOC_NONE | |
1443 | ||
1444 | NAME: cache_effective_group | |
1445 | TYPE: string | |
a95856a0 | 1446 | DEFAULT: nogroup |
0153d498 | 1447 | LOC: Config.effectiveGroup |
934b03fc | 1448 | DOC_START |
1449 | If the cache is run as root, it will change its effective/real | |
1450 | UID/GID to the UID/GID specified below. The default is not to | |
1451 | change UID/GID. | |
1452 | ||
0153d498 | 1453 | cache_effective_user nobody |
1454 | cache_effective_group nogroup | |
934b03fc | 1455 | DOC_END |
1456 | ||
1457 | ||
1458 | NAME: visible_hostname | |
1459 | TYPE: string | |
1460 | LOC: Config.visibleHostname | |
f1dc9b30 | 1461 | DEFAULT: none |
934b03fc | 1462 | DOC_START |
1463 | If you want to present a special hostname in error messages, etc, | |
1464 | then define this. Otherwise, the return value of gethostname() | |
cf5cc17e | 1465 | will be used. If you have multiple caches in a cluster and |
1466 | get errors about IP-forwarding you must set them to have individual | |
1467 | names with this setting. | |
934b03fc | 1468 | |
1469 | visible_hostname www-cache.foo.org | |
1470 | DOC_END | |
1471 | ||
98829f69 | 1472 | |
1473 | NAME: unique_hostname | |
1474 | TYPE: string | |
1475 | LOC: Config.uniqueHostname | |
1476 | DEFAULT: none | |
1477 | DOC_START | |
1478 | If you want to have multiple machines with the same | |
1479 | 'visible_hostname' then you must give each machine a different | |
1480 | 'unique_hostname' so that forwarding loops can be detected. | |
1481 | ||
1482 | unique_hostname www-cache1.foo.org | |
1483 | DOC_END | |
1484 | ||
0f74202c | 1485 | COMMENT_START |
3a278cb8 | 1486 | OPTIONS FOR THE CACHE REGISTRATION SERVICE |
1487 | ----------------------------------------------------------------------------- | |
934b03fc | 1488 | |
3a278cb8 | 1489 | This section contains parameters for the (optional) cache |
1490 | announcement service. This service is provided to help | |
1491 | cache administrators locate one another in order to join or | |
1492 | create cache hierarchies. | |
934b03fc | 1493 | |
3a278cb8 | 1494 | An 'announcement' message is sent (via UDP) to the registration |
1495 | service by Squid. By default, the annoucement message is NOT | |
d2d631ce | 1496 | SENT unless you enable it with 'announce_period' below. |
3a278cb8 | 1497 | |
1498 | The announcement message includes your hostname, plus the | |
1499 | following information from this configuration file: | |
934b03fc | 1500 | |
3a278cb8 | 1501 | http_port |
1502 | icp_port | |
1503 | cache_mgr | |
1504 | ||
1505 | All current information is processed regularly and made | |
d2d631ce | 1506 | available on the Web at http://ircache.nlanr.net/Cache/Tracker/. |
0f74202c | 1507 | COMMENT_END |
934b03fc | 1508 | |
f1dc9b30 | 1509 | NAME: announce_period |
1510 | TYPE: time_t | |
1511 | LOC: Config.Announce.period | |
d2d631ce | 1512 | DEFAULT: 0 |
934b03fc | 1513 | DOC_START |
d2d631ce | 1514 | This is how frequently to send cache announcements. The |
1515 | default is `0' which disables sending the announcement | |
1516 | messages. | |
934b03fc | 1517 | |
d2d631ce | 1518 | To enable announcing your cache, just uncomment the line |
1519 | below. | |
934b03fc | 1520 | |
9e975e4e | 1521 | announce_period 1 day |
934b03fc | 1522 | DOC_END |
1523 | ||
1524 | ||
f1dc9b30 | 1525 | NAME: announce_host |
1526 | TYPE: string | |
61735fcf | 1527 | DEFAULT: tracker.ircache.net |
f1dc9b30 | 1528 | LOC: Config.Announce.host |
1529 | DOC_NONE | |
1530 | ||
cf5cc17e | 1531 | NAME: announce_file |
1532 | TYPE: string | |
61735fcf | 1533 | DEFAULT: none |
cf5cc17e | 1534 | LOC: Config.Announce.file |
1535 | DOC_NONE | |
1536 | ||
f1dc9b30 | 1537 | NAME: announce_port |
1538 | TYPE: ushort | |
1539 | DEFAULT: 3131 | |
1540 | LOC: Config.Announce.port | |
934b03fc | 1541 | DOC_START |
d2d631ce | 1542 | announce_host and announce_port set the hostname and port |
1543 | number where the registration message will be sent. | |
934b03fc | 1544 | |
d2d631ce | 1545 | Hostname will default to 'tracker.ircache.net' and port will |
1546 | default default to 3131. If the 'filename' argument is given, | |
1547 | the contents of that file will be included in the announce | |
1548 | message. | |
934b03fc | 1549 | |
61735fcf | 1550 | announce_host tracker.ircache.net |
f1dc9b30 | 1551 | announce_port 3131 |
934b03fc | 1552 | DOC_END |
1553 | ||
0f74202c | 1554 | COMMENT_START |
3a278cb8 | 1555 | HTTPD-ACCELERATOR OPTIONS |
1556 | ----------------------------------------------------------------------------- | |
0f74202c | 1557 | COMMENT_END |
934b03fc | 1558 | |
f1dc9b30 | 1559 | NAME: httpd_accel_host |
1560 | TYPE: string | |
1561 | LOC: Config.Accel.host | |
1562 | DEFAULT: none | |
1563 | DOC_NONE | |
1564 | ||
1565 | NAME: httpd_accel_port | |
1566 | TYPE: ushort | |
1567 | LOC: Config.Accel.port | |
5b68a4d3 | 1568 | DEFAULT: 80 |
934b03fc | 1569 | DOC_START |
cf5cc17e | 1570 | If you want to run Squid as an httpd accelerator, define the |
934b03fc | 1571 | host name and port number where the real HTTP server is. |
1572 | ||
1573 | If you want virtual host support then specify the hostname | |
1574 | as "virtual". | |
1575 | ||
f1dc9b30 | 1576 | httpd_accel_host hostname |
1577 | httpd_accel_port port | |
934b03fc | 1578 | DOC_END |
1579 | ||
1580 | ||
1581 | NAME: httpd_accel_with_proxy | |
1582 | COMMENT: on|off | |
1583 | TYPE: onoff | |
f1dc9b30 | 1584 | DEFAULT: off |
17a0a4ee | 1585 | LOC: Config.onoff.accel_with_proxy |
934b03fc | 1586 | DOC_START |
cf5cc17e | 1587 | If you want to use Squid as both a local httpd accelerator |
934b03fc | 1588 | and as a proxy, change this to 'on'. |
1589 | ||
1590 | httpd_accel_with_proxy off | |
1591 | DOC_END | |
1592 | ||
1593 | ||
1594 | NAME: httpd_accel_uses_host_header | |
1595 | COMMENT: on|off | |
1596 | TYPE: onoff | |
f1dc9b30 | 1597 | DEFAULT: off |
934b03fc | 1598 | LOC: opt_accel_uses_host |
1599 | DOC_START | |
1600 | HTTP/1.1 requests include a Host: header which is basically the | |
1601 | hostname from the URL. Squid can be an accelerator for | |
1602 | different HTTP servers by looking at this header. However, | |
1603 | Squid does NOT check the value of the Host header, so it opens | |
1604 | a big security hole. We recommend that this option remain | |
1605 | disabled unless you are sure of what you are doing. | |
1606 | ||
04f6f348 | 1607 | However, you will need to enable this option if you run Squid |
1608 | as a transparent proxy. Otherwise, virtual servers which | |
1609 | require the Host: header will not be properly cached. | |
934b03fc | 1610 | httpd_accel_uses_host_header off |
1611 | DOC_END | |
1612 | ||
0f74202c | 1613 | COMMENT_START |
3a278cb8 | 1614 | MISCELLANEOUS |
1615 | ----------------------------------------------------------------------------- | |
0f74202c | 1616 | COMMENT_END |
934b03fc | 1617 | |
1618 | NAME: dns_testnames | |
1619 | TYPE: wordlist | |
1620 | LOC: Config.dns_testname_list | |
f1dc9b30 | 1621 | DEFAULT: none |
934b03fc | 1622 | DOC_START |
1623 | The DNS tests exit as soon as the first site is successfully looked up | |
1624 | ||
1625 | If you want to disable DNS tests, do not comment out or delete this | |
1626 | list. Instead use the -D command line option | |
1627 | ||
cf5cc17e | 1628 | dns_testnames netscape.com internic.net nlanr.net microsoft.com |
934b03fc | 1629 | DOC_END |
1630 | ||
1631 | ||
1632 | NAME: logfile_rotate | |
1633 | TYPE: int | |
1634 | DEFAULT: 10 | |
1635 | LOC: Config.Log.rotateNumber | |
1636 | DOC_START | |
cf5cc17e | 1637 | Specifies the number of logfile rotations to make upon |
1638 | receiving a USR1 signal. The default is 10, which will rotate | |
1639 | with extensions 0 through 9. Setting logfile_rotate to 0 will | |
934b03fc | 1640 | disable the rotation, but the logfiles are still closed and |
cf5cc17e | 1641 | re-opened. This will enable you to rename the logfiles |
1642 | yourself just before sending a USR1 signal to the Squid | |
1643 | process. | |
934b03fc | 1644 | |
1645 | logfile_rotate 10 | |
1646 | DOC_END | |
1647 | ||
1648 | ||
1649 | NAME: append_domain | |
f1dc9b30 | 1650 | TYPE: string |
1651 | LOC: Config.appendDomain | |
1652 | DEFAULT: none | |
934b03fc | 1653 | DOC_START |
cf5cc17e | 1654 | Appends local domain name to hostnames without any dots in |
1655 | them. append_domain must begin with a period. | |
934b03fc | 1656 | |
1657 | append_domain .yourdomain.com | |
1658 | DOC_END | |
1659 | ||
1660 | ||
1661 | NAME: tcp_recv_bufsize | |
89de058c | 1662 | COMMENT: (bytes) |
1b635117 | 1663 | TYPE: b_size_t |
89de058c | 1664 | DEFAULT: 0 bytes |
934b03fc | 1665 | LOC: Config.tcpRcvBufsz |
1666 | DOC_START | |
1667 | Size of receive buffer to set for TCP sockets. Probably just | |
1668 | as easy to change your kernel's default. Set to zero to use | |
1669 | the default buffer size. | |
1670 | ||
89de058c | 1671 | tcp_recv_bufsize 0 bytes |
934b03fc | 1672 | DOC_END |
1673 | ||
934b03fc | 1674 | NAME: err_html_text |
f1dc9b30 | 1675 | TYPE: eol |
1676 | LOC: Config.errHtmlText | |
1677 | DEFAULT: none | |
934b03fc | 1678 | DOC_START |
1679 | HTML text to include in error messages. Make this a "mailto" | |
1680 | URL to your admin address, or maybe just a link to your | |
1681 | organizations Web page. | |
1682 | ||
1683 | err_html_text | |
1684 | DOC_END | |
1685 | ||
1686 | ||
1687 | NAME: deny_info | |
1688 | TYPE: denyinfo | |
1689 | LOC: Config.denyInfoList | |
f1dc9b30 | 1690 | DEFAULT: none |
934b03fc | 1691 | DOC_START |
02922e76 | 1692 | Usage: deny_info err_page_name acl |
1693 | Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys | |
934b03fc | 1694 | |
02922e76 | 1695 | This can be used to return a ERR_ page for requests which |
934b03fc | 1696 | do not pass the 'http_access' rules. A single ACL will cause |
1697 | the http_access check to fail. If a 'deny_info' line exists | |
02922e76 | 1698 | for that ACL then Squid returns a corresponding error page. |
cf5cc17e | 1699 | |
02922e76 | 1700 | You may use ERR_ pages that come with Squid or create your own pages |
1701 | and put them into the configured errors/ directory. | |
934b03fc | 1702 | DOC_END |
1703 | ||
934b03fc | 1704 | NAME: memory_pools |
1705 | COMMENT: on|off | |
1706 | TYPE: onoff | |
f1dc9b30 | 1707 | DEFAULT: on |
3f6c0fb2 | 1708 | LOC: Config.onoff.mem_pools |
934b03fc | 1709 | DOC_START |
1710 | If set, Squid will keep pools of allocated (but unused) memory | |
1711 | available for future use. If memory is a premium on your | |
7021844c | 1712 | system and you believe your malloc library outperforms Squid |
d0d41f07 | 1713 | routines, disable this. |
934b03fc | 1714 | |
1715 | memory_pools on | |
1716 | DOC_END | |
1717 | ||
7021844c | 1718 | NAME: memory_pools_limit |
1719 | COMMENT: (bytes) | |
1720 | TYPE: b_size_t | |
1721 | DEFAULT: none | |
f12c295b | 1722 | LOC: Config.MemPools.limit |
7021844c | 1723 | DOC_START |
f12c295b | 1724 | Used only with memory_pools on: |
1725 | memory_pools_limit 50 MB | |
7021844c | 1726 | |
f12c295b | 1727 | If set to a non-zero value, Squid will keep at most the specified |
1728 | limit of allocated (but unused) memory in memory pools. All free() | |
1729 | requests that exceed this limit will be handled by your malloc | |
1730 | library. Squid does not pre-allocate any memory, just safe-keeps | |
1731 | objects that otherwise would be free()d. Thus, it is safe to set | |
7021844c | 1732 | memory_pools_limit to a reasonably high value even if your |
f12c295b | 1733 | configuration will use less memory. |
1734 | ||
1735 | If not set (default) or set to zero, Squid will keep all memory it | |
1736 | can. That is, there will be no limit on the total amount of memory | |
1737 | used for safe-keeping. | |
7021844c | 1738 | |
1739 | To disable memory allocation optimization, do not set | |
1740 | memory_pools_limit to 0. Set memory_pools to "off" instead. | |
1741 | ||
f12c295b | 1742 | An overhead for maintaining memory pools is not taken into account |
1743 | when the limit is checked. This overhead is close to four bytes per | |
1744 | object kept. However, pools may actually _save_ memory because of | |
1745 | reduced memory thrashing in your malloc library. | |
7021844c | 1746 | DOC_END |
1747 | ||
934b03fc | 1748 | NAME: forwarded_for |
1749 | COMMENT: on|off | |
1750 | TYPE: onoff | |
f1dc9b30 | 1751 | DEFAULT: on |
934b03fc | 1752 | LOC: opt_forwarded_for |
1753 | DOC_START | |
1754 | If set, Squid will include your system's IP address or name | |
1755 | in the HTTP requests it forwards. By default it looks like | |
1756 | this: | |
1757 | ||
1758 | X-Forwarded-For: 192.1.2.3 | |
1759 | ||
1760 | If you disable this, it will appear as | |
1761 | ||
1762 | X-Forwarded-For: unknown | |
1763 | ||
1764 | forwarded_for on | |
1765 | DOC_END | |
1766 | ||
1767 | NAME: log_icp_queries | |
1768 | COMMENT: on|off | |
1769 | TYPE: onoff | |
f1dc9b30 | 1770 | DEFAULT: on |
17a0a4ee | 1771 | LOC: Config.onoff.log_udp |
934b03fc | 1772 | DOC_START |
cf5cc17e | 1773 | If set, ICP queries are logged to access.log. You may wish |
1774 | do disable this if your ICP load is VERY high to speed things | |
1775 | up or to simplify log analysis. | |
934b03fc | 1776 | |
1777 | log_icp_queries on | |
1778 | DOC_END | |
1779 | ||
88738790 | 1780 | NAME: icp_hit_stale |
1781 | COMMENT: on|off | |
1782 | TYPE: onoff | |
1783 | DEFAULT: off | |
17a0a4ee | 1784 | LOC: Config.onoff.icp_hit_stale |
88738790 | 1785 | DOC_START |
1786 | If you want to return ICP_HIT for stale cache objects, set this | |
1787 | option to 'on'. If you have sibling relationships with caches | |
1788 | in other administrative domains, this should be 'off'. If you only | |
1789 | have sibling relationships with caches under your control, then | |
1790 | it is probably okay to set this to 'on'. | |
1791 | ||
1792 | icp_hit_stale off | |
1793 | DOC_END | |
1794 | ||
934b03fc | 1795 | |
1796 | NAME: minimum_direct_hops | |
1797 | TYPE: int | |
1798 | DEFAULT: 4 | |
1799 | LOC: Config.minDirectHops | |
1800 | DOC_START | |
1801 | If using the ICMP pinging stuff, do direct fetches for sites | |
1802 | which are no more than this many hops away. | |
1803 | ||
1804 | minimum_direct_hops 4 | |
1805 | DOC_END | |
1806 | ||
1807 | ||
1808 | NAME: cachemgr_passwd | |
1809 | TYPE: cachemgrpasswd | |
86101e40 | 1810 | DEFAULT: none |
f1dc9b30 | 1811 | LOC: Config.passwd_list |
934b03fc | 1812 | DOC_START |
1813 | Specify passwords for cachemgr operations. | |
1814 | ||
1815 | Usage: cachemgr_passwd password action action ... | |
1816 | ||
1817 | valid actions are: | |
1818 | shutdown * | |
1819 | info | |
cf5cc17e | 1820 | objects |
1821 | vm_objects | |
1822 | utilization | |
1823 | ipcache | |
1824 | fqdncache | |
1825 | dns | |
1826 | redirector | |
1827 | io | |
1828 | reply_headers | |
1829 | filedescriptors | |
1830 | netdb | |
934b03fc | 1831 | server_list |
1832 | client_list | |
cf5cc17e | 1833 | config * |
934b03fc | 1834 | |
1835 | * Indicates actions which will not be performed without a | |
1836 | valid password, others can be performed if not listed here. | |
1837 | ||
1838 | To disable an action, set the password to "disable". | |
1839 | To allow performing an action without a password, set the | |
1840 | password to "none". | |
1841 | ||
1842 | Use the keyword "all" to set the same password for all actions. | |
1843 | ||
1844 | cachemgr_passwd secret shutdown | |
1845 | cachemgr_passwd lesssssssecret info stats/objects | |
1846 | cachemgr_passwd disable all | |
1847 | DOC_END | |
1848 | ||
934b03fc | 1849 | NAME: store_avg_object_size |
86101e40 | 1850 | COMMENT: (kbytes) |
1851 | TYPE: kb_size_t | |
2bf99296 | 1852 | DEFAULT: 13 KB |
934b03fc | 1853 | LOC: Config.Store.avgObjectSize |
1854 | DOC_START | |
1855 | Average object size, used to estimate number of objects your | |
1856 | cache can hold. See doc/Release-Notes-1.1.txt. The default is | |
2bf99296 | 1857 | 13 KB. |
934b03fc | 1858 | |
2bf99296 | 1859 | store_avg_object_size 13 KB |
934b03fc | 1860 | DOC_END |
1861 | ||
1862 | NAME: store_objects_per_bucket | |
1863 | TYPE: int | |
1864 | DEFAULT: 50 | |
1865 | LOC: Config.Store.objectsPerBucket | |
1866 | DOC_START | |
1867 | Target number of objects per bucket in the store hash table. | |
1868 | Lowering this value increases the total number of buckets and | |
1869 | also the storage maintenance rate. The default is 20. | |
1870 | ||
1871 | store_objects_per_bucket 20 | |
1872 | DOC_END | |
1873 | ||
1874 | ||
1875 | NAME: http_anonymizer | |
1876 | TYPE: httpanonymizer | |
17a0a4ee | 1877 | LOC: Config.onoff.anonymizer |
f1dc9b30 | 1878 | DEFAULT: off |
934b03fc | 1879 | DOC_START |
1880 | If you want to filter out certain HTTP request headers for | |
1881 | privacy reasons, enable this option. There are three | |
1882 | appropriate settings: | |
1883 | 'off' All HTTP request headers are passed. | |
1884 | 'standard' Specific headers are removed | |
1885 | 'paranoid' Only specific headers are allowed. | |
1886 | To see which headers are allowed or denied, please see the | |
1887 | http-anon.c source file. | |
1888 | ||
1889 | http_anonymizer off | |
1890 | DOC_END | |
1891 | ||
1892 | ||
1893 | NAME: client_db | |
1894 | COMMENT: on|off | |
1895 | TYPE: onoff | |
f1dc9b30 | 1896 | DEFAULT: on |
17a0a4ee | 1897 | LOC: Config.onoff.client_db |
934b03fc | 1898 | DOC_START |
1899 | If you want to disable collecting per-client statistics, then | |
1900 | turn off client_db here. | |
1901 | ||
1902 | client_db on | |
1903 | DOC_END | |
1904 | ||
1905 | ||
1906 | NAME: netdb_low | |
1907 | TYPE: int | |
1908 | DEFAULT: 900 | |
1909 | LOC: Config.Netdb.low | |
1910 | DOC_NONE | |
1911 | ||
1912 | NAME: netdb_high | |
1913 | TYPE: int | |
1914 | DEFAULT: 1000 | |
1915 | LOC: Config.Netdb.high | |
1916 | DOC_START | |
1917 | The low and high water marks for the ICMP measurement | |
1918 | database. These are counts, not percents. The defaults are | |
1919 | 900 and 1000. When the high water mark is reached, database | |
1920 | entries will be deleted until the low mark is reached. | |
1921 | ||
1922 | netdb_low 900 | |
1923 | netdb_high 1000 | |
1924 | DOC_END | |
1925 | ||
1926 | ||
1927 | NAME: netdb_ping_period | |
f1dc9b30 | 1928 | TYPE: time_t |
934b03fc | 1929 | LOC: Config.Netdb.period |
9e975e4e | 1930 | DEFAULT: 5 minutes |
934b03fc | 1931 | DOC_START |
1932 | The minimum period for measuring a site. There will be at | |
1933 | least this much delay between successive pings to the same | |
1934 | network. The default is five minutes. | |
1935 | ||
1936 | netdb_ping_period 5 minutes | |
1937 | DOC_END | |
1938 | ||
1939 | ||
1940 | NAME: query_icmp | |
1941 | COMMENT: on|off | |
1942 | TYPE: onoff | |
f1dc9b30 | 1943 | DEFAULT: off |
17a0a4ee | 1944 | LOC: Config.onoff.query_icmp |
934b03fc | 1945 | DOC_START |
1946 | If you want to ask your peers to include ICMP data in their ICP | |
1947 | replies, enable this option. | |
1948 | ||
cf5cc17e | 1949 | If your peer has configured Squid (during compilation) with |
1950 | '--enable-icmp' then that peer will send ICMP pings to origin server | |
1951 | sites of the URLs it receives. If you enable this option then the | |
1952 | ICP replies from that peer will include the ICMP data (if available). | |
1953 | Then, when choosing a parent cache, Squid will choose the parent with | |
934b03fc | 1954 | the minimal RTT to the origin server. When this happens, the |
1955 | hierarchy field of the access.log will be | |
1956 | "CLOSEST_PARENT_MISS". This option is off by default. | |
1957 | ||
1958 | query_icmp off | |
1959 | DOC_END | |
1960 | ||
88500f96 | 1961 | NAME: test_reachability |
194dd3b8 | 1962 | COMMENT: on|off |
1963 | TYPE: onoff | |
1964 | DEFAULT: off | |
1965 | LOC: Config.onoff.test_reachability | |
1966 | DOC_START | |
1967 | When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH | |
1968 | instead of ICP_MISS if the target host is NOT in the ICMP | |
1969 | database, or has a zero RTT. | |
1970 | ||
1971 | test_reachability off | |
1972 | DOC_END | |
1973 | ||
78f1250a | 1974 | NAME: buffered_logs |
1975 | COMMENT: on|off | |
1976 | TYPE: onoff | |
1977 | DEFAULT: off | |
17a0a4ee | 1978 | LOC: Config.onoff.buffered_logs |
78f1250a | 1979 | DOC_START |
1980 | Some log files (cache.log, useragent.log) are written with | |
1981 | stdio functions, and as such they can be buffered or | |
cf5cc17e | 1982 | unbuffered. By default they will be unbuffered. Buffering them |
1983 | can speed up the writing slightly (though you are unlikely to | |
1984 | need to worry). | |
78f1250a | 1985 | buffered_logs off |
1986 | DOC_END | |
1987 | ||
465dc415 | 1988 | NAME: reload_into_ims |
1989 | COMMENT: on|off | |
1990 | TYPE: onoff | |
1991 | DEFAULT: off | |
1992 | LOC: Config.onoff.reload_into_ims | |
1993 | DOC_START | |
1994 | When you enable this option, client no-cache or ``reload'' | |
1995 | requests will be changed to If-Modified-Since requests. | |
1996 | Doing this VIOLATES the HTTP standard. Enabling this | |
1997 | feature could make you liable for problems which it | |
1998 | causes. | |
1999 | reload_into_ims off | |
2000 | DOC_END | |
2001 | ||
934b03fc | 2002 | NAME: always_direct |
2003 | TYPE: acl_access | |
2004 | LOC: Config.accessList.AlwaysDirect | |
f1dc9b30 | 2005 | DEFAULT: none |
934b03fc | 2006 | DOC_START |
2a78fa67 | 2007 | Usage: always_direct allow|deny [!]aclname ... |
2008 | ||
2009 | Here you can use ACL elements to specify requests which should | |
2010 | ALWAYS be forwarded directly to origin servers. This option | |
2011 | replaces some v1.1 options such as inside_firewall, | |
2012 | firewall_ip, local_domain, and local_ip. For example, to | |
2013 | always directly forward requests for local servers use | |
2014 | something like: | |
2015 | ||
2016 | acl local-servers dstdomain my.domain.net | |
2017 | always_direct allow local-servers | |
2018 | ||
2019 | To always forward FTP requests directly, use | |
2020 | ||
2021 | acl FTP proto FTP | |
2022 | always_direct allow FTP | |
2023 | ||
2024 | NOTE: There is a similar, but opposite option named | |
2025 | 'never_direct'. You need to be aware that "always_direct deny | |
2026 | foo" is NOT the same thing as "never_direct allow foo". You | |
2027 | may need to use a deny rule to exclude a more-specific case of | |
2028 | some other rule. Example: | |
2029 | ||
2030 | acl local-external dstdomain external.foo.net | |
2031 | acl local-servers dstdomain foo.net | |
2032 | always_direct deny local-external | |
2033 | always_direct allow local-servers | |
934b03fc | 2034 | DOC_END |
2035 | ||
2036 | NAME: never_direct | |
2037 | TYPE: acl_access | |
2038 | LOC: Config.accessList.NeverDirect | |
f1dc9b30 | 2039 | DEFAULT: none |
934b03fc | 2040 | DOC_START |
d0d41f07 | 2041 | Usage: never_direct allow|deny [!]aclname ... |
2a78fa67 | 2042 | |
2043 | never_direct is the opposite of always_direct. Please read | |
2044 | the description for always_direct if you have not already. | |
934b03fc | 2045 | |
2a78fa67 | 2046 | With 'never_direct' you can use ACL elements to specify |
2047 | requests which should NEVER be forwarded directly to origin | |
2048 | servers. This option replaces some v1.1 options such as | |
2049 | inside_firewall, firewall_ip, local_domain, and local_ip. For | |
2050 | example, to force the use of a proxy for all requests, except | |
2051 | those in your local domain, use something like: | |
2052 | ||
d0d41f07 | 2053 | acl local-servers dstdomain my.domain.net |
2a78fa67 | 2054 | acl all src 0.0.0.0/0.0.0.0 |
d0d41f07 | 2055 | never_direct deny local-servers |
2056 | never_direct allow all | |
2a78fa67 | 2057 | DOC_END |
934b03fc | 2058 | |
88738790 | 2059 | NAME: fake_user_agent |
2060 | TYPE: eol | |
2061 | LOC: Config.fake_ua | |
2062 | DEFAULT: none | |
2063 | DOC_START | |
d0d41f07 | 2064 | If you use the paranoid http_anonymizer setting, Squid will strip |
2065 | your User-agent string from the request. Some Web servers will | |
2066 | refuse your request without a User-agent string. Use this to | |
2067 | fake one up. For example: | |
88738790 | 2068 | |
d0d41f07 | 2069 | fake_user_agent Nutscrape/1.0 (CP/M; 8-bit) |
2070 | (credit to Paul Southworth pauls@etext.org for this one!) | |
88738790 | 2071 | |
2072 | fake_user_agent none | |
2073 | DOC_END | |
2074 | ||
365cb147 | 2075 | NAME: icon_directory |
f0b19334 | 2076 | TYPE: string |
365cb147 | 2077 | LOC: Config.icons.directory |
2078 | DEFAULT: @DEFAULT_ICON_DIR@ | |
2079 | DOC_START | |
cf5cc17e | 2080 | Where the icons are stored. These are normally kept in |
2081 | @DEFAULT_ICON_DIR@ | |
365cb147 | 2082 | DOC_END |
2083 | ||
cf5cc17e | 2084 | NAME: error_directory |
365cb147 | 2085 | TYPE: string |
cf5cc17e | 2086 | LOC: Config.errorDirectory |
2087 | DEFAULT: @DEFAULT_ERROR_DIR@ | |
365cb147 | 2088 | DOC_START |
cf5cc17e | 2089 | If you wish to create your own versions of the default |
2090 | (English) error files, either to customise them to suit your | |
2091 | language or company copy the template english files to anther | |
2092 | directory and point this tag at them. | |
365cb147 | 2093 | DOC_END |
88738790 | 2094 | |
22c653cd | 2095 | NAME: minimum_retry_timeout |
2096 | COMMENT: (seconds) | |
2097 | TYPE: time_t | |
2098 | LOC: Config.retry.timeout | |
2099 | DEFAULT: 5 seconds | |
2100 | DOC_START | |
2101 | This specifies the minimum connect timeout, for when the | |
2102 | connect timeout is reduced to compensate for the availability | |
2103 | of multiple IP addresses. | |
2104 | ||
cf5cc17e | 2105 | When a connection to a host is initiated, and that host has |
2106 | several IP addresses, the default connection timeout is reduced | |
2107 | by dividing it by the number of addresses. So, a site with 15 | |
2108 | addresses would then have a timeout of 8 seconds for each | |
2109 | address attempted. To avoid having the timeout reduced to the | |
2110 | point where even a working host would not have a chance to | |
2111 | respond, this setting is provided. The default, and the | |
2112 | minimum value, is five seconds, and the maximum value is sixty | |
2113 | seconds, or half of connect_timeout, whichever is greater and | |
2114 | less than connect_timeout. | |
22c653cd | 2115 | |
cf5cc17e | 2116 | minimum_retry_timeout 5 seconds |
22c653cd | 2117 | DOC_END |
2118 | ||
2119 | NAME: maximum_single_addr_tries | |
2120 | TYPE: int | |
2121 | LOC: Config.retry.maxtries | |
2122 | DEFAULT: 3 | |
2123 | DOC_START | |
2124 | This sets the maximum number of connection attempts for a | |
2125 | host that only has one address (for multiple-address hosts, | |
2126 | each address is tried once). | |
2127 | ||
2128 | The default value is three tries, the (not recommended) | |
2129 | maximum is 255 tries. A warning message will be generated | |
2130 | if it is set to a value greater than ten. | |
2131 | ||
2132 | maximum_single_addr_tries 3 | |
2133 | DOC_END | |
6d1c0d53 | 2134 | |
a97cfa48 | 2135 | NAME: snmp_port |
2136 | TYPE: ushort | |
2137 | LOC: Config.Port.snmp | |
2138 | DEFAULT: 3401 | |
1df370e3 | 2139 | IFDEF: SQUID_SNMP |
a97cfa48 | 2140 | DOC_START |
cf5cc17e | 2141 | Squid can now serve statistics and status information via SNMP. |
2142 | By default it listens to port 3401 on the machine. If you don't | |
2143 | wish to use SNMP, set this to '-1'. | |
2144 | ||
2145 | NOTE: SNMP support requires use the --enable-snmp configure | |
2146 | command line option. | |
794a4fea | 2147 | snmp_port 3401 |
a97cfa48 | 2148 | DOC_END |
2149 | ||
a97cfa48 | 2150 | NAME: snmp_do_queueing |
2151 | TYPE: onoff | |
2152 | LOC: Config.Snmp.do_queueing | |
2153 | DEFAULT: on | |
1df370e3 | 2154 | IFDEF: SQUID_SNMP |
a97cfa48 | 2155 | DOC_START |
cf5cc17e | 2156 | If disabled, snmp packets will not be queued but delivered |
2157 | immediately. This could be useful when you want to monitor a | |
2158 | cache in trouble, but this could also make Squid block, slowing | |
2159 | connections and possibly worsening the cache status. | |
794a4fea | 2160 | snmp_do_queueing on |
a97cfa48 | 2161 | DOC_END |
2162 | ||
2163 | NAME: forward_snmpd_port | |
2164 | TYPE: ushort | |
2165 | LOC: Config.Snmp.localPort | |
2166 | DEFAULT: 0 | |
1df370e3 | 2167 | IFDEF: SQUID_SNMP |
a97cfa48 | 2168 | DOC_START |
2169 | This configures whether we should be forwarding SNMP requests | |
cf5cc17e | 2170 | to another snmpd. The reason for putting this piece of |
2171 | functionality into Squid was to enable access to the system's | |
2172 | installed snmpd with minimal changes. This option is turned | |
2173 | off by default, check with your /etc/services for your system's | |
2174 | snmp port (usually 161). We do not use getservbyname() to | |
2175 | allow you to set Squid into port 161 and your system's snmpd to | |
2176 | another port by changing /etc/services. | |
2177 | ||
d0d41f07 | 2178 | WARNING: Because of Squid acting as a proxy snmpd for system |
2179 | you have to do security checks on THIS snmpd for all objects. | |
2180 | Check your snmp_config_file. | |
794a4fea | 2181 | forward_snmpd_port 0 |
a97cfa48 | 2182 | DOC_END |
2183 | ||
2184 | NAME: snmp_mib_path | |
2185 | TYPE: string | |
2186 | LOC: Config.Snmp.mibPath | |
2187 | DEFAULT: @DEFAULT_MIB_PATH@ | |
1df370e3 | 2188 | IFDEF: SQUID_SNMP |
a97cfa48 | 2189 | DOC_START |
cf5cc17e | 2190 | The location of Squid's mib. |
794a4fea | 2191 | snmp_mib_path @DEFAULT_MIB_PATH@ |
a97cfa48 | 2192 | DOC_END |
2193 | ||
a97cfa48 | 2194 | NAME: trap_sink |
4feb7b2e | 2195 | TYPE: string |
a97cfa48 | 2196 | LOC: Config.Snmp.trap_sink |
2197 | DEFAULT: 127.0.0.1 | |
1df370e3 | 2198 | IFDEF: SQUID_SNMP |
4feb7b2e | 2199 | DOC_START |
a97cfa48 | 2200 | Hostname or ip address of trap sink for snmp |
794a4fea | 2201 | trap_sink 127.0.0.1 |
4feb7b2e | 2202 | DOC_END |
2203 | ||
a97cfa48 | 2204 | NAME: snmp_trap_community |
2205 | TYPE: string | |
2206 | LOC: Config.Snmp.trap_community | |
2207 | DEFAULT: public | |
1df370e3 | 2208 | IFDEF: SQUID_SNMP |
a97cfa48 | 2209 | DOC_START |
cf5cc17e | 2210 | Community name for traps. |
794a4fea | 2211 | snmp_trap_community public |
a97cfa48 | 2212 | DOC_END |
2213 | ||
2214 | NAME: snmp_enable_authen_traps | |
2215 | TYPE: onoff | |
2216 | LOC: Config.Snmp.conf_authtraps | |
2217 | DEFAULT: off | |
1df370e3 | 2218 | IFDEF: SQUID_SNMP |
a97cfa48 | 2219 | DOC_START |
cf5cc17e | 2220 | Enable SNMP authenticated traps. Set to 'off' or 'on'. |
794a4fea | 2221 | snmp_enable_authen_traps off |
a97cfa48 | 2222 | DOC_END |
2223 | ||
2224 | NAME: snmp_agent_conf | |
5e14bf6d | 2225 | TYPE: stringlist |
a97cfa48 | 2226 | LOC: Config.Snmp.snmpconf |
2227 | DEFAULT: none | |
1df370e3 | 2228 | IFDEF: SQUID_SNMP |
a97cfa48 | 2229 | DOC_START |
2230 | Define snmp views, users and communities | |
2231 | Example: | |
2232 | snmp_agent_conf view all .1.3.6 included | |
2233 | snmp_agent_conf view squid .1.3.6 included | |
2234 | snmp_agent_conf user squid - all all public | |
2235 | snmp_agent_conf user all all all all squid | |
2236 | snmp_agent_conf community public squid squid | |
2237 | snmp_agent_conf community readwrite all all | |
2238 | DOC_END | |
4feb7b2e | 2239 | |
bdf18524 | 2240 | NAME: snmp_acl |
2241 | TYPE: snmp_access | |
2242 | LOC: Config.Snmp.communities | |
2243 | DEFAULT: none | |
2244 | IFDEF: SQUID_SNMP | |
2245 | DOC_START | |
2246 | Define access controls per community: | |
2247 | snmp_access communityname allow|deny [!]aclname ... | |
2248 | Example: | |
2249 | snmp_acl public allow adminsubnet | |
2250 | snmp_acl public deny all | |
2251 | DOC_END | |
2252 | ||
15dcc168 | 2253 | NAME: snmp_incoming_address |
2254 | TYPE: address | |
2255 | LOC: Config.Addrs.snmp_outgoing | |
2256 | DEFAULT: 0.0.0.0 | |
2257 | IFDEF: SQUID_SNMP | |
2258 | DOC_NONE | |
2259 | NAME: snmp_outgoing_address | |
2260 | TYPE: address | |
2261 | LOC: Config.Addrs.snmp_outgoing | |
2262 | DEFAULT: 255.255.255.255 | |
2263 | IFDEF: SQUID_SNMP | |
2264 | DOC_START | |
2265 | Just like 'udp_incoming_address' above, but for the SNMP port. | |
2266 | ||
2267 | snmp_incoming_address is used for the SNMP socket receiving | |
2268 | messages from SNMP agents. | |
2269 | snmp_outgoing_address is used for SNMP packets returned to SNMP | |
2270 | agents. | |
2271 | ||
2272 | The default behaviour is to not bind to any specific address. | |
2273 | ||
2274 | NOTE, snmp_incoming_address and snmp_outgoing_address can not have | |
2275 | the same value since they both use port 3130. | |
2276 | ||
2277 | snmp_incoming_address 0.0.0.0 | |
2278 | snmp_outgoing_address 0.0.0.0 | |
2279 | DOC_END | |
bdf18524 | 2280 | |
53ad48e6 | 2281 | NAME: as_whois_server |
2282 | TYPE: string | |
2283 | LOC: Config.as_whois_server | |
2284 | DEFAULT: whois.ra.net | |
2285 | DEFAULT_IF_NONE: whois.ra.net | |
2286 | DOC_START | |
cf5cc17e | 2287 | WHOIS server to query for AS numbers. NOTE: AS numbers are |
2288 | queried only when Squid starts up, not for every request. | |
53ad48e6 | 2289 | DOC_END |
95e36d02 | 2290 | |
2291 | COMMENT_START | |
2292 | DELAY POOL PARAMETERS (all require DELAY_POOLS compilation option) | |
2293 | ----------------------------------------------------------------------------- | |
2294 | ||
2295 | A general note on delay pools - the first matched delay pool is used, | |
2296 | that is, if a request falls into class1 then it isn't checked for class2 | |
2297 | or class3 (and similarly a class2 request isn't checked for class3). | |
2298 | COMMENT_END | |
2299 | ||
2300 | NAME: delay_class1_access | |
2301 | TYPE: acl_access | |
2302 | DEFAULT: none | |
2303 | IFDEF: DELAY_POOLS | |
2304 | LOC: Config.Delay.class1.access | |
2305 | DOC_START | |
2306 | This is used to select what client requests are processed via | |
2307 | the first ("class 1") delay pool. In this delay pool only the | |
2308 | aggregate traffic allowance is configurable. | |
2309 | DOC_END | |
2310 | ||
2311 | NAME: delay_class2_access | |
2312 | TYPE: acl_access | |
2313 | DEFAULT: none | |
2314 | IFDEF: DELAY_POOLS | |
2315 | LOC: Config.Delay.class2.access | |
2316 | DOC_START | |
2317 | This is used to select what client requests are processed via | |
2318 | the first ("class 2") delay pool. In this delay pool both the | |
2319 | aggregate and per-host traffic allowance are configurable. | |
2320 | There are 254 individual delay pools based on the last 8 bits | |
2321 | of the client IP address (addresses ending in 0 and 255 are not | |
2322 | permitted). | |
2323 | DOC_END | |
2324 | ||
2325 | NAME: delay_class3_access | |
2326 | TYPE: acl_access | |
2327 | DEFAULT: none | |
2328 | IFDEF: DELAY_POOLS | |
2329 | LOC: Config.Delay.class3.access | |
2330 | DOC_START | |
2331 | This is used to select what client requests are processed via | |
2332 | the first ("class 3") delay pool. In this delay pool, the | |
2333 | aggregate, network and per-host traffic allowance are | |
2334 | configurable. There are 255 network delay pools based on the | |
2335 | 17th to 24th bit of the client IP address (network 255 is not | |
2336 | permitted), and individual delay pools based on the last 16 | |
2337 | bits of the client IP address (network 255 and hosts ending in | |
2338 | 0 and 255 are not permitted). | |
2339 | DOC_END | |
2340 | ||
2341 | NAME: delay_class1_aggregate_restore | |
2342 | TYPE: int | |
2343 | DEFAULT: -1 | |
2344 | IFDEF: DELAY_POOLS | |
2345 | COMMENT: (bps) | |
2346 | LOC: Config.Delay.class1.aggregate.restore_bps | |
2347 | DOC_START | |
2348 | The number of bytes per second added to the class 1 aggregate | |
2349 | delay pool traffic allowance (-1 to disable the delay pool). | |
2350 | DOC_END | |
2351 | ||
2352 | NAME: delay_class1_aggregate_max | |
2353 | TYPE: int | |
2354 | DEFAULT: -1 | |
2355 | IFDEF: DELAY_POOLS | |
2356 | COMMENT: (bytes) | |
2357 | LOC: Config.Delay.class1.aggregate.max_bytes | |
2358 | DOC_START | |
2359 | The maximum number of bytes which can be in the class 1 | |
2360 | aggregate delay pool traffic allowance. | |
2361 | DOC_END | |
2362 | ||
2363 | NAME: delay_class2_aggregate_restore | |
2364 | TYPE: int | |
2365 | DEFAULT: -1 | |
2366 | IFDEF: DELAY_POOLS | |
2367 | COMMENT: (bps) | |
2368 | LOC: Config.Delay.class2.aggregate.restore_bps | |
2369 | DOC_START | |
2370 | The number of bytes per second added to the class 2 aggregate | |
2371 | delay pool traffic allowance (-1 to disable the delay pool). | |
2372 | DOC_END | |
2373 | ||
2374 | NAME: delay_class2_aggregate_max | |
2375 | TYPE: int | |
2376 | DEFAULT: -1 | |
2377 | IFDEF: DELAY_POOLS | |
2378 | COMMENT: (bytes) | |
2379 | LOC: Config.Delay.class2.aggregate.max_bytes | |
2380 | DOC_START | |
2381 | The maximum number of bytes which can be in the class 2 | |
2382 | aggregate delay pool traffic allowance. | |
2383 | DOC_END | |
2384 | ||
2385 | NAME: delay_class2_individual_restore | |
2386 | TYPE: int | |
2387 | DEFAULT: -1 | |
2388 | IFDEF: DELAY_POOLS | |
2389 | COMMENT: (bps) | |
2390 | LOC: Config.Delay.class2.individual.restore_bps | |
2391 | DOC_START | |
2392 | The number of bytes per second added to the class 2 individual | |
2393 | host delay pool traffic allowances (-1 to disable these delay | |
2394 | pools). | |
2395 | DOC_END | |
2396 | ||
2397 | NAME: delay_class2_individual_max | |
2398 | TYPE: int | |
2399 | DEFAULT: -1 | |
2400 | IFDEF: DELAY_POOLS | |
2401 | COMMENT: (bytes) | |
2402 | LOC: Config.Delay.class2.individual.max_bytes | |
2403 | DOC_START | |
2404 | The maximum number of bytes which can be in the class 2 | |
2405 | individual host delay pool traffic allowances. | |
2406 | DOC_END | |
2407 | ||
2408 | NAME: delay_class3_aggregate_restore | |
2409 | TYPE: int | |
2410 | DEFAULT: -1 | |
2411 | IFDEF: DELAY_POOLS | |
2412 | COMMENT: (bps) | |
2413 | LOC: Config.Delay.class3.aggregate.restore_bps | |
2414 | DOC_START | |
2415 | The number of bytes per second added to the class 3 aggregate | |
2416 | delay pool traffic allowance (-1 to disable the delay pool). | |
2417 | DOC_END | |
2418 | ||
2419 | NAME: delay_class3_aggregate_max | |
2420 | TYPE: int | |
2421 | DEFAULT: -1 | |
2422 | IFDEF: DELAY_POOLS | |
2423 | COMMENT: (bytes) | |
2424 | LOC: Config.Delay.class3.aggregate.max_bytes | |
2425 | DOC_START | |
2426 | The maximum number of bytes which can be in the class 3 | |
2427 | aggregate delay pool traffic allowance. | |
2428 | DOC_END | |
2429 | ||
2430 | NAME: delay_class3_network_restore | |
2431 | TYPE: int | |
2432 | DEFAULT: -1 | |
2433 | IFDEF: DELAY_POOLS | |
2434 | COMMENT: (bps) | |
2435 | LOC: Config.Delay.class3.network.restore_bps | |
2436 | DOC_START | |
2437 | The number of bytes per second added to the class 3 8-bit | |
2438 | network delay pool traffic allowances (-1 to disable these | |
2439 | delay pools). | |
2440 | DOC_END | |
2441 | ||
2442 | NAME: delay_class3_network_max | |
2443 | TYPE: int | |
2444 | DEFAULT: -1 | |
2445 | IFDEF: DELAY_POOLS | |
2446 | COMMENT: (bytes) | |
2447 | LOC: Config.Delay.class3.network.max_bytes | |
2448 | DOC_START | |
2449 | The maximum number of bytes which can be in the class 3 8-bit | |
2450 | network delay pool traffic allowances. | |
2451 | DOC_END | |
2452 | ||
2453 | NAME: delay_class3_individual_restore | |
2454 | TYPE: int | |
2455 | DEFAULT: -1 | |
2456 | IFDEF: DELAY_POOLS | |
2457 | COMMENT: (bps) | |
2458 | LOC: Config.Delay.class3.individual.restore_bps | |
2459 | DOC_START | |
2460 | The number of bytes per second added to the class 3 individual | |
2461 | host delay pool traffic allowances (-1 to disable these delay | |
2462 | pools). | |
2463 | DOC_END | |
2464 | ||
2465 | NAME: delay_class3_individual_max | |
2466 | TYPE: int | |
2467 | DEFAULT: -1 | |
2468 | IFDEF: DELAY_POOLS | |
2469 | COMMENT: (bytes) | |
2470 | LOC: Config.Delay.class3.individual.max_bytes | |
2471 | DOC_START | |
2472 | The maximum number of bytes which can be in the class 3 | |
2473 | individual host delay pool traffic allowances. | |
2474 | DOC_END | |
6d1c0d53 | 2475 | EOF |