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