]> git.ipfire.org Git - thirdparty/squid.git/blob - src/cf.data.pre
Initial server_ssl_cert_fingerprint ACL implementation.
[thirdparty/squid.git] / src / cf.data.pre
1 #
2 # SQUID Web Proxy Cache http://www.squid-cache.org/
3 # ----------------------------------------------------------
4 #
5 # Squid is the result of efforts by numerous individuals from
6 # the Internet community; see the CONTRIBUTORS file for full
7 # details. Many organizations have provided support for Squid's
8 # development; see the SPONSORS file for full details. Squid is
9 # Copyrighted (C) 2000 by the Regents of the University of
10 # California; see the COPYRIGHT file for full details. Squid
11 # incorporates software developed and/or copyrighted by other
12 # sources; see the CREDITS file for full details.
13 #
14 # This program is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of the License, or
17 # (at your option) any later version.
18 #
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with this program; if not, write to the Free Software
26 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
27 #
28
29 COMMENT_START
30 WELCOME TO @SQUID@
31 ----------------------------
32
33 This is the documentation for the Squid configuration file.
34 This documentation can also be found online at:
35 http://www.squid-cache.org/Doc/config/
36
37 You may wish to look at the Squid home page and wiki for the
38 FAQ and other documentation:
39 http://www.squid-cache.org/
40 http://wiki.squid-cache.org/SquidFaq
41 http://wiki.squid-cache.org/ConfigExamples
42
43 This documentation shows what the defaults for various directives
44 happen to be. If you don't need to change the default, you should
45 leave the line out of your squid.conf in most cases.
46
47 In some cases "none" refers to no default setting at all,
48 while in other cases it refers to the value of the option
49 - the comments for that keyword indicate if this is the case.
50
51 COMMENT_END
52
53 COMMENT_START
54 Configuration options can be included using the "include" directive.
55 Include takes a list of files to include. Quoting and wildcards are
56 supported.
57
58 For example,
59
60 include /path/to/included/file/squid.acl.config
61
62 Includes can be nested up to a hard-coded depth of 16 levels.
63 This arbitrary restriction is to prevent recursive include references
64 from causing Squid entering an infinite loop whilst trying to load
65 configuration files.
66
67
68 Conditional configuration
69
70 If-statements can be used to make configuration directives
71 depend on conditions:
72
73 if <CONDITION>
74 ... regular configuration directives ...
75 [else
76 ... regular configuration directives ...]
77 endif
78
79 The else part is optional. The keywords "if", "else", and "endif"
80 must be typed on their own lines, as if they were regular
81 configuration directives.
82
83 NOTE: An else-if condition is not supported.
84
85 These individual conditions types are supported:
86
87 true
88 Always evaluates to true.
89 false
90 Always evaluates to false.
91 <integer> = <integer>
92 Equality comparison of two integer numbers.
93
94
95 SMP-Related Macros
96
97 The following SMP-related preprocessor macros can be used.
98
99 ${process_name} expands to the current Squid process "name"
100 (e.g., squid1, squid2, or cache1).
101
102 ${process_number} expands to the current Squid process
103 identifier, which is an integer number (e.g., 1, 2, 3) unique
104 across all Squid processes.
105 COMMENT_END
106
107 # Options Removed in 3.2
108 NAME: ignore_expect_100
109 TYPE: obsolete
110 DOC_START
111 Remove this line. The HTTP/1.1 feature is now fully supported by default.
112 DOC_END
113
114 NAME: dns_v4_fallback
115 TYPE: obsolete
116 DOC_START
117 Remove this line.
118 DOC_END
119
120 NAME: ftp_list_width
121 TYPE: obsolete
122 DOC_START
123 Remove this line. Configure FTP page display using the CSS controls in errorpages.css instead.
124 DOC_END
125
126 NAME: maximum_single_addr_tries
127 TYPE: obsolete
128 DOC_START
129 Replaced by connect_retries. The behaviour has changed, please read the documentation before altering.
130 DOC_END
131
132 NAME: url_rewrite_concurrency
133 TYPE: obsolete
134 DOC_START
135 Remove this line. Set the 'concurrency=' option of url_rewrite_children instead.
136 DOC_END
137
138 # Options Removed in 3.1
139 NAME: dns_testnames
140 TYPE: obsolete
141 DOC_START
142 Remove this line. DNS is no longer tested on startup.
143 DOC_END
144
145 NAME: extension_methods
146 TYPE: obsolete
147 DOC_START
148 Remove this line. All valid methods for HTTP are accepted by default.
149 DOC_END
150
151 # 2.7 Options Removed/Replaced in 3.2
152 NAME: zero_buffers
153 TYPE: obsolete
154 DOC_NONE
155
156 # 2.7 Options Removed/Replaced in 3.1
157 NAME: incoming_rate
158 TYPE: obsolete
159 DOC_NONE
160
161 NAME: server_http11
162 TYPE: obsolete
163 DOC_START
164 Remove this line. HTTP/1.1 is supported by default.
165 DOC_END
166
167 NAME: upgrade_http0.9
168 TYPE: obsolete
169 DOC_START
170 Remove this line. ICY/1.0 streaming protocol is supported by default.
171 DOC_END
172
173 NAME: zph_local zph_mode zph_option zph_parent zph_sibling
174 TYPE: obsolete
175 DOC_START
176 Alter these entries. Use the qos_flows directive instead.
177 DOC_END
178
179 # Options Removed in 3.0
180 NAME: header_access
181 TYPE: obsolete
182 DOC_START
183 Since squid-3.0 replace with request_header_access or reply_header_access
184 depending on whether you wish to match client requests or server replies.
185 DOC_END
186
187 NAME: httpd_accel_no_pmtu_disc
188 TYPE: obsolete
189 DOC_START
190 Since squid-3.0 use the 'disable-pmtu-discovery' flag on http_port instead.
191 DOC_END
192
193 COMMENT_START
194 OPTIONS FOR AUTHENTICATION
195 -----------------------------------------------------------------------------
196 COMMENT_END
197
198 NAME: auth_param
199 TYPE: authparam
200 IFDEF: USE_AUTH
201 LOC: Auth::TheConfig
202 DEFAULT: none
203 DOC_START
204 This is used to define parameters for the various authentication
205 schemes supported by Squid.
206
207 format: auth_param scheme parameter [setting]
208
209 The order in which authentication schemes are presented to the client is
210 dependent on the order the scheme first appears in config file. IE
211 has a bug (it's not RFC 2617 compliant) in that it will use the basic
212 scheme if basic is the first entry presented, even if more secure
213 schemes are presented. For now use the order in the recommended
214 settings section below. If other browsers have difficulties (don't
215 recognize the schemes offered even if you are using basic) either
216 put basic first, or disable the other schemes (by commenting out their
217 program entry).
218
219 Once an authentication scheme is fully configured, it can only be
220 shutdown by shutting squid down and restarting. Changes can be made on
221 the fly and activated with a reconfigure. I.E. You can change to a
222 different helper, but not unconfigure the helper completely.
223
224 Please note that while this directive defines how Squid processes
225 authentication it does not automatically activate authentication.
226 To use authentication you must in addition make use of ACLs based
227 on login name in http_access (proxy_auth, proxy_auth_regex or
228 external with %LOGIN used in the format tag). The browser will be
229 challenged for authentication on the first such acl encountered
230 in http_access processing and will also be re-challenged for new
231 login credentials if the request is being denied by a proxy_auth
232 type acl.
233
234 WARNING: authentication can't be used in a transparently intercepting
235 proxy as the client then thinks it is talking to an origin server and
236 not the proxy. This is a limitation of bending the TCP/IP protocol to
237 transparently intercepting port 80, not a limitation in Squid.
238 Ports flagged 'transparent', 'intercept', or 'tproxy' have
239 authentication disabled.
240
241 === Parameters for the basic scheme follow. ===
242
243 "program" cmdline
244 Specify the command for the external authenticator. Such a program
245 reads a line containing "username password" and replies "OK" or
246 "ERR" in an endless loop. "ERR" responses may optionally be followed
247 by a error description available as %m in the returned error page.
248 If you use an authenticator, make sure you have 1 acl of type
249 proxy_auth.
250
251 By default, the basic authentication scheme is not used unless a
252 program is specified.
253
254 If you want to use the traditional NCSA proxy authentication, set
255 this line to something like
256
257 auth_param basic program @DEFAULT_PREFIX@/libexec/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
258
259 "utf8" on|off
260 HTTP uses iso-latin-1 as characterset, while some authentication
261 backends such as LDAP expects UTF-8. If this is set to on Squid will
262 translate the HTTP iso-latin-1 charset to UTF-8 before sending the
263 username & password to the helper.
264
265 "children" numberofchildren [startup=N] [idle=N] [concurrency=N]
266 The maximum number of authenticator processes to spawn. If you start too few
267 Squid will have to wait for them to process a backlog of credential
268 verifications, slowing it down. When password verifications are
269 done via a (slow) network you are likely to need lots of
270 authenticator processes.
271
272 The startup= and idle= options permit some skew in the exact amount
273 run. A minimum of startup=N will begin during startup and reconfigure.
274 Squid will start more in groups of up to idle=N in an attempt to meet
275 traffic needs and to keep idle=N free above those traffic needs up to
276 the maximum.
277
278 The concurrency= option sets the number of concurrent requests the
279 helper can process. The default of 0 is used for helpers who only
280 supports one request at a time. Setting this to a number greater than
281 0 changes the protocol used to include a channel number first on the
282 request/response line, allowing multiple requests to be sent to the
283 same helper in parallell without wating for the response.
284 Must not be set unless it's known the helper supports this.
285
286 auth_param basic children 20 startup=0 idle=1
287
288 "realm" realmstring
289 Specifies the realm name which is to be reported to the
290 client for the basic proxy authentication scheme (part of
291 the text the user will see when prompted their username and
292 password). There is no default.
293 auth_param basic realm Squid proxy-caching web server
294
295 "credentialsttl" timetolive
296 Specifies how long squid assumes an externally validated
297 username:password pair is valid for - in other words how
298 often the helper program is called for that user. Set this
299 low to force revalidation with short lived passwords. Note
300 setting this high does not impact your susceptibility
301 to replay attacks unless you are using an one-time password
302 system (such as SecureID). If you are using such a system,
303 you will be vulnerable to replay attacks unless you also
304 use the max_user_ip ACL in an http_access rule.
305
306 "casesensitive" on|off
307 Specifies if usernames are case sensitive. Most user databases are
308 case insensitive allowing the same username to be spelled using both
309 lower and upper case letters, but some are case sensitive. This
310 makes a big difference for user_max_ip ACL processing and similar.
311 auth_param basic casesensitive off
312
313 === Parameters for the digest scheme follow ===
314
315 "program" cmdline
316 Specify the command for the external authenticator. Such
317 a program reads a line containing "username":"realm" and
318 replies with the appropriate H(A1) value hex encoded or
319 ERR if the user (or his H(A1) hash) does not exists.
320 See rfc 2616 for the definition of H(A1).
321 "ERR" responses may optionally be followed by a error description
322 available as %m in the returned error page.
323
324 By default, the digest authentication scheme is not used unless a
325 program is specified.
326
327 If you want to use a digest authenticator, set this line to
328 something like
329
330 auth_param digest program @DEFAULT_PREFIX@/bin/digest_pw_auth @DEFAULT_PREFIX@/etc/digpass
331
332 "utf8" on|off
333 HTTP uses iso-latin-1 as characterset, while some authentication
334 backends such as LDAP expects UTF-8. If this is set to on Squid will
335 translate the HTTP iso-latin-1 charset to UTF-8 before sending the
336 username & password to the helper.
337
338 "children" numberofchildren [startup=N] [idle=N] [concurrency=N]
339 The maximum number of authenticator processes to spawn (default 5).
340 If you start too few Squid will have to wait for them to
341 process a backlog of H(A1) calculations, slowing it down.
342 When the H(A1) calculations are done via a (slow) network
343 you are likely to need lots of authenticator processes.
344
345 The startup= and idle= options permit some skew in the exact amount
346 run. A minimum of startup=N will begin during startup and reconfigure.
347 Squid will start more in groups of up to idle=N in an attempt to meet
348 traffic needs and to keep idle=N free above those traffic needs up to
349 the maximum.
350
351 The concurrency= option sets the number of concurrent requests the
352 helper can process. The default of 0 is used for helpers who only
353 supports one request at a time. Setting this to a number greater than
354 0 changes the protocol used to include a channel number first on the
355 request/response line, allowing multiple requests to be sent to the
356 same helper in parallell without wating for the response.
357 Must not be set unless it's known the helper supports this.
358
359 auth_param digest children 20 startup=0 idle=1
360
361 "realm" realmstring
362 Specifies the realm name which is to be reported to the
363 client for the digest proxy authentication scheme (part of
364 the text the user will see when prompted their username and
365 password). There is no default.
366 auth_param digest realm Squid proxy-caching web server
367
368 "nonce_garbage_interval" timeinterval
369 Specifies the interval that nonces that have been issued
370 to client_agent's are checked for validity.
371
372 "nonce_max_duration" timeinterval
373 Specifies the maximum length of time a given nonce will be
374 valid for.
375
376 "nonce_max_count" number
377 Specifies the maximum number of times a given nonce can be
378 used.
379
380 "nonce_strictness" on|off
381 Determines if squid requires strict increment-by-1 behavior
382 for nonce counts, or just incrementing (off - for use when
383 useragents generate nonce counts that occasionally miss 1
384 (ie, 1,2,4,6)). Default off.
385
386 "check_nonce_count" on|off
387 This directive if set to off can disable the nonce count check
388 completely to work around buggy digest qop implementations in
389 certain mainstream browser versions. Default on to check the
390 nonce count to protect from authentication replay attacks.
391
392 "post_workaround" on|off
393 This is a workaround to certain buggy browsers who sends
394 an incorrect request digest in POST requests when reusing
395 the same nonce as acquired earlier on a GET request.
396
397 === NTLM scheme options follow ===
398
399 "program" cmdline
400 Specify the command for the external NTLM authenticator.
401 Such a program reads exchanged NTLMSSP packets with
402 the browser via Squid until authentication is completed.
403 If you use an NTLM authenticator, make sure you have 1 acl
404 of type proxy_auth. By default, the NTLM authenticator_program
405 is not used.
406
407 auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth
408
409 "children" numberofchildren [startup=N] [idle=N]
410 The maximum number of authenticator processes to spawn (default 5).
411 If you start too few Squid will have to wait for them to
412 process a backlog of credential verifications, slowing it
413 down. When credential verifications are done via a (slow)
414 network you are likely to need lots of authenticator
415 processes.
416
417 The startup= and idle= options permit some skew in the exact amount
418 run. A minimum of startup=N will begin during startup and reconfigure.
419 Squid will start more in groups of up to idle=N in an attempt to meet
420 traffic needs and to keep idle=N free above those traffic needs up to
421 the maximum.
422
423 auth_param ntlm children 20 startup=0 idle=1
424
425 "keep_alive" on|off
426 If you experience problems with PUT/POST requests when using the
427 Negotiate authentication scheme then you can try setting this to
428 off. This will cause Squid to forcibly close the connection on
429 the initial requests where the browser asks which schemes are
430 supported by the proxy.
431
432 auth_param ntlm keep_alive on
433
434 === Options for configuring the NEGOTIATE auth-scheme follow ===
435
436 "program" cmdline
437 Specify the command for the external Negotiate authenticator.
438 This protocol is used in Microsoft Active-Directory enabled setups with
439 the Microsoft Internet Explorer or Mozilla Firefox browsers.
440 Its main purpose is to exchange credentials with the Squid proxy
441 using the Kerberos mechanisms.
442 If you use a Negotiate authenticator, make sure you have at least
443 one acl of type proxy_auth active. By default, the negotiate
444 authenticator_program is not used.
445 The only supported program for this role is the ntlm_auth
446 program distributed as part of Samba, version 4 or later.
447
448 auth_param negotiate program @DEFAULT_PREFIX@/bin/ntlm_auth --helper-protocol=gss-spnego
449
450 "children" numberofchildren [startup=N] [idle=N]
451 The maximum number of authenticator processes to spawn (default 5).
452 If you start too few Squid will have to wait for them to
453 process a backlog of credential verifications, slowing it
454 down. When crendential verifications are done via a (slow)
455 network you are likely to need lots of authenticator
456 processes.
457
458 The startup= and idle= options permit some skew in the exact amount
459 run. A minimum of startup=N will begin during startup and reconfigure.
460 Squid will start more in groups of up to idle=N in an attempt to meet
461 traffic needs and to keep idle=N free above those traffic needs up to
462 the maximum.
463
464 auth_param negotiate children 20 startup=0 idle=1
465
466 "keep_alive" on|off
467 If you experience problems with PUT/POST requests when using the
468 Negotiate authentication scheme then you can try setting this to
469 off. This will cause Squid to forcibly close the connection on
470 the initial requests where the browser asks which schemes are
471 supported by the proxy.
472
473 auth_param negotiate keep_alive on
474
475
476 Examples:
477
478 #Recommended minimum configuration per scheme:
479 #auth_param negotiate program <uncomment and complete this line to activate>
480 #auth_param negotiate children 20 startup=0 idle=1
481 #auth_param negotiate keep_alive on
482 #
483 #auth_param ntlm program <uncomment and complete this line to activate>
484 #auth_param ntlm children 20 startup=0 idle=1
485 #auth_param ntlm keep_alive on
486 #
487 #auth_param digest program <uncomment and complete this line>
488 #auth_param digest children 20 startup=0 idle=1
489 #auth_param digest realm Squid proxy-caching web server
490 #auth_param digest nonce_garbage_interval 5 minutes
491 #auth_param digest nonce_max_duration 30 minutes
492 #auth_param digest nonce_max_count 50
493 #
494 #auth_param basic program <uncomment and complete this line>
495 #auth_param basic children 5 startup=5 idle=1
496 #auth_param basic realm Squid proxy-caching web server
497 #auth_param basic credentialsttl 2 hours
498 DOC_END
499
500 NAME: authenticate_cache_garbage_interval
501 TYPE: time_t
502 DEFAULT: 1 hour
503 LOC: Config.authenticateGCInterval
504 DOC_START
505 The time period between garbage collection across the username cache.
506 This is a tradeoff between memory utilization (long intervals - say
507 2 days) and CPU (short intervals - say 1 minute). Only change if you
508 have good reason to.
509 DOC_END
510
511 NAME: authenticate_ttl
512 TYPE: time_t
513 DEFAULT: 1 hour
514 LOC: Config.authenticateTTL
515 DOC_START
516 The time a user & their credentials stay in the logged in
517 user cache since their last request. When the garbage
518 interval passes, all user credentials that have passed their
519 TTL are removed from memory.
520 DOC_END
521
522 NAME: authenticate_ip_ttl
523 TYPE: time_t
524 LOC: Config.authenticateIpTTL
525 DEFAULT: 0 seconds
526 DOC_START
527 If you use proxy authentication and the 'max_user_ip' ACL,
528 this directive controls how long Squid remembers the IP
529 addresses associated with each user. Use a small value
530 (e.g., 60 seconds) if your users might change addresses
531 quickly, as is the case with dialups. You might be safe
532 using a larger value (e.g., 2 hours) in a corporate LAN
533 environment with relatively static address assignments.
534 DOC_END
535
536 COMMENT_START
537 ACCESS CONTROLS
538 -----------------------------------------------------------------------------
539 COMMENT_END
540
541 NAME: external_acl_type
542 TYPE: externalAclHelper
543 LOC: Config.externalAclHelperList
544 DEFAULT: none
545 DOC_START
546 This option defines external acl classes using a helper program
547 to look up the status
548
549 external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..]
550
551 Options:
552
553 ttl=n TTL in seconds for cached results (defaults to 3600
554 for 1 hour)
555 negative_ttl=n
556 TTL for cached negative lookups (default same
557 as ttl)
558 children-max=n
559 Maximum number of acl helper processes spawned to service
560 external acl lookups of this type. (default 20)
561 children-startup=n
562 Minimum number of acl helper processes to spawn during
563 startup and reconfigure to service external acl lookups
564 of this type. (default 0)
565 children-idle=n
566 Number of acl helper processes to keep ahead of traffic
567 loads. Squid will spawn this many at once whenever load
568 rises above the capabilities of existing processes.
569 Up to the value of children-max. (default 1)
570 concurrency=n concurrency level per process. Only used with helpers
571 capable of processing more than one query at a time.
572 cache=n limit the result cache size, default is unbounded.
573 grace=n Percentage remaining of TTL where a refresh of a
574 cached entry should be initiated without needing to
575 wait for a new reply. (default is for no grace period)
576 protocol=2.5 Compatibility mode for Squid-2.5 external acl helpers
577 ipv4 / ipv6 IP protocol used to communicate with this helper.
578 The default is to auto-detect IPv6 and use it when available.
579
580 FORMAT specifications
581
582 %LOGIN Authenticated user login name
583 %EXT_USER Username from previous external acl
584 %EXT_LOG Log details from previous external acl
585 %EXT_TAG Tag from previous external acl
586 %IDENT Ident user name
587 %SRC Client IP
588 %SRCPORT Client source port
589 %URI Requested URI
590 %DST Requested host
591 %PROTO Requested protocol
592 %PORT Requested port
593 %PATH Requested URL path
594 %METHOD Request method
595 %MYADDR Squid interface address
596 %MYPORT Squid http_port number
597 %PATH Requested URL-path (including query-string if any)
598 %USER_CERT SSL User certificate in PEM format
599 %USER_CERTCHAIN SSL User certificate chain in PEM format
600 %USER_CERT_xx SSL User certificate subject attribute xx
601 %USER_CA_xx SSL User certificate issuer attribute xx
602
603 %>{Header} HTTP request header "Header"
604 %>{Hdr:member}
605 HTTP request header "Hdr" list member "member"
606 %>{Hdr:;member}
607 HTTP request header list member using ; as
608 list separator. ; can be any non-alphanumeric
609 character.
610
611 %<{Header} HTTP reply header "Header"
612 %<{Hdr:member}
613 HTTP reply header "Hdr" list member "member"
614 %<{Hdr:;member}
615 HTTP reply header list member using ; as
616 list separator. ; can be any non-alphanumeric
617 character.
618
619 %% The percent sign. Useful for helpers which need
620 an unchanging input format.
621
622 In addition to the above, any string specified in the referencing
623 acl will also be included in the helper request line, after the
624 specified formats (see the "acl external" directive)
625
626 The helper receives lines per the above format specification,
627 and returns lines starting with OK or ERR indicating the validity
628 of the request and optionally followed by additional keywords with
629 more details.
630
631 General result syntax:
632
633 OK/ERR keyword=value ...
634
635 Defined keywords:
636
637 user= The users name (login)
638 password= The users password (for login= cache_peer option)
639 message= Message describing the reason. Available as %o
640 in error pages
641 tag= Apply a tag to a request (for both ERR and OK results)
642 Only sets a tag, does not alter existing tags.
643 log= String to be logged in access.log. Available as
644 %ea in logformat specifications
645
646 If protocol=3.0 (the default) then URL escaping is used to protect
647 each value in both requests and responses.
648
649 If using protocol=2.5 then all values need to be enclosed in quotes
650 if they may contain whitespace, or the whitespace escaped using \.
651 And quotes or \ characters within the keyword value must be \ escaped.
652
653 When using the concurrency= option the protocol is changed by
654 introducing a query channel tag infront of the request/response.
655 The query channel tag is a number between 0 and concurrency-1.
656 DOC_END
657
658 NAME: acl
659 TYPE: acl
660 LOC: Config.aclList
661 IF USE_SSL
662 DEFAULT: ssl::certHasExpired ssl_error X509_V_ERR_CERT_HAS_EXPIRED
663 DEFAULT: ssl::certNotYetValid ssl_error X509_V_ERR_CERT_NOT_YET_VALID
664 DEFAULT: ssl::certDomainMismatch ssl_error SQUID_X509_V_ERR_DOMAIN_MISMATCH
665 DEFAULT: ssl::certUntrusted ssl_error X509_V_ERR_INVALID_CA X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY X509_V_ERR_CERT_UNTRUSTED
666 DEFAULT: ssl::certSelfSigned ssl_error X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
667 ENDIF
668 DEFAULT: all src all
669 DEFAULT: manager url_regex -i ^cache_object:// +i ^https?://[^/]+/squid-internal-mgr/
670 DEFAULT: localhost src 127.0.0.1/32 ::1
671 DEFAULT: to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
672 DEFAULT_DOC: ACLs all, manager, localhost, and to_localhost are predefined.
673 DOC_START
674 Defining an Access List
675
676 Every access list definition must begin with an aclname and acltype,
677 followed by either type-specific arguments or a quoted filename that
678 they are read from.
679
680 acl aclname acltype argument ...
681 acl aclname acltype "file" ...
682
683 When using "file", the file should contain one item per line.
684
685 By default, regular expressions are CASE-SENSITIVE.
686 To make them case-insensitive, use the -i option. To return case-sensitive
687 use the +i option between patterns, or make a new ACL line without -i.
688
689 Some acl types require suspending the current request in order
690 to access some external data source.
691 Those which do are marked with the tag [slow], those which
692 don't are marked as [fast].
693 See http://wiki.squid-cache.org/SquidFaq/SquidAcl
694 for further information
695
696 ***** ACL TYPES AVAILABLE *****
697
698 acl aclname src ip-address/mask ... # clients IP address [fast]
699 acl aclname src addr1-addr2/mask ... # range of addresses [fast]
700 acl aclname dst ip-address/mask ... # URL host's IP address [slow]
701 acl aclname localip ip-address/mask ... # IP address the client connected to [fast]
702
703 acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
704 # The arp ACL requires the special configure option --enable-arp-acl.
705 # Furthermore, the ARP ACL code is not portable to all operating systems.
706 # It works on Linux, Solaris, Windows, FreeBSD, and some
707 # other *BSD variants.
708 # [fast]
709 #
710 # NOTE: Squid can only determine the MAC address for clients that are on
711 # the same subnet. If the client is on a different subnet,
712 # then Squid cannot find out its MAC address.
713
714 acl aclname srcdomain .foo.com ...
715 # reverse lookup, from client IP [slow]
716 acl aclname dstdomain .foo.com ...
717 # Destination server from URL [fast]
718 acl aclname srcdom_regex [-i] \.foo\.com ...
719 # regex matching client name [slow]
720 acl aclname dstdom_regex [-i] \.foo\.com ...
721 # regex matching server [fast]
722 #
723 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
724 # based URL is used and no match is found. The name "none" is used
725 # if the reverse lookup fails.
726
727 acl aclname src_as number ...
728 acl aclname dst_as number ...
729 # [fast]
730 # Except for access control, AS numbers can be used for
731 # routing of requests to specific caches. Here's an
732 # example for routing all requests for AS#1241 and only
733 # those to mycache.mydomain.net:
734 # acl asexample dst_as 1241
735 # cache_peer_access mycache.mydomain.net allow asexample
736 # cache_peer_access mycache_mydomain.net deny all
737
738 acl aclname peername myPeer ...
739 # [fast]
740 # match against a named cache_peer entry
741 # set unique name= on cache_peer lines for reliable use.
742
743 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
744 # [fast]
745 # day-abbrevs:
746 # S - Sunday
747 # M - Monday
748 # T - Tuesday
749 # W - Wednesday
750 # H - Thursday
751 # F - Friday
752 # A - Saturday
753 # h1:m1 must be less than h2:m2
754
755 acl aclname url_regex [-i] ^http:// ...
756 # regex matching on whole URL [fast]
757 acl aclname urlpath_regex [-i] \.gif$ ...
758 # regex matching on URL path [fast]
759
760 acl aclname port 80 70 21 0-1024... # destination TCP port [fast]
761 # ranges are alloed
762 acl aclname localport 3128 ... # TCP port the client connected to [fast]
763 # NP: for interception mode this is usually '80'
764
765 acl aclname myportname 3128 ... # http(s)_port name [fast]
766
767 acl aclname proto HTTP FTP ... # request protocol [fast]
768
769 acl aclname method GET POST ... # HTTP request method [fast]
770
771 acl aclname http_status 200 301 500- 400-403 ...
772 # status code in reply [fast]
773
774 acl aclname browser [-i] regexp ...
775 # pattern match on User-Agent header (see also req_header below) [fast]
776
777 acl aclname referer_regex [-i] regexp ...
778 # pattern match on Referer header [fast]
779 # Referer is highly unreliable, so use with care
780
781 acl aclname ident username ...
782 acl aclname ident_regex [-i] pattern ...
783 # string match on ident output [slow]
784 # use REQUIRED to accept any non-null ident.
785
786 acl aclname proxy_auth [-i] username ...
787 acl aclname proxy_auth_regex [-i] pattern ...
788 # perform http authentication challenge to the client and match against
789 # supplied credentials [slow]
790 #
791 # takes a list of allowed usernames.
792 # use REQUIRED to accept any valid username.
793 #
794 # Will use proxy authentication in forward-proxy scenarios, and plain
795 # http authenticaiton in reverse-proxy scenarios
796 #
797 # NOTE: when a Proxy-Authentication header is sent but it is not
798 # needed during ACL checking the username is NOT logged
799 # in access.log.
800 #
801 # NOTE: proxy_auth requires a EXTERNAL authentication program
802 # to check username/password combinations (see
803 # auth_param directive).
804 #
805 # NOTE: proxy_auth can't be used in a transparent/intercepting proxy
806 # as the browser needs to be configured for using a proxy in order
807 # to respond to proxy authentication.
808
809 acl aclname snmp_community string ...
810 # A community string to limit access to your SNMP Agent [fast]
811 # Example:
812 #
813 # acl snmppublic snmp_community public
814
815 acl aclname maxconn number
816 # This will be matched when the client's IP address has
817 # more than <number> TCP connections established. [fast]
818 # NOTE: This only measures direct TCP links so X-Forwarded-For
819 # indirect clients are not counted.
820
821 acl aclname max_user_ip [-s] number
822 # This will be matched when the user attempts to log in from more
823 # than <number> different ip addresses. The authenticate_ip_ttl
824 # parameter controls the timeout on the ip entries. [fast]
825 # If -s is specified the limit is strict, denying browsing
826 # from any further IP addresses until the ttl has expired. Without
827 # -s Squid will just annoy the user by "randomly" denying requests.
828 # (the counter is reset each time the limit is reached and a
829 # request is denied)
830 # NOTE: in acceleration mode or where there is mesh of child proxies,
831 # clients may appear to come from multiple addresses if they are
832 # going through proxy farms, so a limit of 1 may cause user problems.
833
834 acl aclname random probability
835 # Pseudo-randomly match requests. Based on the probability given.
836 # Probability may be written as a decimal (0.333), fraction (1/3)
837 # or ratio of matches:non-matches (3:5).
838
839 acl aclname req_mime_type [-i] mime-type ...
840 # regex match against the mime type of the request generated
841 # by the client. Can be used to detect file upload or some
842 # types HTTP tunneling requests [fast]
843 # NOTE: This does NOT match the reply. You cannot use this
844 # to match the returned file type.
845
846 acl aclname req_header header-name [-i] any\.regex\.here
847 # regex match against any of the known request headers. May be
848 # thought of as a superset of "browser", "referer" and "mime-type"
849 # ACL [fast]
850
851 acl aclname rep_mime_type [-i] mime-type ...
852 # regex match against the mime type of the reply received by
853 # squid. Can be used to detect file download or some
854 # types HTTP tunneling requests. [fast]
855 # NOTE: This has no effect in http_access rules. It only has
856 # effect in rules that affect the reply data stream such as
857 # http_reply_access.
858
859 acl aclname rep_header header-name [-i] any\.regex\.here
860 # regex match against any of the known reply headers. May be
861 # thought of as a superset of "browser", "referer" and "mime-type"
862 # ACLs [fast]
863
864 acl aclname external class_name [arguments...]
865 # external ACL lookup via a helper class defined by the
866 # external_acl_type directive [slow]
867
868 acl aclname user_cert attribute values...
869 # match against attributes in a user SSL certificate
870 # attribute is one of DN/C/O/CN/L/ST [fast]
871
872 acl aclname ca_cert attribute values...
873 # match against attributes a users issuing CA SSL certificate
874 # attribute is one of DN/C/O/CN/L/ST [fast]
875
876 acl aclname ext_user username ...
877 acl aclname ext_user_regex [-i] pattern ...
878 # string match on username returned by external acl helper [slow]
879 # use REQUIRED to accept any non-null user name.
880
881 acl aclname tag tagvalue ...
882 # string match on tag returned by external acl helper [slow]
883
884 acl aclname hier_code codename ...
885 # string match against squid hierarchy code(s); [fast]
886 # e.g., DIRECT, PARENT_HIT, NONE, etc.
887 #
888 # NOTE: This has no effect in http_access rules. It only has
889 # effect in rules that affect the reply data stream such as
890 # http_reply_access.
891
892 IF USE_SSL
893 acl aclname ssl_error errorname
894 # match against SSL certificate validation error [fast]
895 #
896 # For valid error names see in @DEFAULT_ERROR_DIR@/templates/error-details.txt
897 # template file.
898 #
899 # The following can be used as shortcuts for certificate properties:
900 # [ssl::]certHasExpired: the "not after" field is in the past
901 # [ssl::]certNotYetValid: the "not before" field is in the future
902 # [ssl::]certUntrusted: The certificate issuer is not to be trusted.
903 # [ssl::]certSelfSigned: The certificate is self signed.
904 # [ssl::]certDomainMismatch: The certificate CN domain does not
905 # match the name the name of the host we are connecting to.
906 #
907 # The ssl::certHasExpired, ssl::certNotYetValid, ssl::certDomainMismatch,
908 # ssl::certUntrusted, and ssl::certSelfSigned can also be used as
909 # predefined ACLs, just like the 'all' ACL.
910 #
911 # NOTE: The ssl_error ACL is only supported with sslproxy_cert_error,
912 # sslproxy_cert_sign, and sslproxy_cert_adapt options.
913
914 acl aclname server_ssl_cert_fingerprint [-sha1] fingerprint
915 # match against server SSL certificate fingerprint [fast]
916 #
917 # The fingerprint is the digest of the DER encoded version
918 # of the whole certificate. The user should use the form: XX:XX:...
919 # Optional argument specifies the digest algorithm to use.
920 # The SHA1 digest algorithm is the default and is currently
921 # the only algorithm supported (-sha1).
922 ENDIF
923
924 Examples:
925 acl macaddress arp 09:00:2b:23:45:67
926 acl myexample dst_as 1241
927 acl password proxy_auth REQUIRED
928 acl fileupload req_mime_type -i ^multipart/form-data$
929 acl javascript rep_mime_type -i ^application/x-javascript$
930
931 NOCOMMENT_START
932 #
933 # Recommended minimum configuration:
934 #
935
936 # Example rule allowing access from your local networks.
937 # Adapt to list your (internal) IP networks from where browsing
938 # should be allowed
939 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
940 acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
941 acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
942 acl localnet src fc00::/7 # RFC 4193 local private network range
943 acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
944
945 acl SSL_ports port 443
946 acl Safe_ports port 80 # http
947 acl Safe_ports port 21 # ftp
948 acl Safe_ports port 443 # https
949 acl Safe_ports port 70 # gopher
950 acl Safe_ports port 210 # wais
951 acl Safe_ports port 1025-65535 # unregistered ports
952 acl Safe_ports port 280 # http-mgmt
953 acl Safe_ports port 488 # gss-http
954 acl Safe_ports port 591 # filemaker
955 acl Safe_ports port 777 # multiling http
956 acl CONNECT method CONNECT
957 NOCOMMENT_END
958 DOC_END
959
960 NAME: follow_x_forwarded_for
961 TYPE: acl_access
962 IFDEF: FOLLOW_X_FORWARDED_FOR
963 LOC: Config.accessList.followXFF
964 DEFAULT_IF_NONE: deny all
965 DOC_START
966 Allowing or Denying the X-Forwarded-For header to be followed to
967 find the original source of a request.
968
969 Requests may pass through a chain of several other proxies
970 before reaching us. The X-Forwarded-For header will contain a
971 comma-separated list of the IP addresses in the chain, with the
972 rightmost address being the most recent.
973
974 If a request reaches us from a source that is allowed by this
975 configuration item, then we consult the X-Forwarded-For header
976 to see where that host received the request from. If the
977 X-Forwarded-For header contains multiple addresses, we continue
978 backtracking until we reach an address for which we are not allowed
979 to follow the X-Forwarded-For header, or until we reach the first
980 address in the list. For the purpose of ACL used in the
981 follow_x_forwarded_for directive the src ACL type always matches
982 the address we are testing and srcdomain matches its rDNS.
983
984 The end result of this process is an IP address that we will
985 refer to as the indirect client address. This address may
986 be treated as the client address for access control, ICAP, delay
987 pools and logging, depending on the acl_uses_indirect_client,
988 icap_uses_indirect_client, delay_pool_uses_indirect_client,
989 log_uses_indirect_client and tproxy_uses_indirect_client options.
990
991 This clause only supports fast acl types.
992 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
993
994 SECURITY CONSIDERATIONS:
995
996 Any host for which we follow the X-Forwarded-For header
997 can place incorrect information in the header, and Squid
998 will use the incorrect information as if it were the
999 source address of the request. This may enable remote
1000 hosts to bypass any access control restrictions that are
1001 based on the client's source addresses.
1002
1003 For example:
1004
1005 acl localhost src 127.0.0.1
1006 acl my_other_proxy srcdomain .proxy.example.com
1007 follow_x_forwarded_for allow localhost
1008 follow_x_forwarded_for allow my_other_proxy
1009 DOC_END
1010
1011 NAME: acl_uses_indirect_client
1012 COMMENT: on|off
1013 TYPE: onoff
1014 IFDEF: FOLLOW_X_FORWARDED_FOR
1015 DEFAULT: on
1016 LOC: Config.onoff.acl_uses_indirect_client
1017 DOC_START
1018 Controls whether the indirect client address
1019 (see follow_x_forwarded_for) is used instead of the
1020 direct client address in acl matching.
1021
1022 NOTE: maxconn ACL considers direct TCP links and indirect
1023 clients will always have zero. So no match.
1024 DOC_END
1025
1026 NAME: delay_pool_uses_indirect_client
1027 COMMENT: on|off
1028 TYPE: onoff
1029 IFDEF: FOLLOW_X_FORWARDED_FOR&&USE_DELAY_POOLS
1030 DEFAULT: on
1031 LOC: Config.onoff.delay_pool_uses_indirect_client
1032 DOC_START
1033 Controls whether the indirect client address
1034 (see follow_x_forwarded_for) is used instead of the
1035 direct client address in delay pools.
1036 DOC_END
1037
1038 NAME: log_uses_indirect_client
1039 COMMENT: on|off
1040 TYPE: onoff
1041 IFDEF: FOLLOW_X_FORWARDED_FOR
1042 DEFAULT: on
1043 LOC: Config.onoff.log_uses_indirect_client
1044 DOC_START
1045 Controls whether the indirect client address
1046 (see follow_x_forwarded_for) is used instead of the
1047 direct client address in the access log.
1048 DOC_END
1049
1050 NAME: tproxy_uses_indirect_client
1051 COMMENT: on|off
1052 TYPE: onoff
1053 IFDEF: FOLLOW_X_FORWARDED_FOR&&LINUX_NETFILTER
1054 DEFAULT: off
1055 LOC: Config.onoff.tproxy_uses_indirect_client
1056 DOC_START
1057 Controls whether the indirect client address
1058 (see follow_x_forwarded_for) is used instead of the
1059 direct client address when spoofing the outgoing client.
1060
1061 This has no effect on requests arriving in non-tproxy
1062 mode ports.
1063
1064 SECURITY WARNING: Usage of this option is dangerous
1065 and should not be used trivially. Correct configuration
1066 of follow_x_forewarded_for with a limited set of trusted
1067 sources is required to prevent abuse of your proxy.
1068 DOC_END
1069
1070 NAME: http_access
1071 TYPE: acl_access
1072 LOC: Config.accessList.http
1073 DEFAULT_IF_NONE: deny all
1074 DOC_START
1075 Allowing or Denying access based on defined access lists
1076
1077 Access to the HTTP port:
1078 http_access allow|deny [!]aclname ...
1079
1080 NOTE on default values:
1081
1082 If there are no "access" lines present, the default is to deny
1083 the request.
1084
1085 If none of the "access" lines cause a match, the default is the
1086 opposite of the last line in the list. If the last line was
1087 deny, the default is allow. Conversely, if the last line
1088 is allow, the default will be deny. For these reasons, it is a
1089 good idea to have an "deny all" entry at the end of your access
1090 lists to avoid potential confusion.
1091
1092 This clause supports both fast and slow acl types.
1093 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1094
1095 NOCOMMENT_START
1096
1097 #
1098 # Recommended minimum Access Permission configuration:
1099 #
1100 # Only allow cachemgr access from localhost
1101 http_access allow localhost manager
1102 http_access deny manager
1103
1104 # Deny requests to certain unsafe ports
1105 http_access deny !Safe_ports
1106
1107 # Deny CONNECT to other than secure SSL ports
1108 http_access deny CONNECT !SSL_ports
1109
1110 # We strongly recommend the following be uncommented to protect innocent
1111 # web applications running on the proxy server who think the only
1112 # one who can access services on "localhost" is a local user
1113 #http_access deny to_localhost
1114
1115 #
1116 # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
1117 #
1118
1119 # Example rule allowing access from your local networks.
1120 # Adapt localnet in the ACL section to list your (internal) IP networks
1121 # from where browsing should be allowed
1122 http_access allow localnet
1123 http_access allow localhost
1124
1125 # And finally deny all other access to this proxy
1126 http_access deny all
1127 NOCOMMENT_END
1128 DOC_END
1129
1130 NAME: adapted_http_access http_access2
1131 TYPE: acl_access
1132 LOC: Config.accessList.adapted_http
1133 DEFAULT: none
1134 DOC_START
1135 Allowing or Denying access based on defined access lists
1136
1137 Essentially identical to http_access, but runs after redirectors
1138 and ICAP/eCAP adaptation. Allowing access control based on their
1139 output.
1140
1141 If not set then only http_access is used.
1142 DOC_END
1143
1144 NAME: http_reply_access
1145 TYPE: acl_access
1146 LOC: Config.accessList.reply
1147 DEFAULT: none
1148 DOC_START
1149 Allow replies to client requests. This is complementary to http_access.
1150
1151 http_reply_access allow|deny [!] aclname ...
1152
1153 NOTE: if there are no access lines present, the default is to allow
1154 all replies
1155
1156 If none of the access lines cause a match the opposite of the
1157 last line will apply. Thus it is good practice to end the rules
1158 with an "allow all" or "deny all" entry.
1159
1160 This clause supports both fast and slow acl types.
1161 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1162 DOC_END
1163
1164 NAME: icp_access
1165 TYPE: acl_access
1166 LOC: Config.accessList.icp
1167 DEFAULT_IF_NONE: deny all
1168 DOC_START
1169 Allowing or Denying access to the ICP port based on defined
1170 access lists
1171
1172 icp_access allow|deny [!]aclname ...
1173
1174 See http_access for details
1175
1176 This clause only supports fast acl types.
1177 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1178
1179 # Allow ICP queries from local networks only
1180 #icp_access allow localnet
1181 #icp_access deny all
1182 DOC_END
1183
1184 NAME: htcp_access
1185 IFDEF: USE_HTCP
1186 TYPE: acl_access
1187 LOC: Config.accessList.htcp
1188 DEFAULT_IF_NONE: deny all
1189 DOC_START
1190 Allowing or Denying access to the HTCP port based on defined
1191 access lists
1192
1193 htcp_access allow|deny [!]aclname ...
1194
1195 See http_access for details
1196
1197 NOTE: The default if no htcp_access lines are present is to
1198 deny all traffic. This default may cause problems with peers
1199 using the htcp option.
1200
1201 This clause only supports fast acl types.
1202 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1203
1204 # Allow HTCP queries from local networks only
1205 #htcp_access allow localnet
1206 #htcp_access deny all
1207 DOC_END
1208
1209 NAME: htcp_clr_access
1210 IFDEF: USE_HTCP
1211 TYPE: acl_access
1212 LOC: Config.accessList.htcp_clr
1213 DEFAULT_IF_NONE: deny all
1214 DOC_START
1215 Allowing or Denying access to purge content using HTCP based
1216 on defined access lists
1217
1218 htcp_clr_access allow|deny [!]aclname ...
1219
1220 See http_access for details
1221
1222 This clause only supports fast acl types.
1223 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1224
1225 # Allow HTCP CLR requests from trusted peers
1226 acl htcp_clr_peer src 172.16.1.2
1227 htcp_clr_access allow htcp_clr_peer
1228 DOC_END
1229
1230 NAME: miss_access
1231 TYPE: acl_access
1232 LOC: Config.accessList.miss
1233 DEFAULT: none
1234 DOC_START
1235 Determins whether network access is permitted when satisfying a request.
1236
1237 For example;
1238 to force your neighbors to use you as a sibling instead of
1239 a parent.
1240
1241 acl localclients src 172.16.0.0/16
1242 miss_access allow localclients
1243 miss_access deny !localclients
1244
1245 This means only your local clients are allowed to fetch relayed/MISS
1246 replies from the network and all other clients can only fetch cached
1247 objects (HITs).
1248
1249
1250 The default for this setting allows all clients who passed the
1251 http_access rules to relay via this proxy.
1252
1253 This clause only supports fast acl types.
1254 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1255 DOC_END
1256
1257 NAME: ident_lookup_access
1258 TYPE: acl_access
1259 IFDEF: USE_IDENT
1260 DEFAULT_IF_NONE: deny all
1261 LOC: Ident::TheConfig.identLookup
1262 DOC_START
1263 A list of ACL elements which, if matched, cause an ident
1264 (RFC 931) lookup to be performed for this request. For
1265 example, you might choose to always perform ident lookups
1266 for your main multi-user Unix boxes, but not for your Macs
1267 and PCs. By default, ident lookups are not performed for
1268 any requests.
1269
1270 To enable ident lookups for specific client addresses, you
1271 can follow this example:
1272
1273 acl ident_aware_hosts src 198.168.1.0/24
1274 ident_lookup_access allow ident_aware_hosts
1275 ident_lookup_access deny all
1276
1277 Only src type ACL checks are fully supported. A srcdomain
1278 ACL might work at times, but it will not always provide
1279 the correct result.
1280
1281 This clause only supports fast acl types.
1282 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
1283 DOC_END
1284
1285 NAME: reply_body_max_size
1286 COMMENT: size [acl acl...]
1287 TYPE: acl_b_size_t
1288 DEFAULT: none
1289 LOC: Config.ReplyBodySize
1290 DOC_START
1291 This option specifies the maximum size of a reply body. It can be
1292 used to prevent users from downloading very large files, such as
1293 MP3's and movies. When the reply headers are received, the
1294 reply_body_max_size lines are processed, and the first line where
1295 all (if any) listed ACLs are true is used as the maximum body size
1296 for this reply.
1297
1298 This size is checked twice. First when we get the reply headers,
1299 we check the content-length value. If the content length value exists
1300 and is larger than the allowed size, the request is denied and the
1301 user receives an error message that says "the request or reply
1302 is too large." If there is no content-length, and the reply
1303 size exceeds this limit, the client's connection is just closed
1304 and they will receive a partial reply.
1305
1306 WARNING: downstream caches probably can not detect a partial reply
1307 if there is no content-length header, so they will cache
1308 partial responses and give them out as hits. You should NOT
1309 use this option if you have downstream caches.
1310
1311 WARNING: A maximum size smaller than the size of squid's error messages
1312 will cause an infinite loop and crash squid. Ensure that the smallest
1313 non-zero value you use is greater that the maximum header size plus
1314 the size of your largest error page.
1315
1316 If you set this parameter none (the default), there will be
1317 no limit imposed.
1318
1319 Configuration Format is:
1320 reply_body_max_size SIZE UNITS [acl ...]
1321 ie.
1322 reply_body_max_size 10 MB
1323
1324 DOC_END
1325
1326 COMMENT_START
1327 NETWORK OPTIONS
1328 -----------------------------------------------------------------------------
1329 COMMENT_END
1330
1331 NAME: http_port ascii_port
1332 TYPE: PortCfg
1333 DEFAULT: none
1334 LOC: Config.Sockaddr.http
1335 DOC_START
1336 Usage: port [mode] [options]
1337 hostname:port [mode] [options]
1338 1.2.3.4:port [mode] [options]
1339
1340 The socket addresses where Squid will listen for HTTP client
1341 requests. You may specify multiple socket addresses.
1342 There are three forms: port alone, hostname with port, and
1343 IP address with port. If you specify a hostname or IP
1344 address, Squid binds the socket to that specific
1345 address. Most likely, you do not need to bind to a specific
1346 address, so you can use the port number alone.
1347
1348 If you are running Squid in accelerator mode, you
1349 probably want to listen on port 80 also, or instead.
1350
1351 The -a command line option may be used to specify additional
1352 port(s) where Squid listens for proxy request. Such ports will
1353 be plain proxy ports with no options.
1354
1355 You may specify multiple socket addresses on multiple lines.
1356
1357 Modes:
1358
1359 intercept Support for IP-Layer interception of
1360 outgoing requests without browser settings.
1361 NP: disables authentication and IPv6 on the port.
1362
1363 tproxy Support Linux TPROXY for spoofing outgoing
1364 connections using the client IP address.
1365 NP: disables authentication and maybe IPv6 on the port.
1366
1367 accel Accelerator / reverse proxy mode
1368
1369 ssl-bump For each CONNECT request allowed by ssl_bump ACLs,
1370 establish secure connection with the client and with
1371 the server, decrypt HTTPS messages as they pass through
1372 Squid, and treat them as unencrypted HTTP messages,
1373 becoming the man-in-the-middle.
1374
1375 The ssl_bump option is required to fully enable
1376 bumping of CONNECT requests.
1377
1378 Omitting the mode flag causes default forward proxy mode to be used.
1379
1380
1381 Accelerator Mode Options:
1382
1383 defaultsite=domainname
1384 What to use for the Host: header if it is not present
1385 in a request. Determines what site (not origin server)
1386 accelerators should consider the default.
1387
1388 no-vhost Disable using HTTP/1.1 Host header for virtual domain support.
1389
1390 protocol= Protocol to reconstruct accelerated requests with.
1391 Defaults to http for http_port and https for
1392 https_port
1393
1394 vport Virtual host port support. Using the http_port number
1395 instead of the port passed on Host: headers.
1396
1397 vport=NN Virtual host port support. Using the specified port
1398 number instead of the port passed on Host: headers.
1399
1400 act-as-origin
1401 Act as if this Squid is the origin server.
1402 This currently means generate new Date: and Expires:
1403 headers on HIT instead of adding Age:.
1404
1405 ignore-cc Ignore request Cache-Control headers.
1406
1407 WARNING: This option violates HTTP specifications if
1408 used in non-accelerator setups.
1409
1410 allow-direct Allow direct forwarding in accelerator mode. Normally
1411 accelerated requests are denied direct forwarding as if
1412 never_direct was used.
1413
1414 WARNING: this option opens accelerator mode to security
1415 vulnerabilities usually only affecting in interception
1416 mode. Make sure to protect forwarding with suitable
1417 http_access rules when using this.
1418
1419
1420 SSL Bump Mode Options:
1421 In addition to these options ssl-bump requires TLS/SSL options.
1422
1423 generate-host-certificates[=<on|off>]
1424 Dynamically create SSL server certificates for the
1425 destination hosts of bumped CONNECT requests.When
1426 enabled, the cert and key options are used to sign
1427 generated certificates. Otherwise generated
1428 certificate will be selfsigned.
1429 If there is a CA certificate lifetime of the generated
1430 certificate equals lifetime of the CA certificate. If
1431 generated certificate is selfsigned lifetime is three
1432 years.
1433 This option is enabled by default when ssl-bump is used.
1434 See the ssl-bump option above for more information.
1435
1436 dynamic_cert_mem_cache_size=SIZE
1437 Approximate total RAM size spent on cached generated
1438 certificates. If set to zero, caching is disabled. The
1439 default value is 4MB.
1440
1441 TLS / SSL Options:
1442
1443 cert= Path to SSL certificate (PEM format).
1444
1445 key= Path to SSL private key file (PEM format)
1446 if not specified, the certificate file is
1447 assumed to be a combined certificate and
1448 key file.
1449
1450 version= The version of SSL/TLS supported
1451 1 automatic (default)
1452 2 SSLv2 only
1453 3 SSLv3 only
1454 4 TLSv1.0 only
1455 5 TLSv1.1 only
1456 6 TLSv1.2 only
1457
1458 cipher= Colon separated list of supported ciphers.
1459 NOTE: some ciphers such as EDH ciphers depend on
1460 additional settings. If those settings are
1461 omitted the ciphers may be silently ignored
1462 by the OpenSSL library.
1463
1464 options= Various SSL implementation options. The most important
1465 being:
1466 NO_SSLv2 Disallow the use of SSLv2
1467 NO_SSLv3 Disallow the use of SSLv3
1468 NO_TLSv1 Disallow the use of TLSv1.0
1469 NO_TLSv1_1 Disallow the use of TLSv1.1
1470 NO_TLSv1_2 Disallow the use of TLSv1.2
1471 SINGLE_DH_USE Always create a new key when using
1472 temporary/ephemeral DH key exchanges
1473 ALL Enable various bug workarounds
1474 suggested as "harmless" by OpenSSL
1475 Be warned that this reduces SSL/TLS
1476 strength to some attacks.
1477 See OpenSSL SSL_CTX_set_options documentation for a
1478 complete list of options.
1479
1480 clientca= File containing the list of CAs to use when
1481 requesting a client certificate.
1482
1483 cafile= File containing additional CA certificates to
1484 use when verifying client certificates. If unset
1485 clientca will be used.
1486
1487 capath= Directory containing additional CA certificates
1488 and CRL lists to use when verifying client certificates.
1489
1490 crlfile= File of additional CRL lists to use when verifying
1491 the client certificate, in addition to CRLs stored in
1492 the capath. Implies VERIFY_CRL flag below.
1493
1494 dhparams= File containing DH parameters for temporary/ephemeral
1495 DH key exchanges. See OpenSSL documentation for details
1496 on how to create this file.
1497 WARNING: EDH ciphers will be silently disabled if this
1498 option is not set.
1499
1500 sslflags= Various flags modifying the use of SSL:
1501 DELAYED_AUTH
1502 Don't request client certificates
1503 immediately, but wait until acl processing
1504 requires a certificate (not yet implemented).
1505 NO_DEFAULT_CA
1506 Don't use the default CA lists built in
1507 to OpenSSL.
1508 NO_SESSION_REUSE
1509 Don't allow for session reuse. Each connection
1510 will result in a new SSL session.
1511 VERIFY_CRL
1512 Verify CRL lists when accepting client
1513 certificates.
1514 VERIFY_CRL_ALL
1515 Verify CRL lists for all certificates in the
1516 client certificate chain.
1517
1518 sslcontext= SSL session ID context identifier.
1519
1520 Other Options:
1521
1522 connection-auth[=on|off]
1523 use connection-auth=off to tell Squid to prevent
1524 forwarding Microsoft connection oriented authentication
1525 (NTLM, Negotiate and Kerberos)
1526
1527 disable-pmtu-discovery=
1528 Control Path-MTU discovery usage:
1529 off lets OS decide on what to do (default).
1530 transparent disable PMTU discovery when transparent
1531 support is enabled.
1532 always disable always PMTU discovery.
1533
1534 In many setups of transparently intercepting proxies
1535 Path-MTU discovery can not work on traffic towards the
1536 clients. This is the case when the intercepting device
1537 does not fully track connections and fails to forward
1538 ICMP must fragment messages to the cache server. If you
1539 have such setup and experience that certain clients
1540 sporadically hang or never complete requests set
1541 disable-pmtu-discovery option to 'transparent'.
1542
1543 name= Specifies a internal name for the port. Defaults to
1544 the port specification (port or addr:port)
1545
1546 tcpkeepalive[=idle,interval,timeout]
1547 Enable TCP keepalive probes of idle connections.
1548 In seconds; idle is the initial time before TCP starts
1549 probing the connection, interval how often to probe, and
1550 timeout the time before giving up.
1551
1552 If you run Squid on a dual-homed machine with an internal
1553 and an external interface we recommend you to specify the
1554 internal address:port in http_port. This way Squid will only be
1555 visible on the internal address.
1556
1557 NOCOMMENT_START
1558
1559 # Squid normally listens to port 3128
1560 http_port @DEFAULT_HTTP_PORT@
1561 NOCOMMENT_END
1562 DOC_END
1563
1564 NAME: https_port
1565 IFDEF: USE_SSL
1566 TYPE: PortCfg
1567 DEFAULT: none
1568 LOC: Config.Sockaddr.https
1569 DOC_START
1570 Usage: [ip:]port cert=certificate.pem [key=key.pem] [mode] [options...]
1571
1572 The socket address where Squid will listen for client requests made
1573 over TLS or SSL connections. Commonly referred to as HTTPS.
1574
1575 This is most useful for situations where you are running squid in
1576 accelerator mode and you want to do the SSL work at the accelerator level.
1577
1578 You may specify multiple socket addresses on multiple lines,
1579 each with their own SSL certificate and/or options.
1580
1581 Modes:
1582
1583 accel Accelerator / reverse proxy mode
1584
1585 intercept Support for IP-Layer interception of
1586 outgoing requests without browser settings.
1587 NP: disables authentication and IPv6 on the port.
1588
1589 tproxy Support Linux TPROXY for spoofing outgoing
1590 connections using the client IP address.
1591 NP: disables authentication and maybe IPv6 on the port.
1592
1593 ssl-bump For each intercepted connection allowed by ssl_bump
1594 ACLs, establish a secure connection with the client and with
1595 the server, decrypt HTTPS messages as they pass through
1596 Squid, and treat them as unencrypted HTTP messages,
1597 becoming the man-in-the-middle.
1598
1599 An "ssl_bump server-first" match is required to
1600 fully enable bumping of intercepted SSL connections.
1601
1602 Requires tproxy or intercept.
1603
1604 Omitting the mode flag causes default forward proxy mode to be used.
1605
1606
1607 See http_port for a list of generic options
1608
1609
1610 SSL Options:
1611
1612 cert= Path to SSL certificate (PEM format).
1613
1614 key= Path to SSL private key file (PEM format)
1615 if not specified, the certificate file is
1616 assumed to be a combined certificate and
1617 key file.
1618
1619 version= The version of SSL/TLS supported
1620 1 automatic (default)
1621 2 SSLv2 only
1622 3 SSLv3 only
1623 4 TLSv1 only
1624
1625 cipher= Colon separated list of supported ciphers.
1626
1627 options= Various SSL engine options. The most important
1628 being:
1629 NO_SSLv2 Disallow the use of SSLv2
1630 NO_SSLv3 Disallow the use of SSLv3
1631 NO_TLSv1 Disallow the use of TLSv1
1632 SINGLE_DH_USE Always create a new key when using
1633 temporary/ephemeral DH key exchanges
1634 See src/ssl_support.c or OpenSSL SSL_CTX_set_options
1635 documentation for a complete list of options.
1636
1637 clientca= File containing the list of CAs to use when
1638 requesting a client certificate.
1639
1640 cafile= File containing additional CA certificates to
1641 use when verifying client certificates. If unset
1642 clientca will be used.
1643
1644 capath= Directory containing additional CA certificates
1645 and CRL lists to use when verifying client certificates.
1646
1647 crlfile= File of additional CRL lists to use when verifying
1648 the client certificate, in addition to CRLs stored in
1649 the capath. Implies VERIFY_CRL flag below.
1650
1651 dhparams= File containing DH parameters for temporary/ephemeral
1652 DH key exchanges.
1653
1654 sslflags= Various flags modifying the use of SSL:
1655 DELAYED_AUTH
1656 Don't request client certificates
1657 immediately, but wait until acl processing
1658 requires a certificate (not yet implemented).
1659 NO_DEFAULT_CA
1660 Don't use the default CA lists built in
1661 to OpenSSL.
1662 NO_SESSION_REUSE
1663 Don't allow for session reuse. Each connection
1664 will result in a new SSL session.
1665 VERIFY_CRL
1666 Verify CRL lists when accepting client
1667 certificates.
1668 VERIFY_CRL_ALL
1669 Verify CRL lists for all certificates in the
1670 client certificate chain.
1671
1672 sslcontext= SSL session ID context identifier.
1673
1674 generate-host-certificates[=<on|off>]
1675 Dynamically create SSL server certificates for the
1676 destination hosts of bumped SSL requests.When
1677 enabled, the cert and key options are used to sign
1678 generated certificates. Otherwise generated
1679 certificate will be selfsigned.
1680 If there is CA certificate life time of generated
1681 certificate equals lifetime of CA certificate. If
1682 generated certificate is selfsigned lifetime is three
1683 years.
1684 This option is enabled by default when SslBump is used.
1685 See the sslBump option above for more information.
1686
1687 dynamic_cert_mem_cache_size=SIZE
1688 Approximate total RAM size spent on cached generated
1689 certificates. If set to zero, caching is disabled. The
1690 default value is 4MB.
1691
1692 See http_port for a list of available options.
1693 DOC_END
1694
1695 NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoing_dscp
1696 TYPE: acl_tos
1697 DEFAULT: none
1698 LOC: Ip::Qos::TheConfig.tosToServer
1699 DOC_START
1700 Allows you to select a TOS/Diffserv value for packets outgoing
1701 on the server side, based on an ACL.
1702
1703 tcp_outgoing_tos ds-field [!]aclname ...
1704
1705 Example where normal_service_net uses the TOS value 0x00
1706 and good_service_net uses 0x20
1707
1708 acl normal_service_net src 10.0.0.0/24
1709 acl good_service_net src 10.0.1.0/24
1710 tcp_outgoing_tos 0x00 normal_service_net
1711 tcp_outgoing_tos 0x20 good_service_net
1712
1713 TOS/DSCP values really only have local significance - so you should
1714 know what you're specifying. For more information, see RFC2474,
1715 RFC2475, and RFC3260.
1716
1717 The TOS/DSCP byte must be exactly that - a octet value 0 - 255, or
1718 "default" to use whatever default your host has. Note that in
1719 practice often only multiples of 4 is usable as the two rightmost bits
1720 have been redefined for use by ECN (RFC 3168 section 23.1).
1721
1722 Processing proceeds in the order specified, and stops at first fully
1723 matching line.
1724 DOC_END
1725
1726 NAME: clientside_tos
1727 TYPE: acl_tos
1728 DEFAULT: none
1729 LOC: Ip::Qos::TheConfig.tosToClient
1730 DOC_START
1731 Allows you to select a TOS/Diffserv value for packets being transmitted
1732 on the client-side, based on an ACL.
1733
1734 clientside_tos ds-field [!]aclname ...
1735
1736 Example where normal_service_net uses the TOS value 0x00
1737 and good_service_net uses 0x20
1738
1739 acl normal_service_net src 10.0.0.0/24
1740 acl good_service_net src 10.0.1.0/24
1741 clientside_tos 0x00 normal_service_net
1742 clientside_tos 0x20 good_service_net
1743
1744 Note: This feature is incompatible with qos_flows. Any TOS values set here
1745 will be overwritten by TOS values in qos_flows.
1746 DOC_END
1747
1748 NAME: tcp_outgoing_mark
1749 TYPE: acl_nfmark
1750 IFDEF: SO_MARK&&USE_LIBCAP
1751 DEFAULT: none
1752 LOC: Ip::Qos::TheConfig.nfmarkToServer
1753 DOC_START
1754 Allows you to apply a Netfilter mark value to outgoing packets
1755 on the server side, based on an ACL.
1756
1757 tcp_outgoing_mark mark-value [!]aclname ...
1758
1759 Example where normal_service_net uses the mark value 0x00
1760 and good_service_net uses 0x20
1761
1762 acl normal_service_net src 10.0.0.0/24
1763 acl good_service_net src 10.0.1.0/24
1764 tcp_outgoing_mark 0x00 normal_service_net
1765 tcp_outgoing_mark 0x20 good_service_net
1766 DOC_END
1767
1768 NAME: clientside_mark
1769 TYPE: acl_nfmark
1770 IFDEF: SO_MARK&&USE_LIBCAP
1771 DEFAULT: none
1772 LOC: Ip::Qos::TheConfig.nfmarkToClient
1773 DOC_START
1774 Allows you to apply a Netfilter mark value to packets being transmitted
1775 on the client-side, based on an ACL.
1776
1777 clientside_mark mark-value [!]aclname ...
1778
1779 Example where normal_service_net uses the mark value 0x00
1780 and good_service_net uses 0x20
1781
1782 acl normal_service_net src 10.0.0.0/24
1783 acl good_service_net src 10.0.1.0/24
1784 clientside_mark 0x00 normal_service_net
1785 clientside_mark 0x20 good_service_net
1786
1787 Note: This feature is incompatible with qos_flows. Any mark values set here
1788 will be overwritten by mark values in qos_flows.
1789 DOC_END
1790
1791 NAME: qos_flows
1792 TYPE: QosConfig
1793 IFDEF: USE_QOS_TOS
1794 DEFAULT: none
1795 LOC: Ip::Qos::TheConfig
1796 DOC_START
1797 Allows you to select a TOS/DSCP value to mark outgoing
1798 connections with, based on where the reply was sourced. For
1799 platforms using netfilter, allows you to set a netfilter mark
1800 value instead of, or in addition to, a TOS value.
1801
1802 TOS values really only have local significance - so you should
1803 know what you're specifying. For more information, see RFC2474,
1804 RFC2475, and RFC3260.
1805
1806 The TOS/DSCP byte must be exactly that - a octet value 0 - 255. Note that
1807 in practice often only multiples of 4 is usable as the two rightmost bits
1808 have been redefined for use by ECN (RFC 3168 section 23.1).
1809
1810 Mark values can be any unsigned 32-bit integer value.
1811
1812 This setting is configured by setting the following values:
1813
1814 tos|mark Whether to set TOS or netfilter mark values
1815
1816 local-hit=0xFF Value to mark local cache hits.
1817
1818 sibling-hit=0xFF Value to mark hits from sibling peers.
1819
1820 parent-hit=0xFF Value to mark hits from parent peers.
1821
1822 miss=0xFF[/mask] Value to mark cache misses. Takes precedence
1823 over the preserve-miss feature (see below), unless
1824 mask is specified, in which case only the bits
1825 specified in the mask are written.
1826
1827 The TOS variant of the following features are only possible on Linux
1828 and require your kernel to be patched with the TOS preserving ZPH
1829 patch, available from http://zph.bratcheda.org
1830 No patch is needed to preserve the netfilter mark, which will work
1831 with all variants of netfilter.
1832
1833 disable-preserve-miss
1834 This option disables the preservation of the TOS or netfilter
1835 mark. By default, the existing TOS or netfilter mark value of
1836 the response coming from the remote server will be retained
1837 and masked with miss-mark.
1838 NOTE: in the case of a netfilter mark, the mark must be set on
1839 the connection (using the CONNMARK target) not on the packet
1840 (MARK target).
1841
1842 miss-mask=0xFF
1843 Allows you to mask certain bits in the TOS or mark value
1844 received from the remote server, before copying the value to
1845 the TOS sent towards clients.
1846 Default for tos: 0xFF (TOS from server is not changed).
1847 Default for mark: 0xFFFFFFFF (mark from server is not changed).
1848
1849 All of these features require the --enable-zph-qos compilation flag
1850 (enabled by default). Netfilter marking also requires the
1851 libnetfilter_conntrack libraries (--with-netfilter-conntrack) and
1852 libcap 2.09+ (--with-libcap).
1853
1854 DOC_END
1855
1856 NAME: tcp_outgoing_address
1857 TYPE: acl_address
1858 DEFAULT: none
1859 LOC: Config.accessList.outgoing_address
1860 DOC_START
1861 Allows you to map requests to different outgoing IP addresses
1862 based on the username or source address of the user making
1863 the request.
1864
1865 tcp_outgoing_address ipaddr [[!]aclname] ...
1866
1867 For example;
1868 Forwarding clients with dedicated IPs for certain subnets.
1869
1870 acl normal_service_net src 10.0.0.0/24
1871 acl good_service_net src 10.0.2.0/24
1872
1873 tcp_outgoing_address 2001:db8::c001 good_service_net
1874 tcp_outgoing_address 10.1.0.2 good_service_net
1875
1876 tcp_outgoing_address 2001:db8::beef normal_service_net
1877 tcp_outgoing_address 10.1.0.1 normal_service_net
1878
1879 tcp_outgoing_address 2001:db8::1
1880 tcp_outgoing_address 10.1.0.3
1881
1882 Processing proceeds in the order specified, and stops at first fully
1883 matching line.
1884
1885 Squid will add an implicit IP version test to each line.
1886 Requests going to IPv4 websites will use the outgoing 10.1.0.* addresses.
1887 Requests going to IPv6 websites will use the outgoing 2001:db8:* addresses.
1888
1889
1890 NOTE: The use of this directive using client dependent ACLs is
1891 incompatible with the use of server side persistent connections. To
1892 ensure correct results it is best to set server_persistent_connections
1893 to off when using this directive in such configurations.
1894
1895 NOTE: The use of this directive to set a local IP on outgoing TCP links
1896 is incompatible with using TPROXY to set client IP out outbound TCP links.
1897 When needing to contact peers use the no-tproxy cache_peer option and the
1898 client_dst_passthru directive re-enable normal forwarding such as this.
1899
1900 DOC_END
1901
1902 NAME: host_verify_strict
1903 TYPE: onoff
1904 DEFAULT: off
1905 LOC: Config.onoff.hostStrictVerify
1906 DOC_START
1907 Regardless of this option setting, when dealing with intercepted
1908 traffic, Squid always verifies that the destination IP address matches
1909 the Host header domain or IP (called 'authority form URL').
1910
1911 This enforcement is performed to satisfy a MUST-level requirement in
1912 RFC 2616 section 14.23: "The Host field value MUST represent the naming
1913 authority of the origin server or gateway given by the original URL".
1914
1915 When set to ON:
1916 Squid always responds with an HTTP 409 (Conflict) error
1917 page and logs a security warning if there is no match.
1918
1919 Squid verifies that the destination IP address matches
1920 the Host header for forward-proxy and reverse-proxy traffic
1921 as well. For those traffic types, Squid also enables the
1922 following checks, comparing the corresponding Host header
1923 and Request-URI components:
1924
1925 * The host names (domain or IP) must be identical,
1926 but valueless or missing Host header disables all checks.
1927 For the two host names to match, both must be either IP
1928 or FQDN.
1929
1930 * Port numbers must be identical, but if a port is missing
1931 the scheme-default port is assumed.
1932
1933
1934 When set to OFF (the default):
1935 Squid allows suspicious requests to continue but logs a
1936 security warning and blocks caching of the response.
1937
1938 * Forward-proxy traffic is not checked at all.
1939
1940 * Reverse-proxy traffic is not checked at all.
1941
1942 * Intercepted traffic which passes verification is handled
1943 according to client_dst_passthru.
1944
1945 * Intercepted requests which fail verification are sent
1946 to the client original destination instead of DIRECT.
1947 This overrides 'client_dst_passthru off'.
1948
1949 For now suspicious intercepted CONNECT requests are always
1950 responded to with an HTTP 409 (Conflict) error page.
1951
1952
1953 SECURITY NOTE:
1954
1955 As described in CVE-2009-0801 when the Host: header alone is used
1956 to determine the destination of a request it becomes trivial for
1957 malicious scripts on remote websites to bypass browser same-origin
1958 security policy and sandboxing protections.
1959
1960 The cause of this is that such applets are allowed to perform their
1961 own HTTP stack, in which case the same-origin policy of the browser
1962 sandbox only verifies that the applet tries to contact the same IP
1963 as from where it was loaded at the IP level. The Host: header may
1964 be different from the connected IP and approved origin.
1965
1966 DOC_END
1967
1968 NAME: client_dst_passthru
1969 TYPE: onoff
1970 DEFAULT: on
1971 LOC: Config.onoff.client_dst_passthru
1972 DOC_START
1973 With NAT or TPROXY intercepted traffic Squid may pass the request
1974 directly to the original client destination IP or seek a faster
1975 source using the HTTP Host header.
1976
1977 Using Host to locate alternative servers can provide faster
1978 connectivity with a range of failure recovery options.
1979 But can also lead to connectivity trouble when the client and
1980 server are attempting stateful interactions unaware of the proxy.
1981
1982 This option (on by default) prevents alternative DNS entries being
1983 located to send intercepted traffic DIRECT to an origin server.
1984 The clients original destination IP and port will be used instead.
1985
1986 Regardless of this option setting, when dealing with intercepted
1987 traffic Squid will verify the Host: header and any traffic which
1988 fails Host verification will be treated as if this option were ON.
1989
1990 see host_verify_strict for details on the verification process.
1991 DOC_END
1992
1993 COMMENT_START
1994 SSL OPTIONS
1995 -----------------------------------------------------------------------------
1996 COMMENT_END
1997
1998 NAME: ssl_unclean_shutdown
1999 IFDEF: USE_SSL
2000 TYPE: onoff
2001 DEFAULT: off
2002 LOC: Config.SSL.unclean_shutdown
2003 DOC_START
2004 Some browsers (especially MSIE) bugs out on SSL shutdown
2005 messages.
2006 DOC_END
2007
2008 NAME: ssl_engine
2009 IFDEF: USE_SSL
2010 TYPE: string
2011 LOC: Config.SSL.ssl_engine
2012 DEFAULT: none
2013 DOC_START
2014 The OpenSSL engine to use. You will need to set this if you
2015 would like to use hardware SSL acceleration for example.
2016 DOC_END
2017
2018 NAME: sslproxy_client_certificate
2019 IFDEF: USE_SSL
2020 DEFAULT: none
2021 LOC: Config.ssl_client.cert
2022 TYPE: string
2023 DOC_START
2024 Client SSL Certificate to use when proxying https:// URLs
2025 DOC_END
2026
2027 NAME: sslproxy_client_key
2028 IFDEF: USE_SSL
2029 DEFAULT: none
2030 LOC: Config.ssl_client.key
2031 TYPE: string
2032 DOC_START
2033 Client SSL Key to use when proxying https:// URLs
2034 DOC_END
2035
2036 NAME: sslproxy_version
2037 IFDEF: USE_SSL
2038 DEFAULT: 1
2039 LOC: Config.ssl_client.version
2040 TYPE: int
2041 DOC_START
2042 SSL version level to use when proxying https:// URLs
2043
2044 The versions of SSL/TLS supported:
2045
2046 1 automatic (default)
2047 2 SSLv2 only
2048 3 SSLv3 only
2049 4 TLSv1.0 only
2050 5 TLSv1.1 only
2051 6 TLSv1.2 only
2052 DOC_END
2053
2054 NAME: sslproxy_options
2055 IFDEF: USE_SSL
2056 DEFAULT: none
2057 LOC: Config.ssl_client.options
2058 TYPE: string
2059 DOC_START
2060 SSL implementation options to use when proxying https:// URLs
2061
2062 The most important being:
2063
2064 NO_SSLv2 Disallow the use of SSLv2
2065 NO_SSLv3 Disallow the use of SSLv3
2066 NO_TLSv1 Disallow the use of TLSv1.0
2067 NO_TLSv1_1 Disallow the use of TLSv1.1
2068 NO_TLSv1_2 Disallow the use of TLSv1.2
2069 SINGLE_DH_USE
2070 Always create a new key when using temporary/ephemeral
2071 DH key exchanges
2072 SSL_OP_NO_TICKET
2073 Disable use of RFC5077 session tickets. Some servers
2074 may have problems understanding the TLS extension due
2075 to ambiguous specification in RFC4507.
2076 ALL Enable various bug workarounds suggested as "harmless"
2077 by OpenSSL. Be warned that this may reduce SSL/TLS
2078 strength to some attacks.
2079
2080 See the OpenSSL SSL_CTX_set_options documentation for a
2081 complete list of possible options.
2082 DOC_END
2083
2084 NAME: sslproxy_cipher
2085 IFDEF: USE_SSL
2086 DEFAULT: none
2087 LOC: Config.ssl_client.cipher
2088 TYPE: string
2089 DOC_START
2090 SSL cipher list to use when proxying https:// URLs
2091
2092 Colon separated list of supported ciphers.
2093 DOC_END
2094
2095 NAME: sslproxy_cafile
2096 IFDEF: USE_SSL
2097 DEFAULT: none
2098 LOC: Config.ssl_client.cafile
2099 TYPE: string
2100 DOC_START
2101 file containing CA certificates to use when verifying server
2102 certificates while proxying https:// URLs
2103 DOC_END
2104
2105 NAME: sslproxy_capath
2106 IFDEF: USE_SSL
2107 DEFAULT: none
2108 LOC: Config.ssl_client.capath
2109 TYPE: string
2110 DOC_START
2111 directory containing CA certificates to use when verifying
2112 server certificates while proxying https:// URLs
2113 DOC_END
2114
2115 NAME: ssl_bump
2116 IFDEF: USE_SSL
2117 TYPE: sslproxy_ssl_bump
2118 LOC: Config.accessList.ssl_bump
2119 DEFAULT: none
2120 DOC_START
2121 This option is consulted when a CONNECT request is received on
2122 an http_port (or a new connection is intercepted at an
2123 https_port), provided that port was configured with an ssl-bump
2124 flag. The subsequent data on the connection is either treated as
2125 HTTPS and decrypted OR tunneled at TCP level without decryption,
2126 depending on the first bumping "mode" which ACLs match.
2127
2128 ssl_bump <mode> [!]acl ...
2129
2130 The following bumping modes are supported:
2131
2132 client-first
2133 Allow bumping of the connection. Establish a secure connection
2134 with the client first, then connect to the server. This old mode
2135 does not allow Squid to mimic server SSL certificate and does
2136 not work with intercepted SSL connections.
2137
2138 server-first
2139 Allow bumping of the connection. Establish a secure connection
2140 with the server first, then establish a secure connection with
2141 the client, using a mimicked server certificate. Works with both
2142 CONNECT requests and intercepted SSL connections.
2143
2144 none
2145 Become a TCP tunnel without decoding the connection.
2146 Works with both CONNECT requests and intercepted SSL
2147 connections. This is the default behavior when no
2148 ssl_bump option is given or no ssl_bump ACLs match.
2149
2150 By default, no connections are bumped.
2151
2152 The first matching ssl_bump option wins. If no ACLs match, the
2153 connection is not bumped. Unlike most allow/deny ACL lists, ssl_bump
2154 does not have an implicit "negate the last given option" rule. You
2155 must make that rule explicit if you convert old ssl_bump allow/deny
2156 rules that rely on such an implicit rule.
2157
2158 This clause supports both fast and slow acl types.
2159 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
2160
2161 See also: http_port ssl-bump, https_port ssl-bump
2162
2163
2164 # Example: Bump all requests except those originating from
2165 # localhost and those going to example.com.
2166
2167 acl broken_sites dstdomain .example.com
2168 ssl_bump none localhost
2169 ssl_bump none broken_sites
2170 ssl_bump server-first all
2171 DOC_END
2172
2173 NAME: sslproxy_flags
2174 IFDEF: USE_SSL
2175 DEFAULT: none
2176 LOC: Config.ssl_client.flags
2177 TYPE: string
2178 DOC_START
2179 Various flags modifying the use of SSL while proxying https:// URLs:
2180 DONT_VERIFY_PEER Accept certificates that fail verification.
2181 For refined control, see sslproxy_cert_error.
2182 NO_DEFAULT_CA Don't use the default CA list built in
2183 to OpenSSL.
2184 DOC_END
2185
2186 NAME: sslproxy_cert_error
2187 IFDEF: USE_SSL
2188 DEFAULT: none
2189 LOC: Config.ssl_client.cert_error
2190 TYPE: acl_access
2191 DOC_START
2192 Use this ACL to bypass server certificate validation errors.
2193
2194 For example, the following lines will bypass all validation errors
2195 when talking to servers for example.com. All other
2196 validation errors will result in ERR_SECURE_CONNECT_FAIL error.
2197
2198 acl BrokenButTrustedServers dstdomain example.com
2199 sslproxy_cert_error allow BrokenButTrustedServers
2200 sslproxy_cert_error deny all
2201
2202 This clause only supports fast acl types.
2203 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
2204 Using slow acl types may result in server crashes
2205
2206 Without this option, all server certificate validation errors
2207 terminate the transaction. Bypassing validation errors is dangerous
2208 because an error usually implies that the server cannot be trusted and
2209 the connection may be insecure.
2210
2211 See also: sslproxy_flags and DONT_VERIFY_PEER.
2212
2213 Default setting: sslproxy_cert_error deny all
2214 DOC_END
2215
2216 NAME: sslproxy_cert_sign
2217 IFDEF: USE_SSL
2218 DEFAULT: none
2219 POSTSCRIPTUM: signUntrusted ssl::certUntrusted
2220 POSTSCRIPTUM: signSelf ssl::certSelfSigned
2221 POSTSCRIPTUM: signTrusted all
2222 TYPE: sslproxy_cert_sign
2223 LOC: Config.ssl_client.cert_sign
2224 DOC_START
2225
2226 sslproxy_cert_sign <signing algorithm> acl ...
2227
2228 The following certificate signing algorithms are supported:
2229 signTrusted
2230 Sign using the configured CA certificate which is usually
2231 placed in and trusted by end-user browsers. This is the
2232 default for trusted origin server certificates.
2233 signUntrusted
2234 Sign to guarantee an X509_V_ERR_CERT_UNTRUSTED browser error.
2235 This is the default for untrusted origin server certificates
2236 that are not self-signed (see ssl::certUntrusted).
2237 signSelf
2238 Sign using a self-signed certificate with the right CN to
2239 generate a X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT error in the
2240 browser. This is the default for self-signed origin server
2241 certificates (see ssl::certSelfSigned).
2242
2243 This clause only supports fast acl types.
2244
2245 When sslproxy_cert_sign acl(s) match, Squid uses the corresponding
2246 signing algorithm to generate the certificate and ignores all
2247 subsequent sslproxy_cert_sign options (the first match wins). If no
2248 acl(s) match, the default signing algorithm is determined by errors
2249 detected when obtaining and validating the origin server certificate.
2250
2251 WARNING: SQUID_X509_V_ERR_DOMAIN_MISMATCH and ssl:certDomainMismatch can
2252 be used with sslproxy_cert_adapt, but if and only if Squid is bumping a
2253 CONNECT request that carries a domain name. In all other cases (CONNECT
2254 to an IP address or an intercepted SSL connection), Squid cannot detect
2255 the domain mismatch at certificate generation time when
2256 bump-server-first is used.
2257 DOC_END
2258
2259 NAME: sslproxy_cert_adapt
2260 IFDEF: USE_SSL
2261 DEFAULT: none
2262 TYPE: sslproxy_cert_adapt
2263 LOC: Config.ssl_client.cert_adapt
2264 DOC_START
2265
2266 sslproxy_cert_adapt <adaptation algorithm> acl ...
2267
2268 The following certificate adaptation algorithms are supported:
2269 setValidAfter
2270 Sets the "Not After" property to the "Not After" property of
2271 the CA certificate used to sign generated certificates.
2272 setValidBefore
2273 Sets the "Not Before" property to the "Not Before" property of
2274 the CA certificate used to sign generated certificates.
2275 setCommonName or setCommonName{CN}
2276 Sets Subject.CN property to the host name specified as a
2277 CN parameter or, if no explicit CN parameter was specified,
2278 extracted from the CONNECT request. It is a misconfiguration
2279 to use setCommonName without an explicit parameter for
2280 intercepted or tproxied SSL connections.
2281
2282 This clause only supports fast acl types.
2283
2284 Squid first groups sslproxy_cert_adapt options by adaptation algorithm.
2285 Within a group, when sslproxy_cert_adapt acl(s) match, Squid uses the
2286 corresponding adaptation algorithm to generate the certificate and
2287 ignores all subsequent sslproxy_cert_adapt options in that algorithm's
2288 group (i.e., the first match wins within each algorithm group). If no
2289 acl(s) match, the default mimicking action takes place.
2290
2291 WARNING: SQUID_X509_V_ERR_DOMAIN_MISMATCH and ssl:certDomainMismatch can
2292 be used with sslproxy_cert_adapt, but if and only if Squid is bumping a
2293 CONNECT request that carries a domain name. In all other cases (CONNECT
2294 to an IP address or an intercepted SSL connection), Squid cannot detect
2295 the domain mismatch at certificate generation time when
2296 bump-server-first is used.
2297 DOC_END
2298
2299 NAME: sslpassword_program
2300 IFDEF: USE_SSL
2301 DEFAULT: none
2302 LOC: Config.Program.ssl_password
2303 TYPE: string
2304 DOC_START
2305 Specify a program used for entering SSL key passphrases
2306 when using encrypted SSL certificate keys. If not specified
2307 keys must either be unencrypted, or Squid started with the -N
2308 option to allow it to query interactively for the passphrase.
2309
2310 The key file name is given as argument to the program allowing
2311 selection of the right password if you have multiple encrypted
2312 keys.
2313 DOC_END
2314
2315 COMMENT_START
2316 OPTIONS RELATING TO EXTERNAL SSL_CRTD
2317 -----------------------------------------------------------------------------
2318 COMMENT_END
2319
2320 NAME: sslcrtd_program
2321 TYPE: eol
2322 IFDEF: USE_SSL_CRTD
2323 DEFAULT: @DEFAULT_SSL_CRTD@ -s @DEFAULT_SSL_DB_DIR@ -M 4MB
2324 LOC: Ssl::TheConfig.ssl_crtd
2325 DOC_START
2326 Specify the location and options of the executable for ssl_crtd process.
2327 @DEFAULT_SSL_CRTD@ program requires -s and -M parameters
2328 For more information use:
2329 @DEFAULT_SSL_CRTD@ -h
2330 DOC_END
2331
2332 NAME: sslcrtd_children
2333 TYPE: HelperChildConfig
2334 IFDEF: USE_SSL_CRTD
2335 DEFAULT: 32 startup=5 idle=1
2336 LOC: Ssl::TheConfig.ssl_crtdChildren
2337 DOC_START
2338 The maximum number of processes spawn to service ssl server.
2339 The maximum this may be safely set to is 32.
2340
2341 The startup= and idle= options allow some measure of skew in your
2342 tuning.
2343
2344 startup=N
2345
2346 Sets the minimum number of processes to spawn when Squid
2347 starts or reconfigures. When set to zero the first request will
2348 cause spawning of the first child process to handle it.
2349
2350 Starting too few children temporary slows Squid under load while it
2351 tries to spawn enough additional processes to cope with traffic.
2352
2353 idle=N
2354
2355 Sets a minimum of how many processes Squid is to try and keep available
2356 at all times. When traffic begins to rise above what the existing
2357 processes can handle this many more will be spawned up to the maximum
2358 configured. A minimum setting of 1 is required.
2359
2360 You must have at least one ssl_crtd process.
2361 DOC_END
2362
2363 NAME: sslcrtvalidator_program
2364 TYPE: eol
2365 IFDEF: USE_SSL
2366 DEFAULT: none
2367 LOC: Ssl::TheConfig.ssl_crt_validator
2368 DOC_START
2369 Specify the location and options of the executable for ssl_crt_validator
2370 process.
2371 DOC_END
2372
2373 NAME: sslcrtvalidator_children
2374 TYPE: HelperChildConfig
2375 IFDEF: USE_SSL
2376 DEFAULT: 32 startup=5 idle=1
2377 LOC: Ssl::TheConfig.ssl_crt_validator_Children
2378 DOC_START
2379 The maximum number of processes spawn to service ssl server.
2380 The maximum this may be safely set to is 32.
2381
2382 The startup= and idle= options allow some measure of skew in your
2383 tuning.
2384
2385 startup=N
2386
2387 Sets the minimum number of processes to spawn when Squid
2388 starts or reconfigures. When set to zero the first request will
2389 cause spawning of the first child process to handle it.
2390
2391 Starting too few children temporary slows Squid under load while it
2392 tries to spawn enough additional processes to cope with traffic.
2393
2394 idle=N
2395
2396 Sets a minimum of how many processes Squid is to try and keep available
2397 at all times. When traffic begins to rise above what the existing
2398 processes can handle this many more will be spawned up to the maximum
2399 configured. A minimum setting of 1 is required.
2400
2401 You must have at least one ssl_crt_validator process.
2402 DOC_END
2403
2404 COMMENT_START
2405 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
2406 -----------------------------------------------------------------------------
2407 COMMENT_END
2408
2409 NAME: cache_peer
2410 TYPE: peer
2411 DEFAULT: none
2412 LOC: Config.peers
2413 DOC_START
2414 To specify other caches in a hierarchy, use the format:
2415
2416 cache_peer hostname type http-port icp-port [options]
2417
2418 For example,
2419
2420 # proxy icp
2421 # hostname type port port options
2422 # -------------------- -------- ----- ----- -----------
2423 cache_peer parent.foo.net parent 3128 3130 default
2424 cache_peer sib1.foo.net sibling 3128 3130 proxy-only
2425 cache_peer sib2.foo.net sibling 3128 3130 proxy-only
2426 cache_peer example.com parent 80 0 default
2427 cache_peer cdn.example.com sibling 3128 0
2428
2429 type: either 'parent', 'sibling', or 'multicast'.
2430
2431 proxy-port: The port number where the peer accept HTTP requests.
2432 For other Squid proxies this is usually 3128
2433 For web servers this is usually 80
2434
2435 icp-port: Used for querying neighbor caches about objects.
2436 Set to 0 if the peer does not support ICP or HTCP.
2437 See ICP and HTCP options below for additional details.
2438
2439
2440 ==== ICP OPTIONS ====
2441
2442 You MUST also set icp_port and icp_access explicitly when using these options.
2443 The defaults will prevent peer traffic using ICP.
2444
2445
2446 no-query Disable ICP queries to this neighbor.
2447
2448 multicast-responder
2449 Indicates the named peer is a member of a multicast group.
2450 ICP queries will not be sent directly to the peer, but ICP
2451 replies will be accepted from it.
2452
2453 closest-only Indicates that, for ICP_OP_MISS replies, we'll only forward
2454 CLOSEST_PARENT_MISSes and never FIRST_PARENT_MISSes.
2455
2456 background-ping
2457 To only send ICP queries to this neighbor infrequently.
2458 This is used to keep the neighbor round trip time updated
2459 and is usually used in conjunction with weighted-round-robin.
2460
2461
2462 ==== HTCP OPTIONS ====
2463
2464 You MUST also set htcp_port and htcp_access explicitly when using these options.
2465 The defaults will prevent peer traffic using HTCP.
2466
2467
2468 htcp Send HTCP, instead of ICP, queries to the neighbor.
2469 You probably also want to set the "icp-port" to 4827
2470 instead of 3130. This directive accepts a comma separated
2471 list of options described below.
2472
2473 htcp=oldsquid Send HTCP to old Squid versions (2.5 or earlier).
2474
2475 htcp=no-clr Send HTCP to the neighbor but without
2476 sending any CLR requests. This cannot be used with
2477 only-clr.
2478
2479 htcp=only-clr Send HTCP to the neighbor but ONLY CLR requests.
2480 This cannot be used with no-clr.
2481
2482 htcp=no-purge-clr
2483 Send HTCP to the neighbor including CLRs but only when
2484 they do not result from PURGE requests.
2485
2486 htcp=forward-clr
2487 Forward any HTCP CLR requests this proxy receives to the peer.
2488
2489
2490 ==== PEER SELECTION METHODS ====
2491
2492 The default peer selection method is ICP, with the first responding peer
2493 being used as source. These options can be used for better load balancing.
2494
2495
2496 default This is a parent cache which can be used as a "last-resort"
2497 if a peer cannot be located by any of the peer-selection methods.
2498 If specified more than once, only the first is used.
2499
2500 round-robin Load-Balance parents which should be used in a round-robin
2501 fashion in the absence of any ICP queries.
2502 weight=N can be used to add bias.
2503
2504 weighted-round-robin
2505 Load-Balance parents which should be used in a round-robin
2506 fashion with the frequency of each parent being based on the
2507 round trip time. Closer parents are used more often.
2508 Usually used for background-ping parents.
2509 weight=N can be used to add bias.
2510
2511 carp Load-Balance parents which should be used as a CARP array.
2512 The requests will be distributed among the parents based on the
2513 CARP load balancing hash function based on their weight.
2514
2515 userhash Load-balance parents based on the client proxy_auth or ident username.
2516
2517 sourcehash Load-balance parents based on the client source IP.
2518
2519 multicast-siblings
2520 To be used only for cache peers of type "multicast".
2521 ALL members of this multicast group have "sibling"
2522 relationship with it, not "parent". This is to a multicast
2523 group when the requested object would be fetched only from
2524 a "parent" cache, anyway. It's useful, e.g., when
2525 configuring a pool of redundant Squid proxies, being
2526 members of the same multicast group.
2527
2528
2529 ==== PEER SELECTION OPTIONS ====
2530
2531 weight=N use to affect the selection of a peer during any weighted
2532 peer-selection mechanisms.
2533 The weight must be an integer; default is 1,
2534 larger weights are favored more.
2535 This option does not affect parent selection if a peering
2536 protocol is not in use.
2537
2538 basetime=N Specify a base amount to be subtracted from round trip
2539 times of parents.
2540 It is subtracted before division by weight in calculating
2541 which parent to fectch from. If the rtt is less than the
2542 base time the rtt is set to a minimal value.
2543
2544 ttl=N Specify a TTL to use when sending multicast ICP queries
2545 to this address.
2546 Only useful when sending to a multicast group.
2547 Because we don't accept ICP replies from random
2548 hosts, you must configure other group members as
2549 peers with the 'multicast-responder' option.
2550
2551 no-delay To prevent access to this neighbor from influencing the
2552 delay pools.
2553
2554 digest-url=URL Tell Squid to fetch the cache digest (if digests are
2555 enabled) for this host from the specified URL rather
2556 than the Squid default location.
2557
2558
2559 ==== CARP OPTIONS ====
2560
2561 carp-key=key-specification
2562 use a different key than the full URL to hash against the peer.
2563 the key-specification is a comma-separated list of the keywords
2564 scheme, host, port, path, params
2565 Order is not important.
2566
2567 ==== ACCELERATOR / REVERSE-PROXY OPTIONS ====
2568
2569 originserver Causes this parent to be contacted as an origin server.
2570 Meant to be used in accelerator setups when the peer
2571 is a web server.
2572
2573 forceddomain=name
2574 Set the Host header of requests forwarded to this peer.
2575 Useful in accelerator setups where the server (peer)
2576 expects a certain domain name but clients may request
2577 others. ie example.com or www.example.com
2578
2579 no-digest Disable request of cache digests.
2580
2581 no-netdb-exchange
2582 Disables requesting ICMP RTT database (NetDB).
2583
2584
2585 ==== AUTHENTICATION OPTIONS ====
2586
2587 login=user:password
2588 If this is a personal/workgroup proxy and your parent
2589 requires proxy authentication.
2590
2591 Note: The string can include URL escapes (i.e. %20 for
2592 spaces). This also means % must be written as %%.
2593
2594 login=PASSTHRU
2595 Send login details received from client to this peer.
2596 Both Proxy- and WWW-Authorization headers are passed
2597 without alteration to the peer.
2598 Authentication is not required by Squid for this to work.
2599
2600 Note: This will pass any form of authentication but
2601 only Basic auth will work through a proxy unless the
2602 connection-auth options are also used.
2603
2604 login=PASS Send login details received from client to this peer.
2605 Authentication is not required by this option.
2606
2607 If there are no client-provided authentication headers
2608 to pass on, but username and password are available
2609 from an external ACL user= and password= result tags
2610 they may be sent instead.
2611
2612 Note: To combine this with proxy_auth both proxies must
2613 share the same user database as HTTP only allows for
2614 a single login (one for proxy, one for origin server).
2615 Also be warned this will expose your users proxy
2616 password to the peer. USE WITH CAUTION
2617
2618 login=*:password
2619 Send the username to the upstream cache, but with a
2620 fixed password. This is meant to be used when the peer
2621 is in another administrative domain, but it is still
2622 needed to identify each user.
2623 The star can optionally be followed by some extra
2624 information which is added to the username. This can
2625 be used to identify this proxy to the peer, similar to
2626 the login=username:password option above.
2627
2628 login=NEGOTIATE
2629 If this is a personal/workgroup proxy and your parent
2630 requires a secure proxy authentication.
2631 The first principal from the default keytab or defined by
2632 the environment variable KRB5_KTNAME will be used.
2633
2634 WARNING: The connection may transmit requests from multiple
2635 clients. Negotiate often assumes end-to-end authentication
2636 and a single-client. Which is not strictly true here.
2637
2638 login=NEGOTIATE:principal_name
2639 If this is a personal/workgroup proxy and your parent
2640 requires a secure proxy authentication.
2641 The principal principal_name from the default keytab or
2642 defined by the environment variable KRB5_KTNAME will be
2643 used.
2644
2645 WARNING: The connection may transmit requests from multiple
2646 clients. Negotiate often assumes end-to-end authentication
2647 and a single-client. Which is not strictly true here.
2648
2649 connection-auth=on|off
2650 Tell Squid that this peer does or not support Microsoft
2651 connection oriented authentication, and any such
2652 challenges received from there should be ignored.
2653 Default is auto to automatically determine the status
2654 of the peer.
2655
2656
2657 ==== SSL / HTTPS / TLS OPTIONS ====
2658
2659 ssl Encrypt connections to this peer with SSL/TLS.
2660
2661 sslcert=/path/to/ssl/certificate
2662 A client SSL certificate to use when connecting to
2663 this peer.
2664
2665 sslkey=/path/to/ssl/key
2666 The private SSL key corresponding to sslcert above.
2667 If 'sslkey' is not specified 'sslcert' is assumed to
2668 reference a combined file containing both the
2669 certificate and the key.
2670
2671 sslversion=1|2|3|4|5|6
2672 The SSL version to use when connecting to this peer
2673 1 = automatic (default)
2674 2 = SSL v2 only
2675 3 = SSL v3 only
2676 4 = TLS v1.0 only
2677 5 = TLS v1.1 only
2678 6 = TLS v1.2 only
2679
2680 sslcipher=... The list of valid SSL ciphers to use when connecting
2681 to this peer.
2682
2683 ssloptions=... Specify various SSL implementation options:
2684
2685 NO_SSLv2 Disallow the use of SSLv2
2686 NO_SSLv3 Disallow the use of SSLv3
2687 NO_TLSv1 Disallow the use of TLSv1.0
2688 NO_TLSv1_1 Disallow the use of TLSv1.1
2689 NO_TLSv1_2 Disallow the use of TLSv1.2
2690 SINGLE_DH_USE
2691 Always create a new key when using
2692 temporary/ephemeral DH key exchanges
2693 ALL Enable various bug workarounds
2694 suggested as "harmless" by OpenSSL
2695 Be warned that this reduces SSL/TLS
2696 strength to some attacks.
2697
2698 See the OpenSSL SSL_CTX_set_options documentation for a
2699 more complete list.
2700
2701 sslcafile=... A file containing additional CA certificates to use
2702 when verifying the peer certificate.
2703
2704 sslcapath=... A directory containing additional CA certificates to
2705 use when verifying the peer certificate.
2706
2707 sslcrlfile=... A certificate revocation list file to use when
2708 verifying the peer certificate.
2709
2710 sslflags=... Specify various flags modifying the SSL implementation:
2711
2712 DONT_VERIFY_PEER
2713 Accept certificates even if they fail to
2714 verify.
2715 NO_DEFAULT_CA
2716 Don't use the default CA list built in
2717 to OpenSSL.
2718 DONT_VERIFY_DOMAIN
2719 Don't verify the peer certificate
2720 matches the server name
2721
2722 ssldomain= The peer name as advertised in it's certificate.
2723 Used for verifying the correctness of the received peer
2724 certificate. If not specified the peer hostname will be
2725 used.
2726
2727 front-end-https
2728 Enable the "Front-End-Https: On" header needed when
2729 using Squid as a SSL frontend in front of Microsoft OWA.
2730 See MS KB document Q307347 for details on this header.
2731 If set to auto the header will only be added if the
2732 request is forwarded as a https:// URL.
2733
2734
2735 ==== GENERAL OPTIONS ====
2736
2737 connect-timeout=N
2738 A peer-specific connect timeout.
2739 Also see the peer_connect_timeout directive.
2740
2741 connect-fail-limit=N
2742 How many times connecting to a peer must fail before
2743 it is marked as down. Default is 10.
2744
2745 allow-miss Disable Squid's use of only-if-cached when forwarding
2746 requests to siblings. This is primarily useful when
2747 icp_hit_stale is used by the sibling. To extensive use
2748 of this option may result in forwarding loops, and you
2749 should avoid having two-way peerings with this option.
2750 For example to deny peer usage on requests from peer
2751 by denying cache_peer_access if the source is a peer.
2752
2753 max-conn=N Limit the amount of connections Squid may open to this
2754 peer. see also
2755
2756 name=xxx Unique name for the peer.
2757 Required if you have multiple peers on the same host
2758 but different ports.
2759 This name can be used in cache_peer_access and similar
2760 directives to dentify the peer.
2761 Can be used by outgoing access controls through the
2762 peername ACL type.
2763
2764 no-tproxy Do not use the client-spoof TPROXY support when forwarding
2765 requests to this peer. Use normal address selection instead.
2766
2767 proxy-only objects fetched from the peer will not be stored locally.
2768
2769 DOC_END
2770
2771 NAME: cache_peer_domain cache_host_domain
2772 TYPE: hostdomain
2773 DEFAULT: none
2774 LOC: none
2775 DOC_START
2776 Use to limit the domains for which a neighbor cache will be
2777 queried. Usage:
2778
2779 cache_peer_domain cache-host domain [domain ...]
2780 cache_peer_domain cache-host !domain
2781
2782 For example, specifying
2783
2784 cache_peer_domain parent.foo.net .edu
2785
2786 has the effect such that UDP query packets are sent to
2787 'bigserver' only when the requested object exists on a
2788 server in the .edu domain. Prefixing the domainname
2789 with '!' means the cache will be queried for objects
2790 NOT in that domain.
2791
2792 NOTE: * Any number of domains may be given for a cache-host,
2793 either on the same or separate lines.
2794 * When multiple domains are given for a particular
2795 cache-host, the first matched domain is applied.
2796 * Cache hosts with no domain restrictions are queried
2797 for all requests.
2798 * There are no defaults.
2799 * There is also a 'cache_peer_access' tag in the ACL
2800 section.
2801 DOC_END
2802
2803 NAME: cache_peer_access
2804 TYPE: peer_access
2805 DEFAULT: none
2806 LOC: none
2807 DOC_START
2808 Similar to 'cache_peer_domain' but provides more flexibility by
2809 using ACL elements.
2810
2811 cache_peer_access cache-host allow|deny [!]aclname ...
2812
2813 The syntax is identical to 'http_access' and the other lists of
2814 ACL elements. See the comments for 'http_access' below, or
2815 the Squid FAQ (http://wiki.squid-cache.org/SquidFaq/SquidAcl).
2816 DOC_END
2817
2818 NAME: neighbor_type_domain
2819 TYPE: hostdomaintype
2820 DEFAULT: none
2821 LOC: none
2822 DOC_START
2823 usage: neighbor_type_domain neighbor parent|sibling domain domain ...
2824
2825 Modifying the neighbor type for specific domains is now
2826 possible. You can treat some domains differently than the
2827 default neighbor type specified on the 'cache_peer' line.
2828 Normally it should only be necessary to list domains which
2829 should be treated differently because the default neighbor type
2830 applies for hostnames which do not match domains listed here.
2831
2832 EXAMPLE:
2833 cache_peer cache.foo.org parent 3128 3130
2834 neighbor_type_domain cache.foo.org sibling .com .net
2835 neighbor_type_domain cache.foo.org sibling .au .de
2836 DOC_END
2837
2838 NAME: dead_peer_timeout
2839 COMMENT: (seconds)
2840 DEFAULT: 10 seconds
2841 TYPE: time_t
2842 LOC: Config.Timeout.deadPeer
2843 DOC_START
2844 This controls how long Squid waits to declare a peer cache
2845 as "dead." If there are no ICP replies received in this
2846 amount of time, Squid will declare the peer dead and not
2847 expect to receive any further ICP replies. However, it
2848 continues to send ICP queries, and will mark the peer as
2849 alive upon receipt of the first subsequent ICP reply.
2850
2851 This timeout also affects when Squid expects to receive ICP
2852 replies from peers. If more than 'dead_peer' seconds have
2853 passed since the last ICP reply was received, Squid will not
2854 expect to receive an ICP reply on the next query. Thus, if
2855 your time between requests is greater than this timeout, you
2856 will see a lot of requests sent DIRECT to origin servers
2857 instead of to your parents.
2858 DOC_END
2859
2860 NAME: forward_max_tries
2861 DEFAULT: 10
2862 TYPE: int
2863 LOC: Config.forward_max_tries
2864 DOC_START
2865 Controls how many different forward paths Squid will try
2866 before giving up. See also forward_timeout.
2867
2868 NOTE: connect_retries (default: none) can make each of these
2869 possible forwarding paths be tried multiple times.
2870 DOC_END
2871
2872 NAME: hierarchy_stoplist
2873 TYPE: wordlist
2874 DEFAULT: none
2875 LOC: Config.hierarchy_stoplist
2876 DOC_START
2877 A list of words which, if found in a URL, cause the object to
2878 be handled directly by this cache. In other words, use this
2879 to not query neighbor caches for certain objects. You may
2880 list this option multiple times.
2881
2882 Example:
2883 hierarchy_stoplist cgi-bin ?
2884
2885 Note: never_direct overrides this option.
2886 DOC_END
2887
2888 COMMENT_START
2889 MEMORY CACHE OPTIONS
2890 -----------------------------------------------------------------------------
2891 COMMENT_END
2892
2893 NAME: cache_mem
2894 COMMENT: (bytes)
2895 TYPE: b_size_t
2896 DEFAULT: 256 MB
2897 LOC: Config.memMaxSize
2898 DOC_START
2899 NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE.
2900 IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL
2901 USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER
2902 THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS.
2903
2904 'cache_mem' specifies the ideal amount of memory to be used
2905 for:
2906 * In-Transit objects
2907 * Hot Objects
2908 * Negative-Cached objects
2909
2910 Data for these objects are stored in 4 KB blocks. This
2911 parameter specifies the ideal upper limit on the total size of
2912 4 KB blocks allocated. In-Transit objects take the highest
2913 priority.
2914
2915 In-transit objects have priority over the others. When
2916 additional space is needed for incoming data, negative-cached
2917 and hot objects will be released. In other words, the
2918 negative-cached and hot objects will fill up any unused space
2919 not needed for in-transit objects.
2920
2921 If circumstances require, this limit will be exceeded.
2922 Specifically, if your incoming request rate requires more than
2923 'cache_mem' of memory to hold in-transit objects, Squid will
2924 exceed this limit to satisfy the new requests. When the load
2925 decreases, blocks will be freed until the high-water mark is
2926 reached. Thereafter, blocks will be used to store hot
2927 objects.
2928
2929 If shared memory caching is enabled, Squid does not use the shared
2930 cache space for in-transit objects, but they still consume as much
2931 local memory as they need. For more details about the shared memory
2932 cache, see memory_cache_shared.
2933 DOC_END
2934
2935 NAME: maximum_object_size_in_memory
2936 COMMENT: (bytes)
2937 TYPE: b_size_t
2938 DEFAULT: 512 KB
2939 LOC: Config.Store.maxInMemObjSize
2940 DOC_START
2941 Objects greater than this size will not be attempted to kept in
2942 the memory cache. This should be set high enough to keep objects
2943 accessed frequently in memory to improve performance whilst low
2944 enough to keep larger objects from hoarding cache_mem.
2945 DOC_END
2946
2947 NAME: memory_cache_shared
2948 COMMENT: on|off
2949 TYPE: YesNoNone
2950 LOC: Config.memShared
2951 DEFAULT: none
2952 DEFAULT_DOC: "on" where supported if doing memory caching with multiple SMP workers.
2953 DOC_START
2954 Controls whether the memory cache is shared among SMP workers.
2955
2956 The shared memory cache is meant to occupy cache_mem bytes and replace
2957 the non-shared memory cache, although some entities may still be
2958 cached locally by workers for now (e.g., internal and in-transit
2959 objects may be served from a local memory cache even if shared memory
2960 caching is enabled).
2961
2962 By default, the memory cache is shared if and only if all of the
2963 following conditions are satisfied: Squid runs in SMP mode with
2964 multiple workers, cache_mem is positive, and Squid environment
2965 supports required IPC primitives (e.g., POSIX shared memory segments
2966 and GCC-style atomic operations).
2967
2968 To avoid blocking locks, shared memory uses opportunistic algorithms
2969 that do not guarantee that every cachable entity that could have been
2970 shared among SMP workers will actually be shared.
2971
2972 Currently, entities exceeding 32KB in size cannot be shared.
2973 DOC_END
2974
2975 NAME: memory_cache_mode
2976 TYPE: memcachemode
2977 LOC: Config
2978 DEFAULT: always
2979 DOC_START
2980 Controls which objects to keep in the memory cache (cache_mem)
2981
2982 always Keep most recently fetched objects in memory (default)
2983
2984 disk Only disk cache hits are kept in memory, which means
2985 an object must first be cached on disk and then hit
2986 a second time before cached in memory.
2987
2988 network Only objects fetched from network is kept in memory
2989 DOC_END
2990
2991 NAME: memory_replacement_policy
2992 TYPE: removalpolicy
2993 LOC: Config.memPolicy
2994 DEFAULT: lru
2995 DOC_START
2996 The memory replacement policy parameter determines which
2997 objects are purged from memory when memory space is needed.
2998
2999 See cache_replacement_policy for details.
3000 DOC_END
3001
3002 COMMENT_START
3003 DISK CACHE OPTIONS
3004 -----------------------------------------------------------------------------
3005 COMMENT_END
3006
3007 NAME: cache_replacement_policy
3008 TYPE: removalpolicy
3009 LOC: Config.replPolicy
3010 DEFAULT: lru
3011 DOC_START
3012 The cache replacement policy parameter determines which
3013 objects are evicted (replaced) when disk space is needed.
3014
3015 lru : Squid's original list based LRU policy
3016 heap GDSF : Greedy-Dual Size Frequency
3017 heap LFUDA: Least Frequently Used with Dynamic Aging
3018 heap LRU : LRU policy implemented using a heap
3019
3020 Applies to any cache_dir lines listed below this.
3021
3022 The LRU policies keeps recently referenced objects.
3023
3024 The heap GDSF policy optimizes object hit rate by keeping smaller
3025 popular objects in cache so it has a better chance of getting a
3026 hit. It achieves a lower byte hit rate than LFUDA though since
3027 it evicts larger (possibly popular) objects.
3028
3029 The heap LFUDA policy keeps popular objects in cache regardless of
3030 their size and thus optimizes byte hit rate at the expense of
3031 hit rate since one large, popular object will prevent many
3032 smaller, slightly less popular objects from being cached.
3033
3034 Both policies utilize a dynamic aging mechanism that prevents
3035 cache pollution that can otherwise occur with frequency-based
3036 replacement policies.
3037
3038 NOTE: if using the LFUDA replacement policy you should increase
3039 the value of maximum_object_size above its default of 4096 KB to
3040 to maximize the potential byte hit rate improvement of LFUDA.
3041
3042 For more information about the GDSF and LFUDA cache replacement
3043 policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
3044 and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html.
3045 DOC_END
3046
3047 NAME: cache_dir
3048 TYPE: cachedir
3049 DEFAULT: none
3050 LOC: Config.cacheSwap
3051 DOC_START
3052 Usage:
3053
3054 cache_dir Type Directory-Name Fs-specific-data [options]
3055
3056 You can specify multiple cache_dir lines to spread the
3057 cache among different disk partitions.
3058
3059 Type specifies the kind of storage system to use. Only "ufs"
3060 is built by default. To enable any of the other storage systems
3061 see the --enable-storeio configure option.
3062
3063 'Directory' is a top-level directory where cache swap
3064 files will be stored. If you want to use an entire disk
3065 for caching, this can be the mount-point directory.
3066 The directory must exist and be writable by the Squid
3067 process. Squid will NOT create this directory for you.
3068
3069 In SMP configurations, cache_dir must not precede the workers option
3070 and should use configuration macros or conditionals to give each
3071 worker interested in disk caching a dedicated cache directory.
3072
3073 The ufs store type:
3074
3075 "ufs" is the old well-known Squid storage format that has always
3076 been there.
3077
3078 cache_dir ufs Directory-Name Mbytes L1 L2 [options]
3079
3080 'Mbytes' is the amount of disk space (MB) to use under this
3081 directory. The default is 100 MB. Change this to suit your
3082 configuration. Do NOT put the size of your disk drive here.
3083 Instead, if you want Squid to use the entire disk drive,
3084 subtract 20% and use that value.
3085
3086 'L1' is the number of first-level subdirectories which
3087 will be created under the 'Directory'. The default is 16.
3088
3089 'L2' is the number of second-level subdirectories which
3090 will be created under each first-level directory. The default
3091 is 256.
3092
3093 The aufs store type:
3094
3095 "aufs" uses the same storage format as "ufs", utilizing
3096 POSIX-threads to avoid blocking the main Squid process on
3097 disk-I/O. This was formerly known in Squid as async-io.
3098
3099 cache_dir aufs Directory-Name Mbytes L1 L2 [options]
3100
3101 see argument descriptions under ufs above
3102
3103 The diskd store type:
3104
3105 "diskd" uses the same storage format as "ufs", utilizing a
3106 separate process to avoid blocking the main Squid process on
3107 disk-I/O.
3108
3109 cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
3110
3111 see argument descriptions under ufs above
3112
3113 Q1 specifies the number of unacknowledged I/O requests when Squid
3114 stops opening new files. If this many messages are in the queues,
3115 Squid won't open new files. Default is 64
3116
3117 Q2 specifies the number of unacknowledged messages when Squid
3118 starts blocking. If this many messages are in the queues,
3119 Squid blocks until it receives some replies. Default is 72
3120
3121 When Q1 < Q2 (the default), the cache directory is optimized
3122 for lower response time at the expense of a decrease in hit
3123 ratio. If Q1 > Q2, the cache directory is optimized for
3124 higher hit ratio at the expense of an increase in response
3125 time.
3126
3127 The rock store type:
3128
3129 cache_dir rock Directory-Name Mbytes <max-size=bytes> [options]
3130
3131 The Rock Store type is a database-style storage. All cached
3132 entries are stored in a "database" file, using fixed-size slots,
3133 one entry per slot. The database size is specified in MB. The
3134 slot size is specified in bytes using the max-size option. See
3135 below for more info on the max-size option.
3136
3137 swap-timeout=msec: Squid will not start writing a miss to or
3138 reading a hit from disk if it estimates that the swap operation
3139 will take more than the specified number of milliseconds. By
3140 default and when set to zero, disables the disk I/O time limit
3141 enforcement. Ignored when using blocking I/O module because
3142 blocking synchronous I/O does not allow Squid to estimate the
3143 expected swap wait time.
3144
3145 max-swap-rate=swaps/sec: Artificially limits disk access using
3146 the specified I/O rate limit. Swap out requests that
3147 would cause the average I/O rate to exceed the limit are
3148 delayed. Individual swap in requests (i.e., hits or reads) are
3149 not delayed, but they do contribute to measured swap rate and
3150 since they are placed in the same FIFO queue as swap out
3151 requests, they may wait longer if max-swap-rate is smaller.
3152 This is necessary on file systems that buffer "too
3153 many" writes and then start blocking Squid and other processes
3154 while committing those writes to disk. Usually used together
3155 with swap-timeout to avoid excessive delays and queue overflows
3156 when disk demand exceeds available disk "bandwidth". By default
3157 and when set to zero, disables the disk I/O rate limit
3158 enforcement. Currently supported by IpcIo module only.
3159
3160
3161 The coss store type:
3162
3163 NP: COSS filesystem in Squid-3 has been deemed too unstable for
3164 production use and has thus been removed from this release.
3165 We hope that it can be made usable again soon.
3166
3167 block-size=n defines the "block size" for COSS cache_dir's.
3168 Squid uses file numbers as block numbers. Since file numbers
3169 are limited to 24 bits, the block size determines the maximum
3170 size of the COSS partition. The default is 512 bytes, which
3171 leads to a maximum cache_dir size of 512<<24, or 8 GB. Note
3172 you should not change the coss block size after Squid
3173 has written some objects to the cache_dir.
3174
3175 The coss file store has changed from 2.5. Now it uses a file
3176 called 'stripe' in the directory names in the config - and
3177 this will be created by squid -z.
3178
3179 Common options:
3180
3181 no-store, no new objects should be stored to this cache_dir
3182
3183 min-size=n, refers to the min object size in bytes this cache_dir
3184 will accept. It's used to restrict a cache_dir to only store
3185 large objects (e.g. aufs) while other storedirs are optimized
3186 for smaller objects (e.g. COSS). Defaults to 0.
3187
3188 max-size=n, refers to the max object size in bytes this cache_dir
3189 supports. It is used to select the cache_dir to store the object.
3190 Note: To make optimal use of the max-size limits you should order
3191 the cache_dir lines with the smallest max-size value first and the
3192 ones with no max-size specification last.
3193
3194 Note for coss, max-size must be less than COSS_MEMBUF_SZ,
3195 which can be changed with the --with-coss-membuf-size=N configure
3196 option.
3197 NOCOMMENT_START
3198
3199 # Uncomment and adjust the following to add a disk cache directory.
3200 #cache_dir ufs @DEFAULT_SWAP_DIR@ 100 16 256
3201 NOCOMMENT_END
3202 DOC_END
3203
3204 NAME: store_dir_select_algorithm
3205 TYPE: string
3206 LOC: Config.store_dir_select_algorithm
3207 DEFAULT: least-load
3208 DOC_START
3209 Set this to 'round-robin' as an alternative.
3210 DOC_END
3211
3212 NAME: max_open_disk_fds
3213 TYPE: int
3214 LOC: Config.max_open_disk_fds
3215 DEFAULT: 0
3216 DOC_START
3217 To avoid having disk as the I/O bottleneck Squid can optionally
3218 bypass the on-disk cache if more than this amount of disk file
3219 descriptors are open.
3220
3221 A value of 0 indicates no limit.
3222 DOC_END
3223
3224 NAME: minimum_object_size
3225 COMMENT: (bytes)
3226 TYPE: b_int64_t
3227 DEFAULT: 0 KB
3228 LOC: Config.Store.minObjectSize
3229 DOC_START
3230 Objects smaller than this size will NOT be saved on disk. The
3231 value is specified in kilobytes, and the default is 0 KB, which
3232 means there is no minimum.
3233 DOC_END
3234
3235 NAME: maximum_object_size
3236 COMMENT: (bytes)
3237 TYPE: b_int64_t
3238 DEFAULT: 4096 KB
3239 LOC: Config.Store.maxObjectSize
3240 DOC_START
3241 Objects larger than this size will NOT be saved on disk. The
3242 value is specified in kilobytes, and the default is 4MB. If
3243 you wish to get a high BYTES hit ratio, you should probably
3244 increase this (one 32 MB object hit counts for 3200 10KB
3245 hits). If you wish to increase speed more than your want to
3246 save bandwidth you should leave this low.
3247
3248 NOTE: if using the LFUDA replacement policy you should increase
3249 this value to maximize the byte hit rate improvement of LFUDA!
3250 See replacement_policy below for a discussion of this policy.
3251 DOC_END
3252
3253 NAME: cache_swap_low
3254 COMMENT: (percent, 0-100)
3255 TYPE: int
3256 DEFAULT: 90
3257 LOC: Config.Swap.lowWaterMark
3258 DOC_NONE
3259
3260 NAME: cache_swap_high
3261 COMMENT: (percent, 0-100)
3262 TYPE: int
3263 DEFAULT: 95
3264 LOC: Config.Swap.highWaterMark
3265 DOC_START
3266
3267 The low- and high-water marks for cache object replacement.
3268 Replacement begins when the swap (disk) usage is above the
3269 low-water mark and attempts to maintain utilization near the
3270 low-water mark. As swap utilization gets close to high-water
3271 mark object eviction becomes more aggressive. If utilization is
3272 close to the low-water mark less replacement is done each time.
3273
3274 Defaults are 90% and 95%. If you have a large cache, 5% could be
3275 hundreds of MB. If this is the case you may wish to set these
3276 numbers closer together.
3277 DOC_END
3278
3279 COMMENT_START
3280 LOGFILE OPTIONS
3281 -----------------------------------------------------------------------------
3282 COMMENT_END
3283
3284 NAME: logformat
3285 TYPE: logformat
3286 LOC: Log::TheConfig
3287 DEFAULT: none
3288 DOC_START
3289 Usage:
3290
3291 logformat <name> <format specification>
3292
3293 Defines an access log format.
3294
3295 The <format specification> is a string with embedded % format codes
3296
3297 % format codes all follow the same basic structure where all but
3298 the formatcode is optional. Output strings are automatically escaped
3299 as required according to their context and the output format
3300 modifiers are usually not needed, but can be specified if an explicit
3301 output format is desired.
3302
3303 % ["|[|'|#] [-] [[0]width] [{argument}] formatcode
3304
3305 " output in quoted string format
3306 [ output in squid text log format as used by log_mime_hdrs
3307 # output in URL quoted format
3308 ' output as-is
3309
3310 - left aligned
3311
3312 width minimum and/or maximum field width:
3313 [width_min][.width_max]
3314 When minimum starts with 0, the field is zero-padded.
3315 String values exceeding maximum width are truncated.
3316
3317 {arg} argument such as header name etc
3318
3319 Format codes:
3320
3321 % a literal % character
3322 sn Unique sequence number per log line entry
3323 err_code The ID of an error response served by Squid or
3324 a similar internal error identifier.
3325 err_detail Additional err_code-dependent error information.
3326
3327 Connection related format codes:
3328
3329 >a Client source IP address
3330 >A Client FQDN
3331 >p Client source port
3332 >eui Client source EUI (MAC address, EUI-48 or EUI-64 identifier)
3333 >la Local IP address the client connected to
3334 >lp Local port number the client connected to
3335
3336 la Local listening IP address the client connection was connected to.
3337 lp Local listening port number the client connection was connected to.
3338
3339 <a Server IP address of the last server or peer connection
3340 <A Server FQDN or peer name
3341 <p Server port number of the last server or peer connection
3342 <la Local IP address of the last server or peer connection
3343 <lp Local port number of the last server or peer connection
3344
3345 Time related format codes:
3346
3347 ts Seconds since epoch
3348 tu subsecond time (milliseconds)
3349 tl Local time. Optional strftime format argument
3350 default %d/%b/%Y:%H:%M:%S %z
3351 tg GMT time. Optional strftime format argument
3352 default %d/%b/%Y:%H:%M:%S %z
3353 tr Response time (milliseconds)
3354 dt Total time spent making DNS lookups (milliseconds)
3355
3356 Access Control related format codes:
3357
3358 et Tag returned by external acl
3359 ea Log string returned by external acl
3360 un User name (any available)
3361 ul User name from authentication
3362 ue User name from external acl helper
3363 ui User name from ident
3364 us User name from SSL
3365
3366 HTTP related format codes:
3367
3368 [http::]>h Original request header. Optional header name argument
3369 on the format header[:[separator]element]
3370 [http::]>ha The HTTP request headers after adaptation and redirection.
3371 Optional header name argument as for >h
3372 [http::]<h Reply header. Optional header name argument
3373 as for >h
3374 [http::]>Hs HTTP status code sent to the client
3375 [http::]<Hs HTTP status code received from the next hop
3376 [http::]<bs Number of HTTP-equivalent message body bytes
3377 received from the next hop, excluding chunked
3378 transfer encoding and control messages.
3379 Generated FTP/Gopher listings are treated as
3380 received bodies.
3381 [http::]mt MIME content type
3382 [http::]rm Request method (GET/POST etc)
3383 [http::]>rm Request method from client
3384 [http::]<rm Request method sent to server or peer
3385 [http::]ru Request URL from client (historic, filtered for logging)
3386 [http::]>ru Request URL from client
3387 [http::]<ru Request URL sent to server or peer
3388 [http::]rp Request URL-Path excluding hostname
3389 [http::]>rp Request URL-Path excluding hostname from client
3390 [http::]<rp Request URL-Path excluding hostname sento to server or peer
3391 [http::]rv Request protocol version
3392 [http::]>rv Request protocol version from client
3393 [http::]<rv Request protocol version sent to server or peer
3394 [http::]<st Sent reply size including HTTP headers
3395 [http::]>st Received request size including HTTP headers. In the
3396 case of chunked requests the chunked encoding metadata
3397 are not included
3398 [http::]>sh Received HTTP request headers size
3399 [http::]<sh Sent HTTP reply headers size
3400 [http::]st Request+Reply size including HTTP headers
3401 [http::]<sH Reply high offset sent
3402 [http::]<sS Upstream object size
3403 [http::]<pt Peer response time in milliseconds. The timer starts
3404 when the last request byte is sent to the next hop
3405 and stops when the last response byte is received.
3406 [http::]<tt Total server-side time in milliseconds. The timer
3407 starts with the first connect request (or write I/O)
3408 sent to the first selected peer. The timer stops
3409 with the last I/O with the last peer.
3410
3411 Squid handling related format codes:
3412
3413 Ss Squid request status (TCP_MISS etc)
3414 Sh Squid hierarchy status (DEFAULT_PARENT etc)
3415
3416 SSL-related format codes:
3417
3418 ssl::bump_mode SslBump decision for the transaction:
3419
3420 For CONNECT requests that initiated bumping of
3421 a connection and for any request received on
3422 an already bumped connection, Squid logs the
3423 corresponding SslBump mode ("server-first" or
3424 "client-first"). See the ssl_bump option for
3425 more information about these modes.
3426
3427 A "none" token is logged for requests that
3428 triggered "ssl_bump" ACL evaluation matching
3429 either a "none" rule or no rules at all.
3430
3431 In all other cases, a single dash ("-") is
3432 logged.
3433
3434 If ICAP is enabled, the following code becomes available (as
3435 well as ICAP log codes documented with the icap_log option):
3436
3437 icap::tt Total ICAP processing time for the HTTP
3438 transaction. The timer ticks when ICAP
3439 ACLs are checked and when ICAP
3440 transaction is in progress.
3441
3442 If adaptation is enabled the following three codes become available:
3443
3444 adapt::<last_h The header of the last ICAP response or
3445 meta-information from the last eCAP
3446 transaction related to the HTTP transaction.
3447 Like <h, accepts an optional header name
3448 argument.
3449
3450 adapt::sum_trs Summed adaptation transaction response
3451 times recorded as a comma-separated list in
3452 the order of transaction start time. Each time
3453 value is recorded as an integer number,
3454 representing response time of one or more
3455 adaptation (ICAP or eCAP) transaction in
3456 milliseconds. When a failed transaction is
3457 being retried or repeated, its time is not
3458 logged individually but added to the
3459 replacement (next) transaction. See also:
3460 adapt::all_trs.
3461
3462 adapt::all_trs All adaptation transaction response times.
3463 Same as adaptation_strs but response times of
3464 individual transactions are never added
3465 together. Instead, all transaction response
3466 times are recorded individually.
3467
3468 You can prefix adapt::*_trs format codes with adaptation
3469 service name in curly braces to record response time(s) specific
3470 to that service. For example: %{my_service}adapt::sum_trs
3471
3472 If SSL is enabled, the following formating codes become available:
3473
3474 %ssl::>cert_subject The Subject field of the received client
3475 SSL certificate or a dash ('-') if Squid has
3476 received an invalid/malformed certificate or
3477 no certificate at all. Consider encoding the
3478 logged value because Subject often has spaces.
3479
3480 %ssl::>cert_issuer The Issuer field of the received client
3481 SSL certificate or a dash ('-') if Squid has
3482 received an invalid/malformed certificate or
3483 no certificate at all. Consider encoding the
3484 logged value because Issuer often has spaces.
3485
3486 The default formats available (which do not need re-defining) are:
3487
3488 logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt
3489 logformat common %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st %Ss:%Sh
3490 logformat combined %>a %[ui %[un [%tl] "%rm %ru HTTP/%rv" %>Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
3491 logformat referrer %ts.%03tu %>a %{Referer}>h %ru
3492 logformat useragent %>a [%tl] "%{User-Agent}>h"
3493
3494 NOTE: When the log_mime_hdrs directive is set to ON.
3495 The squid, common and combined formats have a safely encoded copy
3496 of the mime headers appended to each line within a pair of brackets.
3497
3498 NOTE: The common and combined formats are not quite true to the Apache definition.
3499 The logs from Squid contain an extra status and hierarchy code appended.
3500
3501 DOC_END
3502
3503 NAME: access_log cache_access_log
3504 TYPE: access_log
3505 LOC: Config.Log.accesslogs
3506 DEFAULT_IF_NONE: daemon:@DEFAULT_ACCESS_LOG@ squid
3507 DOC_START
3508 These files log client request activities. Has a line every HTTP or
3509 ICP request. The format is:
3510 access_log <module>:<place> [<logformat name> [acl acl ...]]
3511 access_log none [acl acl ...]]
3512
3513 Will log to the specified module:place using the specified format (which
3514 must be defined in a logformat directive) those entries which match
3515 ALL the acl's specified (which must be defined in acl clauses).
3516 If no acl is specified, all requests will be logged to this destination.
3517
3518 ===== Modules Currently available =====
3519
3520 none Do not log any requests matching these ACL.
3521 Do not specify Place or logformat name.
3522
3523 stdio Write each log line to disk immediately at the completion of
3524 each request.
3525 Place: the filename and path to be written.
3526
3527 daemon Very similar to stdio. But instead of writing to disk the log
3528 line is passed to a daemon helper for asychronous handling instead.
3529 Place: varies depending on the daemon.
3530
3531 log_file_daemon Place: the file name and path to be written.
3532
3533 syslog To log each request via syslog facility.
3534 Place: The syslog facility and priority level for these entries.
3535 Place Format: facility.priority
3536
3537 where facility could be any of:
3538 authpriv, daemon, local0 ... local7 or user.
3539
3540 And priority could be any of:
3541 err, warning, notice, info, debug.
3542
3543 udp To send each log line as text data to a UDP receiver.
3544 Place: The destination host name or IP and port.
3545 Place Format: //host:port
3546
3547 tcp To send each log line as text data to a TCP receiver.
3548 Place: The destination host name or IP and port.
3549 Place Format: //host:port
3550
3551 Default:
3552 access_log daemon:@DEFAULT_ACCESS_LOG@ squid
3553 DOC_END
3554
3555 NAME: icap_log
3556 TYPE: access_log
3557 IFDEF: ICAP_CLIENT
3558 LOC: Config.Log.icaplogs
3559 DEFAULT: none
3560 DOC_START
3561 ICAP log files record ICAP transaction summaries, one line per
3562 transaction.
3563
3564 The icap_log option format is:
3565 icap_log <filepath> [<logformat name> [acl acl ...]]
3566 icap_log none [acl acl ...]]
3567
3568 Please see access_log option documentation for details. The two
3569 kinds of logs share the overall configuration approach and many
3570 features.
3571
3572 ICAP processing of a single HTTP message or transaction may
3573 require multiple ICAP transactions. In such cases, multiple
3574 ICAP transaction log lines will correspond to a single access
3575 log line.
3576
3577 ICAP log uses logformat codes that make sense for an ICAP
3578 transaction. Header-related codes are applied to the HTTP header
3579 embedded in an ICAP server response, with the following caveats:
3580 For REQMOD, there is no HTTP response header unless the ICAP
3581 server performed request satisfaction. For RESPMOD, the HTTP
3582 request header is the header sent to the ICAP server. For
3583 OPTIONS, there are no HTTP headers.
3584
3585 The following format codes are also available for ICAP logs:
3586
3587 icap::<A ICAP server IP address. Similar to <A.
3588
3589 icap::<service_name ICAP service name from the icap_service
3590 option in Squid configuration file.
3591
3592 icap::ru ICAP Request-URI. Similar to ru.
3593
3594 icap::rm ICAP request method (REQMOD, RESPMOD, or
3595 OPTIONS). Similar to existing rm.
3596
3597 icap::>st Bytes sent to the ICAP server (TCP payload
3598 only; i.e., what Squid writes to the socket).
3599
3600 icap::<st Bytes received from the ICAP server (TCP
3601 payload only; i.e., what Squid reads from
3602 the socket).
3603
3604 icap::<bs Number of message body bytes received from the
3605 ICAP server. ICAP message body, if any, usually
3606 includes encapsulated HTTP message headers and
3607 possibly encapsulated HTTP message body. The
3608 HTTP body part is dechunked before its size is
3609 computed.
3610
3611 icap::tr Transaction response time (in
3612 milliseconds). The timer starts when
3613 the ICAP transaction is created and
3614 stops when the transaction is completed.
3615 Similar to tr.
3616
3617 icap::tio Transaction I/O time (in milliseconds). The
3618 timer starts when the first ICAP request
3619 byte is scheduled for sending. The timers
3620 stops when the last byte of the ICAP response
3621 is received.
3622
3623 icap::to Transaction outcome: ICAP_ERR* for all
3624 transaction errors, ICAP_OPT for OPTION
3625 transactions, ICAP_ECHO for 204
3626 responses, ICAP_MOD for message
3627 modification, and ICAP_SAT for request
3628 satisfaction. Similar to Ss.
3629
3630 icap::Hs ICAP response status code. Similar to Hs.
3631
3632 icap::>h ICAP request header(s). Similar to >h.
3633
3634 icap::<h ICAP response header(s). Similar to <h.
3635
3636 The default ICAP log format, which can be used without an explicit
3637 definition, is called icap_squid:
3638
3639 logformat icap_squid %ts.%03tu %6icap::tr %>a %icap::to/%03icap::Hs %icap::<size %icap::rm %icap::ru% %un -/%icap::<A -
3640
3641 See also: logformat, log_icap, and %adapt::<last_h
3642 DOC_END
3643
3644 NAME: logfile_daemon
3645 TYPE: string
3646 DEFAULT: @DEFAULT_LOGFILED@
3647 LOC: Log::TheConfig.logfile_daemon
3648 DOC_START
3649 Specify the path to the logfile-writing daemon. This daemon is
3650 used to write the access and store logs, if configured.
3651
3652 Squid sends a number of commands to the log daemon:
3653 L<data>\n - logfile data
3654 R\n - rotate file
3655 T\n - truncate file
3656 O\n - reopen file
3657 F\n - flush file
3658 r<n>\n - set rotate count to <n>
3659 b<n>\n - 1 = buffer output, 0 = don't buffer output
3660
3661 No responses is expected.
3662 DOC_END
3663
3664 NAME: log_access
3665 TYPE: acl_access
3666 LOC: Config.accessList.log
3667 DEFAULT: none
3668 COMMENT: allow|deny acl acl...
3669 DOC_START
3670 This options allows you to control which requests gets logged
3671 to access.log (see access_log directive). Requests denied for
3672 logging will also not be accounted for in performance counters.
3673
3674 This clause only supports fast acl types.
3675 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
3676 DOC_END
3677
3678 NAME: log_icap
3679 TYPE: acl_access
3680 IFDEF: ICAP_CLIENT
3681 LOC: Config.accessList.icap
3682 DEFAULT: none
3683 DOC_START
3684 This options allows you to control which requests get logged
3685 to icap.log. See the icap_log directive for ICAP log details.
3686 DOC_END
3687
3688 NAME: cache_store_log
3689 TYPE: string
3690 DEFAULT: none
3691 LOC: Config.Log.store
3692 DOC_START
3693 Logs the activities of the storage manager. Shows which
3694 objects are ejected from the cache, and which objects are
3695 saved and for how long. To disable, enter "none" or remove the line.
3696 There are not really utilities to analyze this data, so you can safely
3697 disable it.
3698
3699 Example:
3700 cache_store_log @DEFAULT_STORE_LOG@
3701 DOC_END
3702
3703 NAME: cache_swap_state cache_swap_log
3704 TYPE: string
3705 LOC: Config.Log.swap
3706 DEFAULT: none
3707 DOC_START
3708 Location for the cache "swap.state" file. This index file holds
3709 the metadata of objects saved on disk. It is used to rebuild
3710 the cache during startup. Normally this file resides in each
3711 'cache_dir' directory, but you may specify an alternate
3712 pathname here. Note you must give a full filename, not just
3713 a directory. Since this is the index for the whole object
3714 list you CANNOT periodically rotate it!
3715
3716 If %s can be used in the file name it will be replaced with a
3717 a representation of the cache_dir name where each / is replaced
3718 with '.'. This is needed to allow adding/removing cache_dir
3719 lines when cache_swap_log is being used.
3720
3721 If have more than one 'cache_dir', and %s is not used in the name
3722 these swap logs will have names such as:
3723
3724 cache_swap_log.00
3725 cache_swap_log.01
3726 cache_swap_log.02
3727
3728 The numbered extension (which is added automatically)
3729 corresponds to the order of the 'cache_dir' lines in this
3730 configuration file. If you change the order of the 'cache_dir'
3731 lines in this file, these index files will NOT correspond to
3732 the correct 'cache_dir' entry (unless you manually rename
3733 them). We recommend you do NOT use this option. It is
3734 better to keep these index files in each 'cache_dir' directory.
3735 DOC_END
3736
3737 NAME: logfile_rotate
3738 TYPE: int
3739 DEFAULT: 10
3740 LOC: Config.Log.rotateNumber
3741 DOC_START
3742 Specifies the number of logfile rotations to make when you
3743 type 'squid -k rotate'. The default is 10, which will rotate
3744 with extensions 0 through 9. Setting logfile_rotate to 0 will
3745 disable the file name rotation, but the logfiles are still closed
3746 and re-opened. This will enable you to rename the logfiles
3747 yourself just before sending the rotate signal.
3748
3749 Note, the 'squid -k rotate' command normally sends a USR1
3750 signal to the running squid process. In certain situations
3751 (e.g. on Linux with Async I/O), USR1 is used for other
3752 purposes, so -k rotate uses another signal. It is best to get
3753 in the habit of using 'squid -k rotate' instead of 'kill -USR1
3754 <pid>'.
3755
3756 Note, from Squid-3.1 this option has no effect on the cache.log,
3757 that log can be rotated separately by using debug_options
3758 DOC_END
3759
3760 NAME: emulate_httpd_log
3761 TYPE: obsolete
3762 DOC_START
3763 Replace this with an access_log directive using the format 'common' or 'combined'.
3764 DOC_END
3765
3766 NAME: log_ip_on_direct
3767 TYPE: obsolete
3768 DOC_START
3769 Remove this option from your config. To log server or peer names use %<A in the log format.
3770 DOC_END
3771
3772 NAME: mime_table
3773 TYPE: string
3774 DEFAULT: @DEFAULT_MIME_TABLE@
3775 LOC: Config.mimeTablePathname
3776 DOC_START
3777 Pathname to Squid's MIME table. You shouldn't need to change
3778 this, but the default file contains examples and formatting
3779 information if you do.
3780 DOC_END
3781
3782 NAME: log_mime_hdrs
3783 COMMENT: on|off
3784 TYPE: onoff
3785 LOC: Config.onoff.log_mime_hdrs
3786 DEFAULT: off
3787 DOC_START
3788 The Cache can record both the request and the response MIME
3789 headers for each HTTP transaction. The headers are encoded
3790 safely and will appear as two bracketed fields at the end of
3791 the access log (for either the native or httpd-emulated log
3792 formats). To enable this logging set log_mime_hdrs to 'on'.
3793 DOC_END
3794
3795 NAME: useragent_log
3796 TYPE: obsolete
3797 DOC_START
3798 Replace this with an access_log directive using the format 'useragent'.
3799 DOC_END
3800
3801 NAME: referer_log referrer_log
3802 TYPE: obsolete
3803 DOC_START
3804 Replace this with an access_log directive using the format 'referrer'.
3805 DOC_END
3806
3807 NAME: pid_filename
3808 TYPE: string
3809 DEFAULT: @DEFAULT_PID_FILE@
3810 LOC: Config.pidFilename
3811 DOC_START
3812 A filename to write the process-id to. To disable, enter "none".
3813 DOC_END
3814
3815 NAME: log_fqdn
3816 TYPE: obsolete
3817 DOC_START
3818 Remove this option from your config. To log FQDN use %>A in the log format.
3819 DOC_END
3820
3821 NAME: client_netmask
3822 TYPE: address
3823 LOC: Config.Addrs.client_netmask
3824 DEFAULT: no_addr
3825 DOC_START
3826 A netmask for client addresses in logfiles and cachemgr output.
3827 Change this to protect the privacy of your cache clients.
3828 A netmask of 255.255.255.0 will log all IP's in that range with
3829 the last digit set to '0'.
3830 DOC_END
3831
3832 NAME: forward_log
3833 TYPE: obsolete
3834 DOC_START
3835 Use a regular access.log with ACL limiting it to MISS events.
3836 DOC_END
3837
3838 NAME: strip_query_terms
3839 TYPE: onoff
3840 LOC: Config.onoff.strip_query_terms
3841 DEFAULT: on
3842 DOC_START
3843 By default, Squid strips query terms from requested URLs before
3844 logging. This protects your user's privacy.
3845 DOC_END
3846
3847 NAME: buffered_logs
3848 COMMENT: on|off
3849 TYPE: onoff
3850 DEFAULT: off
3851 LOC: Config.onoff.buffered_logs
3852 DOC_START
3853 cache.log log file is written with stdio functions, and as such
3854 it can be buffered or unbuffered. By default it will be unbuffered.
3855 Buffering it can speed up the writing slightly (though you are
3856 unlikely to need to worry unless you run with tons of debugging
3857 enabled in which case performance will suffer badly anyway..).
3858 DOC_END
3859
3860 NAME: netdb_filename
3861 TYPE: string
3862 DEFAULT: stdio:@DEFAULT_NETDB_FILE@
3863 LOC: Config.netdbFilename
3864 IFDEF: USE_ICMP
3865 DOC_START
3866 A filename where Squid stores it's netdb state between restarts.
3867 To disable, enter "none".
3868 DOC_END
3869
3870 COMMENT_START
3871 OPTIONS FOR TROUBLESHOOTING
3872 -----------------------------------------------------------------------------
3873 COMMENT_END
3874
3875 NAME: cache_log
3876 TYPE: string
3877 DEFAULT_IF_NONE: @DEFAULT_CACHE_LOG@
3878 LOC: Debug::cache_log
3879 DOC_START
3880 Cache logging file. This is where general information about
3881 your cache's behavior goes. You can increase the amount of data
3882 logged to this file and how often its rotated with "debug_options"
3883 DOC_END
3884
3885 NAME: debug_options
3886 TYPE: eol
3887 DEFAULT: ALL,1
3888 LOC: Debug::debugOptions
3889 DOC_START
3890 Logging options are set as section,level where each source file
3891 is assigned a unique section. Lower levels result in less
3892 output, Full debugging (level 9) can result in a very large
3893 log file, so be careful.
3894
3895 The magic word "ALL" sets debugging levels for all sections.
3896 We recommend normally running with "ALL,1".
3897
3898 The rotate=N option can be used to keep more or less of these logs
3899 than would otherwise be kept by logfile_rotate.
3900 For most uses a single log should be enough to monitor current
3901 events affecting Squid.
3902 DOC_END
3903
3904 NAME: coredump_dir
3905 TYPE: string
3906 LOC: Config.coredump_dir
3907 DEFAULT_IF_NONE: none
3908 DOC_START
3909 By default Squid leaves core files in the directory from where
3910 it was started. If you set 'coredump_dir' to a directory
3911 that exists, Squid will chdir() to that directory at startup
3912 and coredump files will be left there.
3913
3914 NOCOMMENT_START
3915
3916 # Leave coredumps in the first cache dir
3917 coredump_dir @DEFAULT_SWAP_DIR@
3918 NOCOMMENT_END
3919 DOC_END
3920
3921
3922 COMMENT_START
3923 OPTIONS FOR FTP GATEWAYING
3924 -----------------------------------------------------------------------------
3925 COMMENT_END
3926
3927 NAME: ftp_user
3928 TYPE: string
3929 DEFAULT: Squid@
3930 LOC: Config.Ftp.anon_user
3931 DOC_START
3932 If you want the anonymous login password to be more informative
3933 (and enable the use of picky ftp servers), set this to something
3934 reasonable for your domain, like wwwuser@somewhere.net
3935
3936 The reason why this is domainless by default is the
3937 request can be made on the behalf of a user in any domain,
3938 depending on how the cache is used.
3939 Some ftp server also validate the email address is valid
3940 (for example perl.com).
3941 DOC_END
3942
3943 NAME: ftp_passive
3944 TYPE: onoff
3945 DEFAULT: on
3946 LOC: Config.Ftp.passive
3947 DOC_START
3948 If your firewall does not allow Squid to use passive
3949 connections, turn off this option.
3950
3951 Use of ftp_epsv_all option requires this to be ON.
3952 DOC_END
3953
3954 NAME: ftp_epsv_all
3955 TYPE: onoff
3956 DEFAULT: off
3957 LOC: Config.Ftp.epsv_all
3958 DOC_START
3959 FTP Protocol extensions permit the use of a special "EPSV ALL" command.
3960
3961 NATs may be able to put the connection on a "fast path" through the
3962 translator, as the EPRT command will never be used and therefore,
3963 translation of the data portion of the segments will never be needed.
3964
3965 When a client only expects to do two-way FTP transfers this may be
3966 useful.
3967 If squid finds that it must do a three-way FTP transfer after issuing
3968 an EPSV ALL command, the FTP session will fail.
3969
3970 If you have any doubts about this option do not use it.
3971 Squid will nicely attempt all other connection methods.
3972
3973 Requires ftp_passive to be ON (default) for any effect.
3974 DOC_END
3975
3976 NAME: ftp_epsv
3977 TYPE: onoff
3978 DEFAULT: on
3979 LOC: Config.Ftp.epsv
3980 DOC_START
3981 FTP Protocol extensions permit the use of a special "EPSV" command.
3982
3983 NATs may be able to put the connection on a "fast path" through the
3984 translator using EPSV, as the EPRT command will never be used
3985 and therefore, translation of the data portion of the segments
3986 will never be needed.
3987
3988 Turning this OFF will prevent EPSV being attempted.
3989 WARNING: Doing so will convert Squid back to the old behavior with all
3990 the related problems with external NAT devices/layers.
3991
3992 Requires ftp_passive to be ON (default) for any effect.
3993 DOC_END
3994
3995 NAME: ftp_eprt
3996 TYPE: onoff
3997 DEFAULT: on
3998 LOC: Config.Ftp.eprt
3999 DOC_START
4000 FTP Protocol extensions permit the use of a special "EPRT" command.
4001
4002 This extension provides a protocol neutral alternative to the
4003 IPv4-only PORT command. When supported it enables active FTP data
4004 channels over IPv6 and efficient NAT handling.
4005
4006 Turning this OFF will prevent EPRT being attempted and will skip
4007 straight to using PORT for IPv4 servers.
4008
4009 Some devices are known to not handle this extension correctly and
4010 may result in crashes. Devices which suport EPRT enough to fail
4011 cleanly will result in Squid attempting PORT anyway. This directive
4012 should only be disabled when EPRT results in device failures.
4013
4014 WARNING: Doing so will convert Squid back to the old behavior with all
4015 the related problems with external NAT devices/layers and IPv4-only FTP.
4016 DOC_END
4017
4018 NAME: ftp_sanitycheck
4019 TYPE: onoff
4020 DEFAULT: on
4021 LOC: Config.Ftp.sanitycheck
4022 DOC_START
4023 For security and data integrity reasons Squid by default performs
4024 sanity checks of the addresses of FTP data connections ensure the
4025 data connection is to the requested server. If you need to allow
4026 FTP connections to servers using another IP address for the data
4027 connection turn this off.
4028 DOC_END
4029
4030 NAME: ftp_telnet_protocol
4031 TYPE: onoff
4032 DEFAULT: on
4033 LOC: Config.Ftp.telnet
4034 DOC_START
4035 The FTP protocol is officially defined to use the telnet protocol
4036 as transport channel for the control connection. However, many
4037 implementations are broken and does not respect this aspect of
4038 the FTP protocol.
4039
4040 If you have trouble accessing files with ASCII code 255 in the
4041 path or similar problems involving this ASCII code you can
4042 try setting this directive to off. If that helps, report to the
4043 operator of the FTP server in question that their FTP server
4044 is broken and does not follow the FTP standard.
4045 DOC_END
4046
4047 COMMENT_START
4048 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
4049 -----------------------------------------------------------------------------
4050 COMMENT_END
4051
4052 NAME: diskd_program
4053 TYPE: string
4054 DEFAULT: @DEFAULT_DISKD@
4055 LOC: Config.Program.diskd
4056 DOC_START
4057 Specify the location of the diskd executable.
4058 Note this is only useful if you have compiled in
4059 diskd as one of the store io modules.
4060 DOC_END
4061
4062 NAME: unlinkd_program
4063 IFDEF: USE_UNLINKD
4064 TYPE: string
4065 DEFAULT: @DEFAULT_UNLINKD@
4066 LOC: Config.Program.unlinkd
4067 DOC_START
4068 Specify the location of the executable for file deletion process.
4069 DOC_END
4070
4071 NAME: pinger_program
4072 TYPE: string
4073 DEFAULT: @DEFAULT_PINGER@
4074 LOC: Config.pinger.program
4075 IFDEF: USE_ICMP
4076 DOC_START
4077 Specify the location of the executable for the pinger process.
4078 DOC_END
4079
4080 NAME: pinger_enable
4081 TYPE: onoff
4082 DEFAULT: on
4083 LOC: Config.pinger.enable
4084 IFDEF: USE_ICMP
4085 DOC_START
4086 Control whether the pinger is active at run-time.
4087 Enables turning ICMP pinger on and off with a simple
4088 squid -k reconfigure.
4089 DOC_END
4090
4091
4092 COMMENT_START
4093 OPTIONS FOR URL REWRITING
4094 -----------------------------------------------------------------------------
4095 COMMENT_END
4096
4097 NAME: url_rewrite_program redirect_program
4098 TYPE: wordlist
4099 LOC: Config.Program.redirect
4100 DEFAULT: none
4101 DOC_START
4102 Specify the location of the executable URL rewriter to use.
4103 Since they can perform almost any function there isn't one included.
4104
4105 For each requested URL, the rewriter will receive on line with the format
4106
4107 URL <SP> client_ip "/" fqdn <SP> user <SP> method [<SP> kvpairs]<NL>
4108
4109 In the future, the rewriter interface will be extended with
4110 key=value pairs ("kvpairs" shown above). Rewriter programs
4111 should be prepared to receive and possibly ignore additional
4112 whitespace-separated tokens on each input line.
4113
4114 And the rewriter may return a rewritten URL. The other components of
4115 the request line does not need to be returned (ignored if they are).
4116
4117 The rewriter can also indicate that a client-side redirect should
4118 be performed to the new URL. This is done by prefixing the returned
4119 URL with "301:" (moved permanently) or 302: (moved temporarily), etc.
4120
4121 By default, a URL rewriter is not used.
4122 DOC_END
4123
4124 NAME: url_rewrite_children redirect_children
4125 TYPE: HelperChildConfig
4126 DEFAULT: 20 startup=0 idle=1 concurrency=0
4127 LOC: Config.redirectChildren
4128 DOC_START
4129 The maximum number of redirector processes to spawn. If you limit
4130 it too few Squid will have to wait for them to process a backlog of
4131 URLs, slowing it down. If you allow too many they will use RAM
4132 and other system resources noticably.
4133
4134 The startup= and idle= options allow some measure of skew in your
4135 tuning.
4136
4137 startup=
4138
4139 Sets a minimum of how many processes are to be spawned when Squid
4140 starts or reconfigures. When set to zero the first request will
4141 cause spawning of the first child process to handle it.
4142
4143 Starting too few will cause an initial slowdown in traffic as Squid
4144 attempts to simultaneously spawn enough processes to cope.
4145
4146 idle=
4147
4148 Sets a minimum of how many processes Squid is to try and keep available
4149 at all times. When traffic begins to rise above what the existing
4150 processes can handle this many more will be spawned up to the maximum
4151 configured. A minimum setting of 1 is required.
4152
4153 concurrency=
4154
4155 The number of requests each redirector helper can handle in
4156 parallel. Defaults to 0 which indicates the redirector
4157 is a old-style single threaded redirector.
4158
4159 When this directive is set to a value >= 1 then the protocol
4160 used to communicate with the helper is modified to include
4161 a request ID in front of the request/response. The request
4162 ID from the request must be echoed back with the response
4163 to that request.
4164 DOC_END
4165
4166 NAME: url_rewrite_host_header redirect_rewrites_host_header
4167 TYPE: onoff
4168 DEFAULT: on
4169 LOC: Config.onoff.redir_rewrites_host
4170 DOC_START
4171 To preserve same-origin security policies in browsers and
4172 prevent Host: header forgery by redirectors Squid rewrites
4173 any Host: header in redirected requests.
4174
4175 If you are running an accelerator this may not be a wanted
4176 effect of a redirector. This directive enables you disable
4177 Host: alteration in reverse-proxy traffic.
4178
4179 WARNING: Entries are cached on the result of the URL rewriting
4180 process, so be careful if you have domain-virtual hosts.
4181
4182 WARNING: Squid and other software verifies the URL and Host
4183 are matching, so be careful not to relay through other proxies
4184 or inspecting firewalls with this disabled.
4185 DOC_END
4186
4187 NAME: url_rewrite_access redirector_access
4188 TYPE: acl_access
4189 DEFAULT: none
4190 LOC: Config.accessList.redirector
4191 DOC_START
4192 If defined, this access list specifies which requests are
4193 sent to the redirector processes. By default all requests
4194 are sent.
4195
4196 This clause supports both fast and slow acl types.
4197 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
4198 DOC_END
4199
4200 NAME: url_rewrite_bypass redirector_bypass
4201 TYPE: onoff
4202 LOC: Config.onoff.redirector_bypass
4203 DEFAULT: off
4204 DOC_START
4205 When this is 'on', a request will not go through the
4206 redirector if all redirectors are busy. If this is 'off'
4207 and the redirector queue grows too large, Squid will exit
4208 with a FATAL error and ask you to increase the number of
4209 redirectors. You should only enable this if the redirectors
4210 are not critical to your caching system. If you use
4211 redirectors for access control, and you enable this option,
4212 users may have access to pages they should not
4213 be allowed to request.
4214 DOC_END
4215
4216 COMMENT_START
4217 OPTIONS FOR TUNING THE CACHE
4218 -----------------------------------------------------------------------------
4219 COMMENT_END
4220
4221 NAME: cache no_cache
4222 TYPE: acl_access
4223 DEFAULT: none
4224 LOC: Config.accessList.noCache
4225 DOC_START
4226 A list of ACL elements which, if matched and denied, cause the request to
4227 not be satisfied from the cache and the reply to not be cached.
4228 In other words, use this to force certain objects to never be cached.
4229
4230 You must use the words 'allow' or 'deny' to indicate whether items
4231 matching the ACL should be allowed or denied into the cache.
4232
4233 Default is to allow all to be cached.
4234
4235 This clause supports both fast and slow acl types.
4236 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
4237 DOC_END
4238
4239 NAME: max_stale
4240 COMMENT: time-units
4241 TYPE: time_t
4242 LOC: Config.maxStale
4243 DEFAULT: 1 week
4244 DOC_START
4245 This option puts an upper limit on how stale content Squid
4246 will serve from the cache if cache validation fails.
4247 Can be overriden by the refresh_pattern max-stale option.
4248 DOC_END
4249
4250 NAME: refresh_pattern
4251 TYPE: refreshpattern
4252 LOC: Config.Refresh
4253 DEFAULT: none
4254 DOC_START
4255 usage: refresh_pattern [-i] regex min percent max [options]
4256
4257 By default, regular expressions are CASE-SENSITIVE. To make
4258 them case-insensitive, use the -i option.
4259
4260 'Min' is the time (in minutes) an object without an explicit
4261 expiry time should be considered fresh. The recommended
4262 value is 0, any higher values may cause dynamic applications
4263 to be erroneously cached unless the application designer
4264 has taken the appropriate actions.
4265
4266 'Percent' is a percentage of the objects age (time since last
4267 modification age) an object without explicit expiry time
4268 will be considered fresh.
4269
4270 'Max' is an upper limit on how long objects without an explicit
4271 expiry time will be considered fresh.
4272
4273 options: override-expire
4274 override-lastmod
4275 reload-into-ims
4276 ignore-reload
4277 ignore-no-cache
4278 ignore-no-store
4279 ignore-must-revalidate
4280 ignore-private
4281 ignore-auth
4282 max-stale=NN
4283 refresh-ims
4284 store-stale
4285
4286 override-expire enforces min age even if the server
4287 sent an explicit expiry time (e.g., with the
4288 Expires: header or Cache-Control: max-age). Doing this
4289 VIOLATES the HTTP standard. Enabling this feature
4290 could make you liable for problems which it causes.
4291
4292 Note: override-expire does not enforce staleness - it only extends
4293 freshness / min. If the server returns a Expires time which
4294 is longer than your max time, Squid will still consider
4295 the object fresh for that period of time.
4296
4297 override-lastmod enforces min age even on objects
4298 that were modified recently.
4299
4300 reload-into-ims changes client no-cache or ``reload''
4301 to If-Modified-Since requests. Doing this VIOLATES the
4302 HTTP standard. Enabling this feature could make you
4303 liable for problems which it causes.
4304
4305 ignore-reload ignores a client no-cache or ``reload''
4306 header. Doing this VIOLATES the HTTP standard. Enabling
4307 this feature could make you liable for problems which
4308 it causes.
4309
4310 ignore-no-cache ignores any ``Pragma: no-cache'' and
4311 ``Cache-control: no-cache'' headers received from a server.
4312 The HTTP RFC never allows the use of this (Pragma) header
4313 from a server, only a client, though plenty of servers
4314 send it anyway.
4315
4316 ignore-no-store ignores any ``Cache-control: no-store''
4317 headers received from a server. Doing this VIOLATES
4318 the HTTP standard. Enabling this feature could make you
4319 liable for problems which it causes.
4320
4321 ignore-must-revalidate ignores any ``Cache-Control: must-revalidate``
4322 headers received from a server. Doing this VIOLATES
4323 the HTTP standard. Enabling this feature could make you
4324 liable for problems which it causes.
4325
4326 ignore-private ignores any ``Cache-control: private''
4327 headers received from a server. Doing this VIOLATES
4328 the HTTP standard. Enabling this feature could make you
4329 liable for problems which it causes.
4330
4331 ignore-auth caches responses to requests with authorization,
4332 as if the originserver had sent ``Cache-control: public''
4333 in the response header. Doing this VIOLATES the HTTP standard.
4334 Enabling this feature could make you liable for problems which
4335 it causes.
4336
4337 refresh-ims causes squid to contact the origin server
4338 when a client issues an If-Modified-Since request. This
4339 ensures that the client will receive an updated version
4340 if one is available.
4341
4342 store-stale stores responses even if they don't have explicit
4343 freshness or a validator (i.e., Last-Modified or an ETag)
4344 present, or if they're already stale. By default, Squid will
4345 not cache such responses because they usually can't be
4346 reused. Note that such responses will be stale by default.
4347
4348 max-stale=NN provide a maximum staleness factor. Squid won't
4349 serve objects more stale than this even if it failed to
4350 validate the object. Default: use the max_stale global limit.
4351
4352 Basically a cached object is:
4353
4354 FRESH if expires < now, else STALE
4355 STALE if age > max
4356 FRESH if lm-factor < percent, else STALE
4357 FRESH if age < min
4358 else STALE
4359
4360 The refresh_pattern lines are checked in the order listed here.
4361 The first entry which matches is used. If none of the entries
4362 match the default will be used.
4363
4364 Note, you must uncomment all the default lines if you want
4365 to change one. The default setting is only active if none is
4366 used.
4367
4368 NOCOMMENT_START
4369
4370 # Add any of your own refresh_pattern entries above these.
4371 refresh_pattern ^ftp: 1440 20% 10080
4372 refresh_pattern ^gopher: 1440 0% 1440
4373 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
4374 refresh_pattern . 0 20% 4320
4375 NOCOMMENT_END
4376 DOC_END
4377
4378 NAME: quick_abort_min
4379 COMMENT: (KB)
4380 TYPE: kb_int64_t
4381 DEFAULT: 16 KB
4382 LOC: Config.quickAbort.min
4383 DOC_NONE
4384
4385 NAME: quick_abort_max
4386 COMMENT: (KB)
4387 TYPE: kb_int64_t
4388 DEFAULT: 16 KB
4389 LOC: Config.quickAbort.max
4390 DOC_NONE
4391
4392 NAME: quick_abort_pct
4393 COMMENT: (percent)
4394 TYPE: int
4395 DEFAULT: 95
4396 LOC: Config.quickAbort.pct
4397 DOC_START
4398 The cache by default continues downloading aborted requests
4399 which are almost completed (less than 16 KB remaining). This
4400 may be undesirable on slow (e.g. SLIP) links and/or very busy
4401 caches. Impatient users may tie up file descriptors and
4402 bandwidth by repeatedly requesting and immediately aborting
4403 downloads.
4404
4405 When the user aborts a request, Squid will check the
4406 quick_abort values to the amount of data transfered until
4407 then.
4408
4409 If the transfer has less than 'quick_abort_min' KB remaining,
4410 it will finish the retrieval.
4411
4412 If the transfer has more than 'quick_abort_max' KB remaining,
4413 it will abort the retrieval.
4414
4415 If more than 'quick_abort_pct' of the transfer has completed,
4416 it will finish the retrieval.
4417
4418 If you do not want any retrieval to continue after the client
4419 has aborted, set both 'quick_abort_min' and 'quick_abort_max'
4420 to '0 KB'.
4421
4422 If you want retrievals to always continue if they are being
4423 cached set 'quick_abort_min' to '-1 KB'.
4424 DOC_END
4425
4426 NAME: read_ahead_gap
4427 COMMENT: buffer-size
4428 TYPE: b_int64_t
4429 LOC: Config.readAheadGap
4430 DEFAULT: 16 KB
4431 DOC_START
4432 The amount of data the cache will buffer ahead of what has been
4433 sent to the client when retrieving an object from another server.
4434 DOC_END
4435
4436 NAME: negative_ttl
4437 IFDEF: USE_HTTP_VIOLATIONS
4438 COMMENT: time-units
4439 TYPE: time_t
4440 LOC: Config.negativeTtl
4441 DEFAULT: 0 seconds
4442 DOC_START
4443 Set the Default Time-to-Live (TTL) for failed requests.
4444 Certain types of failures (such as "connection refused" and
4445 "404 Not Found") are able to be negatively-cached for a short time.
4446 Modern web servers should provide Expires: header, however if they
4447 do not this can provide a minimum TTL.
4448 The default is not to cache errors with unknown expiry details.
4449
4450 Note that this is different from negative caching of DNS lookups.
4451
4452 WARNING: Doing this VIOLATES the HTTP standard. Enabling
4453 this feature could make you liable for problems which it
4454 causes.
4455 DOC_END
4456
4457 NAME: positive_dns_ttl
4458 COMMENT: time-units
4459 TYPE: time_t
4460 LOC: Config.positiveDnsTtl
4461 DEFAULT: 6 hours
4462 DOC_START
4463 Upper limit on how long Squid will cache positive DNS responses.
4464 Default is 6 hours (360 minutes). This directive must be set
4465 larger than negative_dns_ttl.
4466 DOC_END
4467
4468 NAME: negative_dns_ttl
4469 COMMENT: time-units
4470 TYPE: time_t
4471 LOC: Config.negativeDnsTtl
4472 DEFAULT: 1 minutes
4473 DOC_START
4474 Time-to-Live (TTL) for negative caching of failed DNS lookups.
4475 This also sets the lower cache limit on positive lookups.
4476 Minimum value is 1 second, and it is not recommendable to go
4477 much below 10 seconds.
4478 DOC_END
4479
4480 NAME: range_offset_limit
4481 COMMENT: size [acl acl...]
4482 TYPE: acl_b_size_t
4483 LOC: Config.rangeOffsetLimit
4484 DEFAULT: none
4485 DOC_START
4486 usage: (size) [units] [[!]aclname]
4487
4488 Sets an upper limit on how far (number of bytes) into the file
4489 a Range request may be to cause Squid to prefetch the whole file.
4490 If beyond this limit, Squid forwards the Range request as it is and
4491 the result is NOT cached.
4492
4493 This is to stop a far ahead range request (lets say start at 17MB)
4494 from making Squid fetch the whole object up to that point before
4495 sending anything to the client.
4496
4497 Multiple range_offset_limit lines may be specified, and they will
4498 be searched from top to bottom on each request until a match is found.
4499 The first match found will be used. If no line matches a request, the
4500 default limit of 0 bytes will be used.
4501
4502 'size' is the limit specified as a number of units.
4503
4504 'units' specifies whether to use bytes, KB, MB, etc.
4505 If no units are specified bytes are assumed.
4506
4507 A size of 0 causes Squid to never fetch more than the
4508 client requested. (default)
4509
4510 A size of 'none' causes Squid to always fetch the object from the
4511 beginning so it may cache the result. (2.0 style)
4512
4513 'aclname' is the name of a defined ACL.
4514
4515 NP: Using 'none' as the byte value here will override any quick_abort settings
4516 that may otherwise apply to the range request. The range request will
4517 be fully fetched from start to finish regardless of the client
4518 actions. This affects bandwidth usage.
4519 DOC_END
4520
4521 NAME: minimum_expiry_time
4522 COMMENT: (seconds)
4523 TYPE: time_t
4524 LOC: Config.minimum_expiry_time
4525 DEFAULT: 60 seconds
4526 DOC_START
4527 The minimum caching time according to (Expires - Date)
4528 Headers Squid honors if the object can't be revalidated
4529 defaults to 60 seconds. In reverse proxy environments it
4530 might be desirable to honor shorter object lifetimes. It
4531 is most likely better to make your server return a
4532 meaningful Last-Modified header however. In ESI environments
4533 where page fragments often have short lifetimes, this will
4534 often be best set to 0.
4535 DOC_END
4536
4537 NAME: store_avg_object_size
4538 COMMENT: (bytes)
4539 TYPE: b_int64_t
4540 DEFAULT: 13 KB
4541 LOC: Config.Store.avgObjectSize
4542 DOC_START
4543 Average object size, used to estimate number of objects your
4544 cache can hold. The default is 13 KB.
4545 DOC_END
4546
4547 NAME: store_objects_per_bucket
4548 TYPE: int
4549 DEFAULT: 20
4550 LOC: Config.Store.objectsPerBucket
4551 DOC_START
4552 Target number of objects per bucket in the store hash table.
4553 Lowering this value increases the total number of buckets and
4554 also the storage maintenance rate. The default is 20.
4555 DOC_END
4556
4557 COMMENT_START
4558 HTTP OPTIONS
4559 -----------------------------------------------------------------------------
4560 COMMENT_END
4561
4562 NAME: request_header_max_size
4563 COMMENT: (KB)
4564 TYPE: b_size_t
4565 DEFAULT: 64 KB
4566 LOC: Config.maxRequestHeaderSize
4567 DOC_START
4568 This specifies the maximum size for HTTP headers in a request.
4569 Request headers are usually relatively small (about 512 bytes).
4570 Placing a limit on the request header size will catch certain
4571 bugs (for example with persistent connections) and possibly
4572 buffer-overflow or denial-of-service attacks.
4573 DOC_END
4574
4575 NAME: reply_header_max_size
4576 COMMENT: (KB)
4577 TYPE: b_size_t
4578 DEFAULT: 64 KB
4579 LOC: Config.maxReplyHeaderSize
4580 DOC_START
4581 This specifies the maximum size for HTTP headers in a reply.
4582 Reply headers are usually relatively small (about 512 bytes).
4583 Placing a limit on the reply header size will catch certain
4584 bugs (for example with persistent connections) and possibly
4585 buffer-overflow or denial-of-service attacks.
4586 DOC_END
4587
4588 NAME: request_body_max_size
4589 COMMENT: (bytes)
4590 TYPE: b_int64_t
4591 DEFAULT: 0 KB
4592 LOC: Config.maxRequestBodySize
4593 DOC_START
4594 This specifies the maximum size for an HTTP request body.
4595 In other words, the maximum size of a PUT/POST request.
4596 A user who attempts to send a request with a body larger
4597 than this limit receives an "Invalid Request" error message.
4598 If you set this parameter to a zero (the default), there will
4599 be no limit imposed.
4600 DOC_END
4601
4602 NAME: client_request_buffer_max_size
4603 COMMENT: (bytes)
4604 TYPE: b_size_t
4605 DEFAULT: 512 KB
4606 LOC: Config.maxRequestBufferSize
4607 DOC_START
4608 This specifies the maximum buffer size of a client request.
4609 It prevents squid eating too much memory when somebody uploads
4610 a large file.
4611 DOC_END
4612
4613 NAME: chunked_request_body_max_size
4614 COMMENT: (bytes)
4615 TYPE: b_int64_t
4616 DEFAULT: 64 KB
4617 LOC: Config.maxChunkedRequestBodySize
4618 DOC_START
4619 A broken or confused HTTP/1.1 client may send a chunked HTTP
4620 request to Squid. Squid does not have full support for that
4621 feature yet. To cope with such requests, Squid buffers the
4622 entire request and then dechunks request body to create a
4623 plain HTTP/1.0 request with a known content length. The plain
4624 request is then used by the rest of Squid code as usual.
4625
4626 The option value specifies the maximum size of the buffer used
4627 to hold the request before the conversion. If the chunked
4628 request size exceeds the specified limit, the conversion
4629 fails, and the client receives an "unsupported request" error,
4630 as if dechunking was disabled.
4631
4632 Dechunking is enabled by default. To disable conversion of
4633 chunked requests, set the maximum to zero.
4634
4635 Request dechunking feature and this option in particular are a
4636 temporary hack. When chunking requests and responses are fully
4637 supported, there will be no need to buffer a chunked request.
4638 DOC_END
4639
4640 NAME: broken_posts
4641 IFDEF: USE_HTTP_VIOLATIONS
4642 TYPE: acl_access
4643 DEFAULT: none
4644 LOC: Config.accessList.brokenPosts
4645 DOC_START
4646 A list of ACL elements which, if matched, causes Squid to send
4647 an extra CRLF pair after the body of a PUT/POST request.
4648
4649 Some HTTP servers has broken implementations of PUT/POST,
4650 and rely on an extra CRLF pair sent by some WWW clients.
4651
4652 Quote from RFC2616 section 4.1 on this matter:
4653
4654 Note: certain buggy HTTP/1.0 client implementations generate an
4655 extra CRLF's after a POST request. To restate what is explicitly
4656 forbidden by the BNF, an HTTP/1.1 client must not preface or follow
4657 a request with an extra CRLF.
4658
4659 This clause only supports fast acl types.
4660 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
4661
4662 Example:
4663 acl buggy_server url_regex ^http://....
4664 broken_posts allow buggy_server
4665 DOC_END
4666
4667 NAME: adaptation_uses_indirect_client icap_uses_indirect_client
4668 COMMENT: on|off
4669 TYPE: onoff
4670 IFDEF: FOLLOW_X_FORWARDED_FOR&&USE_ADAPTATION
4671 DEFAULT: on
4672 LOC: Adaptation::Config::use_indirect_client
4673 DOC_START
4674 Controls whether the indirect client IP address (instead of the direct
4675 client IP address) is passed to adaptation services.
4676
4677 See also: follow_x_forwarded_for adaptation_send_client_ip
4678 DOC_END
4679
4680 NAME: via
4681 IFDEF: USE_HTTP_VIOLATIONS
4682 COMMENT: on|off
4683 TYPE: onoff
4684 DEFAULT: on
4685 LOC: Config.onoff.via
4686 DOC_START
4687 If set (default), Squid will include a Via header in requests and
4688 replies as required by RFC2616.
4689 DOC_END
4690
4691 NAME: ie_refresh
4692 COMMENT: on|off
4693 TYPE: onoff
4694 LOC: Config.onoff.ie_refresh
4695 DEFAULT: off
4696 DOC_START
4697 Microsoft Internet Explorer up until version 5.5 Service
4698 Pack 1 has an issue with transparent proxies, wherein it
4699 is impossible to force a refresh. Turning this on provides
4700 a partial fix to the problem, by causing all IMS-REFRESH
4701 requests from older IE versions to check the origin server
4702 for fresh content. This reduces hit ratio by some amount
4703 (~10% in my experience), but allows users to actually get
4704 fresh content when they want it. Note because Squid
4705 cannot tell if the user is using 5.5 or 5.5SP1, the behavior
4706 of 5.5 is unchanged from old versions of Squid (i.e. a
4707 forced refresh is impossible). Newer versions of IE will,
4708 hopefully, continue to have the new behavior and will be
4709 handled based on that assumption. This option defaults to
4710 the old Squid behavior, which is better for hit ratios but
4711 worse for clients using IE, if they need to be able to
4712 force fresh content.
4713 DOC_END
4714
4715 NAME: vary_ignore_expire
4716 COMMENT: on|off
4717 TYPE: onoff
4718 LOC: Config.onoff.vary_ignore_expire
4719 DEFAULT: off
4720 DOC_START
4721 Many HTTP servers supporting Vary gives such objects
4722 immediate expiry time with no cache-control header
4723 when requested by a HTTP/1.0 client. This option
4724 enables Squid to ignore such expiry times until
4725 HTTP/1.1 is fully implemented.
4726
4727 WARNING: If turned on this may eventually cause some
4728 varying objects not intended for caching to get cached.
4729 DOC_END
4730
4731 NAME: request_entities
4732 TYPE: onoff
4733 LOC: Config.onoff.request_entities
4734 DEFAULT: off
4735 DOC_START
4736 Squid defaults to deny GET and HEAD requests with request entities,
4737 as the meaning of such requests are undefined in the HTTP standard
4738 even if not explicitly forbidden.
4739
4740 Set this directive to on if you have clients which insists
4741 on sending request entities in GET or HEAD requests. But be warned
4742 that there is server software (both proxies and web servers) which
4743 can fail to properly process this kind of request which may make you
4744 vulnerable to cache pollution attacks if enabled.
4745 DOC_END
4746
4747 NAME: request_header_access
4748 IFDEF: USE_HTTP_VIOLATIONS
4749 TYPE: http_header_access
4750 LOC: Config.request_header_access
4751 DEFAULT: none
4752 DOC_START
4753 Usage: request_header_access header_name allow|deny [!]aclname ...
4754
4755 WARNING: Doing this VIOLATES the HTTP standard. Enabling
4756 this feature could make you liable for problems which it
4757 causes.
4758
4759 This option replaces the old 'anonymize_headers' and the
4760 older 'http_anonymizer' option with something that is much
4761 more configurable. A list of ACLs for each header name allows
4762 removal of specific header fields under specific conditions.
4763
4764 This option only applies to outgoing HTTP request headers (i.e.,
4765 headers sent by Squid to the next HTTP hop such as a cache peer
4766 or an origin server). The option has no effect during cache hit
4767 detection. The equivalent adaptation vectoring point in ICAP
4768 terminology is post-cache REQMOD.
4769
4770 The option is applied to individual outgoing request header
4771 fields. For each request header field F, Squid uses the first
4772 qualifying sets of request_header_access rules:
4773
4774 1. Rules with header_name equal to F's name.
4775 2. Rules with header_name 'Other', provided F's name is not
4776 on the hard-coded list of commonly used HTTP header names.
4777 3. Rules with header_name 'All'.
4778
4779 Within that qualifying rule set, rule ACLs are checked as usual.
4780 If ACLs of an "allow" rule match, the header field is allowed to
4781 go through as is. If ACLs of a "deny" rule match, the header is
4782 removed and request_header_replace is then checked to identify
4783 if the removed header has a replacement. If no rules within the
4784 set have matching ACLs, the header field is left as is.
4785
4786 For example, to achieve the same behavior as the old
4787 'http_anonymizer standard' option, you should use:
4788
4789 request_header_access From deny all
4790 request_header_access Referer deny all
4791 request_header_access Server deny all
4792 request_header_access User-Agent deny all
4793 request_header_access WWW-Authenticate deny all
4794 request_header_access Link deny all
4795
4796 Or, to reproduce the old 'http_anonymizer paranoid' feature
4797 you should use:
4798
4799 request_header_access Allow allow all
4800 request_header_access Authorization allow all
4801 request_header_access WWW-Authenticate allow all
4802 request_header_access Proxy-Authorization allow all
4803 request_header_access Proxy-Authenticate allow all
4804 request_header_access Cache-Control allow all
4805 request_header_access Content-Encoding allow all
4806 request_header_access Content-Length allow all
4807 request_header_access Content-Type allow all
4808 request_header_access Date allow all
4809 request_header_access Expires allow all
4810 request_header_access Host allow all
4811 request_header_access If-Modified-Since allow all
4812 request_header_access Last-Modified allow all
4813 request_header_access Location allow all
4814 request_header_access Pragma allow all
4815 request_header_access Accept allow all
4816 request_header_access Accept-Charset allow all
4817 request_header_access Accept-Encoding allow all
4818 request_header_access Accept-Language allow all
4819 request_header_access Content-Language allow all
4820 request_header_access Mime-Version allow all
4821 request_header_access Retry-After allow all
4822 request_header_access Title allow all
4823 request_header_access Connection allow all
4824 request_header_access All deny all
4825
4826 although many of those are HTTP reply headers, and so should be
4827 controlled with the reply_header_access directive.
4828
4829 By default, all headers are allowed (no anonymizing is
4830 performed).
4831 DOC_END
4832
4833 NAME: reply_header_access
4834 IFDEF: USE_HTTP_VIOLATIONS
4835 TYPE: http_header_access
4836 LOC: Config.reply_header_access
4837 DEFAULT: none
4838 DOC_START
4839 Usage: reply_header_access header_name allow|deny [!]aclname ...
4840
4841 WARNING: Doing this VIOLATES the HTTP standard. Enabling
4842 this feature could make you liable for problems which it
4843 causes.
4844
4845 This option only applies to reply headers, i.e., from the
4846 server to the client.
4847
4848 This is the same as request_header_access, but in the other
4849 direction. Please see request_header_access for detailed
4850 documentation.
4851
4852 For example, to achieve the same behavior as the old
4853 'http_anonymizer standard' option, you should use:
4854
4855 reply_header_access From deny all
4856 reply_header_access Referer deny all
4857 reply_header_access Server deny all
4858 reply_header_access User-Agent deny all
4859 reply_header_access WWW-Authenticate deny all
4860 reply_header_access Link deny all
4861
4862 Or, to reproduce the old 'http_anonymizer paranoid' feature
4863 you should use:
4864
4865 reply_header_access Allow allow all
4866 reply_header_access Authorization allow all
4867 reply_header_access WWW-Authenticate allow all
4868 reply_header_access Proxy-Authorization allow all
4869 reply_header_access Proxy-Authenticate allow all
4870 reply_header_access Cache-Control allow all
4871 reply_header_access Content-Encoding allow all
4872 reply_header_access Content-Length allow all
4873 reply_header_access Content-Type allow all
4874 reply_header_access Date allow all
4875 reply_header_access Expires allow all
4876 reply_header_access Host allow all
4877 reply_header_access If-Modified-Since allow all
4878 reply_header_access Last-Modified allow all
4879 reply_header_access Location allow all
4880 reply_header_access Pragma allow all
4881 reply_header_access Accept allow all
4882 reply_header_access Accept-Charset allow all
4883 reply_header_access Accept-Encoding allow all
4884 reply_header_access Accept-Language allow all
4885 reply_header_access Content-Language allow all
4886 reply_header_access Mime-Version allow all
4887 reply_header_access Retry-After allow all
4888 reply_header_access Title allow all
4889 reply_header_access Connection allow all
4890 reply_header_access All deny all
4891
4892 although the HTTP request headers won't be usefully controlled
4893 by this directive -- see request_header_access for details.
4894
4895 By default, all headers are allowed (no anonymizing is
4896 performed).
4897 DOC_END
4898
4899 NAME: request_header_replace header_replace
4900 IFDEF: USE_HTTP_VIOLATIONS
4901 TYPE: http_header_replace
4902 LOC: Config.request_header_access
4903 DEFAULT: none
4904 DOC_START
4905 Usage: request_header_replace header_name message
4906 Example: request_header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit)
4907
4908 This option allows you to change the contents of headers
4909 denied with request_header_access above, by replacing them
4910 with some fixed string. This replaces the old fake_user_agent
4911 option.
4912
4913 This only applies to request headers, not reply headers.
4914
4915 By default, headers are removed if denied.
4916 DOC_END
4917
4918 NAME: reply_header_replace
4919 IFDEF: USE_HTTP_VIOLATIONS
4920 TYPE: http_header_replace
4921 LOC: Config.reply_header_access
4922 DEFAULT: none
4923 DOC_START
4924 Usage: reply_header_replace header_name message
4925 Example: reply_header_replace Server Foo/1.0
4926
4927 This option allows you to change the contents of headers
4928 denied with reply_header_access above, by replacing them
4929 with some fixed string.
4930
4931 This only applies to reply headers, not request headers.
4932
4933 By default, headers are removed if denied.
4934 DOC_END
4935
4936 NAME: request_header_add
4937 TYPE: HeaderWithAclList
4938 LOC: Config.request_header_add
4939 DEFAULT: none
4940 DOC_START
4941 Usage: request_header_add field-name field-value acl1 [acl2] ...
4942 Example: request_header_add X-Client-CA "CA=%ssl::>cert_issuer" all
4943
4944 This option adds header fields to outgoing HTTP requests (i.e.,
4945 request headers sent by Squid to the next HTTP hop such as a
4946 cache peer or an origin server). The option has no effect during
4947 cache hit detection. The equivalent adaptation vectoring point
4948 in ICAP terminology is post-cache REQMOD.
4949
4950 Field-name is a token specifying an HTTP header name. If a
4951 standard HTTP header name is used, Squid does not check whether
4952 the new header conflicts with any existing headers or violates
4953 HTTP rules. If the request to be modified already contains a
4954 field with the same name, the old field is preserved but the
4955 header field values are not merged.
4956
4957 Field-value is either a token or a quoted string. If quoted
4958 string format is used, then the surrounding quotes are removed
4959 while escape sequences and %macros are processed.
4960
4961 In theory, all of the logformat codes can be used as %macros.
4962 However, unlike logging (which happens at the very end of
4963 transaction lifetime), the transaction may not yet have enough
4964 information to expand a macro when the new header value is needed.
4965 And some information may already be available to Squid but not yet
4966 committed where the macro expansion code can access it (report
4967 such instances!). The macro will be expanded into a single dash
4968 ('-') in such cases. Not all macros have been tested.
4969
4970 One or more Squid ACLs may be specified to restrict header
4971 injection to matching requests. As always in squid.conf, all
4972 ACLs in an option ACL list must be satisfied for the insertion
4973 to happen. The request_header_add option supports fast ACLs
4974 only.
4975 DOC_END
4976
4977 NAME: relaxed_header_parser
4978 COMMENT: on|off|warn
4979 TYPE: tristate
4980 LOC: Config.onoff.relaxed_header_parser
4981 DEFAULT: on
4982 DOC_START
4983 In the default "on" setting Squid accepts certain forms
4984 of non-compliant HTTP messages where it is unambiguous
4985 what the sending application intended even if the message
4986 is not correctly formatted. The messages is then normalized
4987 to the correct form when forwarded by Squid.
4988
4989 If set to "warn" then a warning will be emitted in cache.log
4990 each time such HTTP error is encountered.
4991
4992 If set to "off" then such HTTP errors will cause the request
4993 or response to be rejected.
4994 DOC_END
4995
4996 COMMENT_START
4997 TIMEOUTS
4998 -----------------------------------------------------------------------------
4999 COMMENT_END
5000
5001 NAME: forward_timeout
5002 COMMENT: time-units
5003 TYPE: time_t
5004 LOC: Config.Timeout.forward
5005 DEFAULT: 4 minutes
5006 DOC_START
5007 This parameter specifies how long Squid should at most attempt in
5008 finding a forwarding path for the request before giving up.
5009 DOC_END
5010
5011 NAME: connect_timeout
5012 COMMENT: time-units
5013 TYPE: time_t
5014 LOC: Config.Timeout.connect
5015 DEFAULT: 1 minute
5016 DOC_START
5017 This parameter specifies how long to wait for the TCP connect to
5018 the requested server or peer to complete before Squid should
5019 attempt to find another path where to forward the request.
5020 DOC_END
5021
5022 NAME: peer_connect_timeout
5023 COMMENT: time-units
5024 TYPE: time_t
5025 LOC: Config.Timeout.peer_connect
5026 DEFAULT: 30 seconds
5027 DOC_START
5028 This parameter specifies how long to wait for a pending TCP
5029 connection to a peer cache. The default is 30 seconds. You
5030 may also set different timeout values for individual neighbors
5031 with the 'connect-timeout' option on a 'cache_peer' line.
5032 DOC_END
5033
5034 NAME: read_timeout
5035 COMMENT: time-units
5036 TYPE: time_t
5037 LOC: Config.Timeout.read
5038 DEFAULT: 15 minutes
5039 DOC_START
5040 The read_timeout is applied on server-side connections. After
5041 each successful read(), the timeout will be extended by this
5042 amount. If no data is read again after this amount of time,
5043 the request is aborted and logged with ERR_READ_TIMEOUT. The
5044 default is 15 minutes.
5045 DOC_END
5046
5047 NAME: write_timeout
5048 COMMENT: time-units
5049 TYPE: time_t
5050 LOC: Config.Timeout.write
5051 DEFAULT: 15 minutes
5052 DOC_START
5053 This timeout is tracked for all connections that have data
5054 available for writing and are waiting for the socket to become
5055 ready. After each successful write, the timeout is extended by
5056 the configured amount. If Squid has data to write but the
5057 connection is not ready for the configured duration, the
5058 transaction associated with the connection is terminated. The
5059 default is 15 minutes.
5060 DOC_END
5061
5062 NAME: request_timeout
5063 TYPE: time_t
5064 LOC: Config.Timeout.request
5065 DEFAULT: 5 minutes
5066 DOC_START
5067 How long to wait for complete HTTP request headers after initial
5068 connection establishment.
5069 DOC_END
5070
5071 NAME: client_idle_pconn_timeout persistent_request_timeout
5072 TYPE: time_t
5073 LOC: Config.Timeout.clientIdlePconn
5074 DEFAULT: 2 minutes
5075 DOC_START
5076 How long to wait for the next HTTP request on a persistent
5077 client connection after the previous request completes.
5078 DOC_END
5079
5080 NAME: client_lifetime
5081 COMMENT: time-units
5082 TYPE: time_t
5083 LOC: Config.Timeout.lifetime
5084 DEFAULT: 1 day
5085 DOC_START
5086 The maximum amount of time a client (browser) is allowed to
5087 remain connected to the cache process. This protects the Cache
5088 from having a lot of sockets (and hence file descriptors) tied up
5089 in a CLOSE_WAIT state from remote clients that go away without
5090 properly shutting down (either because of a network failure or
5091 because of a poor client implementation). The default is one
5092 day, 1440 minutes.
5093
5094 NOTE: The default value is intended to be much larger than any
5095 client would ever need to be connected to your cache. You
5096 should probably change client_lifetime only as a last resort.
5097 If you seem to have many client connections tying up
5098 filedescriptors, we recommend first tuning the read_timeout,
5099 request_timeout, persistent_request_timeout and quick_abort values.
5100 DOC_END
5101
5102 NAME: half_closed_clients
5103 TYPE: onoff
5104 LOC: Config.onoff.half_closed_clients
5105 DEFAULT: off
5106 DOC_START
5107 Some clients may shutdown the sending side of their TCP
5108 connections, while leaving their receiving sides open. Sometimes,
5109 Squid can not tell the difference between a half-closed and a
5110 fully-closed TCP connection.
5111
5112 By default, Squid will immediately close client connections when
5113 read(2) returns "no more data to read."
5114
5115 Change this option to 'on' and Squid will keep open connections
5116 until a read(2) or write(2) on the socket returns an error.
5117 This may show some benefits for reverse proxies. But if not
5118 it is recommended to leave OFF.
5119 DOC_END
5120
5121 NAME: server_idle_pconn_timeout pconn_timeout
5122 TYPE: time_t
5123 LOC: Config.Timeout.serverIdlePconn
5124 DEFAULT: 1 minute
5125 DOC_START
5126 Timeout for idle persistent connections to servers and other
5127 proxies.
5128 DOC_END
5129
5130 NAME: ident_timeout
5131 TYPE: time_t
5132 IFDEF: USE_IDENT
5133 LOC: Ident::TheConfig.timeout
5134 DEFAULT: 10 seconds
5135 DOC_START
5136 Maximum time to wait for IDENT lookups to complete.
5137
5138 If this is too high, and you enabled IDENT lookups from untrusted
5139 users, you might be susceptible to denial-of-service by having
5140 many ident requests going at once.
5141 DOC_END
5142
5143 NAME: shutdown_lifetime
5144 COMMENT: time-units
5145 TYPE: time_t
5146 LOC: Config.shutdownLifetime
5147 DEFAULT: 30 seconds
5148 DOC_START
5149 When SIGTERM or SIGHUP is received, the cache is put into
5150 "shutdown pending" mode until all active sockets are closed.
5151 This value is the lifetime to set for all open descriptors
5152 during shutdown mode. Any active clients after this many
5153 seconds will receive a 'timeout' message.
5154 DOC_END
5155
5156 COMMENT_START
5157 ADMINISTRATIVE PARAMETERS
5158 -----------------------------------------------------------------------------
5159 COMMENT_END
5160
5161 NAME: cache_mgr
5162 TYPE: string
5163 DEFAULT: webmaster
5164 LOC: Config.adminEmail
5165 DOC_START
5166 Email-address of local cache manager who will receive
5167 mail if the cache dies. The default is "webmaster."
5168 DOC_END
5169
5170 NAME: mail_from
5171 TYPE: string
5172 DEFAULT: none
5173 LOC: Config.EmailFrom
5174 DOC_START
5175 From: email-address for mail sent when the cache dies.
5176 The default is to use 'appname@unique_hostname'.
5177 Default appname value is "squid", can be changed into
5178 src/globals.h before building squid.
5179 DOC_END
5180
5181 NAME: mail_program
5182 TYPE: eol
5183 DEFAULT: mail
5184 LOC: Config.EmailProgram
5185 DOC_START
5186 Email program used to send mail if the cache dies.
5187 The default is "mail". The specified program must comply
5188 with the standard Unix mail syntax:
5189 mail-program recipient < mailfile
5190
5191 Optional command line options can be specified.
5192 DOC_END
5193
5194 NAME: cache_effective_user
5195 TYPE: string
5196 DEFAULT: @DEFAULT_CACHE_EFFECTIVE_USER@
5197 LOC: Config.effectiveUser
5198 DOC_START
5199 If you start Squid as root, it will change its effective/real
5200 UID/GID to the user specified below. The default is to change
5201 to UID of @DEFAULT_CACHE_EFFECTIVE_USER@.
5202 see also; cache_effective_group
5203 DOC_END
5204
5205 NAME: cache_effective_group
5206 TYPE: string
5207 DEFAULT: none
5208 LOC: Config.effectiveGroup
5209 DOC_START
5210 Squid sets the GID to the effective user's default group ID
5211 (taken from the password file) and supplementary group list
5212 from the groups membership.
5213
5214 If you want Squid to run with a specific GID regardless of
5215 the group memberships of the effective user then set this
5216 to the group (or GID) you want Squid to run as. When set
5217 all other group privileges of the effective user are ignored
5218 and only this GID is effective. If Squid is not started as
5219 root the user starting Squid MUST be member of the specified
5220 group.
5221
5222 This option is not recommended by the Squid Team.
5223 Our preference is for administrators to configure a secure
5224 user account for squid with UID/GID matching system policies.
5225 DOC_END
5226
5227 NAME: httpd_suppress_version_string
5228 COMMENT: on|off
5229 TYPE: onoff
5230 DEFAULT: off
5231 LOC: Config.onoff.httpd_suppress_version_string
5232 DOC_START
5233 Suppress Squid version string info in HTTP headers and HTML error pages.
5234 DOC_END
5235
5236 NAME: visible_hostname
5237 TYPE: string
5238 LOC: Config.visibleHostname
5239 DEFAULT: none
5240 DOC_START
5241 If you want to present a special hostname in error messages, etc,
5242 define this. Otherwise, the return value of gethostname()
5243 will be used. If you have multiple caches in a cluster and
5244 get errors about IP-forwarding you must set them to have individual
5245 names with this setting.
5246 DOC_END
5247
5248 NAME: unique_hostname
5249 TYPE: string
5250 LOC: Config.uniqueHostname
5251 DEFAULT: none
5252 DOC_START
5253 If you want to have multiple machines with the same
5254 'visible_hostname' you must give each machine a different
5255 'unique_hostname' so forwarding loops can be detected.
5256 DOC_END
5257
5258 NAME: hostname_aliases
5259 TYPE: wordlist
5260 LOC: Config.hostnameAliases
5261 DEFAULT: none
5262 DOC_START
5263 A list of other DNS names your cache has.
5264 DOC_END
5265
5266 NAME: umask
5267 TYPE: int
5268 LOC: Config.umask
5269 DEFAULT: 027
5270 DOC_START
5271 Minimum umask which should be enforced while the proxy
5272 is running, in addition to the umask set at startup.
5273
5274 For a traditional octal representation of umasks, start
5275 your value with 0.
5276 DOC_END
5277
5278 COMMENT_START
5279 OPTIONS FOR THE CACHE REGISTRATION SERVICE
5280 -----------------------------------------------------------------------------
5281
5282 This section contains parameters for the (optional) cache
5283 announcement service. This service is provided to help
5284 cache administrators locate one another in order to join or
5285 create cache hierarchies.
5286
5287 An 'announcement' message is sent (via UDP) to the registration
5288 service by Squid. By default, the announcement message is NOT
5289 SENT unless you enable it with 'announce_period' below.
5290
5291 The announcement message includes your hostname, plus the
5292 following information from this configuration file:
5293
5294 http_port
5295 icp_port
5296 cache_mgr
5297
5298 All current information is processed regularly and made
5299 available on the Web at http://www.ircache.net/Cache/Tracker/.
5300 COMMENT_END
5301
5302 NAME: announce_period
5303 TYPE: time_t
5304 LOC: Config.Announce.period
5305 DEFAULT: 0
5306 DOC_START
5307 This is how frequently to send cache announcements. The
5308 default is `0' which disables sending the announcement
5309 messages.
5310
5311 To enable announcing your cache, just set an announce period.
5312
5313 Example:
5314 announce_period 1 day
5315 DOC_END
5316
5317 NAME: announce_host
5318 TYPE: string
5319 DEFAULT: tracker.ircache.net
5320 LOC: Config.Announce.host
5321 DOC_NONE
5322
5323 NAME: announce_file
5324 TYPE: string
5325 DEFAULT: none
5326 LOC: Config.Announce.file
5327 DOC_NONE
5328
5329 NAME: announce_port
5330 TYPE: u_short
5331 DEFAULT: 3131
5332 LOC: Config.Announce.port
5333 DOC_START
5334 announce_host and announce_port set the hostname and port
5335 number where the registration message will be sent.
5336
5337 Hostname will default to 'tracker.ircache.net' and port will
5338 default default to 3131. If the 'filename' argument is given,
5339 the contents of that file will be included in the announce
5340 message.
5341 DOC_END
5342
5343 COMMENT_START
5344 HTTPD-ACCELERATOR OPTIONS
5345 -----------------------------------------------------------------------------
5346 COMMENT_END
5347
5348 NAME: httpd_accel_surrogate_id
5349 TYPE: string
5350 DEFAULT: none
5351 LOC: Config.Accel.surrogate_id
5352 DOC_START
5353 Surrogates (http://www.esi.org/architecture_spec_1.0.html)
5354 need an identification token to allow control targeting. Because
5355 a farm of surrogates may all perform the same tasks, they may share
5356 an identification token.
5357
5358 The default ID is the visible_hostname
5359 DOC_END
5360
5361 NAME: http_accel_surrogate_remote
5362 COMMENT: on|off
5363 TYPE: onoff
5364 DEFAULT: off
5365 LOC: Config.onoff.surrogate_is_remote
5366 DOC_START
5367 Remote surrogates (such as those in a CDN) honour Surrogate-Control: no-store-remote.
5368 Set this to on to have squid behave as a remote surrogate.
5369 DOC_END
5370
5371 NAME: esi_parser
5372 IFDEF: USE_SQUID_ESI
5373 COMMENT: libxml2|expat|custom
5374 TYPE: string
5375 LOC: ESIParser::Type
5376 DEFAULT: custom
5377 DOC_START
5378 ESI markup is not strictly XML compatible. The custom ESI parser
5379 will give higher performance, but cannot handle non ASCII character
5380 encodings.
5381 DOC_END
5382
5383 COMMENT_START
5384 DELAY POOL PARAMETERS
5385 -----------------------------------------------------------------------------
5386 COMMENT_END
5387
5388 NAME: delay_pools
5389 TYPE: delay_pool_count
5390 DEFAULT: 0
5391 IFDEF: USE_DELAY_POOLS
5392 LOC: Config.Delay
5393 DOC_START
5394 This represents the number of delay pools to be used. For example,
5395 if you have one class 2 delay pool and one class 3 delays pool, you
5396 have a total of 2 delay pools.
5397 DOC_END
5398
5399 NAME: delay_class
5400 TYPE: delay_pool_class
5401 DEFAULT: none
5402 IFDEF: USE_DELAY_POOLS
5403 LOC: Config.Delay
5404 DOC_START
5405 This defines the class of each delay pool. There must be exactly one
5406 delay_class line for each delay pool. For example, to define two
5407 delay pools, one of class 2 and one of class 3, the settings above
5408 and here would be:
5409
5410 Example:
5411 delay_pools 4 # 4 delay pools
5412 delay_class 1 2 # pool 1 is a class 2 pool
5413 delay_class 2 3 # pool 2 is a class 3 pool
5414 delay_class 3 4 # pool 3 is a class 4 pool
5415 delay_class 4 5 # pool 4 is a class 5 pool
5416
5417 The delay pool classes are:
5418
5419 class 1 Everything is limited by a single aggregate
5420 bucket.
5421
5422 class 2 Everything is limited by a single aggregate
5423 bucket as well as an "individual" bucket chosen
5424 from bits 25 through 32 of the IPv4 address.
5425
5426 class 3 Everything is limited by a single aggregate
5427 bucket as well as a "network" bucket chosen
5428 from bits 17 through 24 of the IP address and a
5429 "individual" bucket chosen from bits 17 through
5430 32 of the IPv4 address.
5431
5432 class 4 Everything in a class 3 delay pool, with an
5433 additional limit on a per user basis. This
5434 only takes effect if the username is established
5435 in advance - by forcing authentication in your
5436 http_access rules.
5437
5438 class 5 Requests are grouped according their tag (see
5439 external_acl's tag= reply).
5440
5441
5442 Each pool also requires a delay_parameters directive to configure the pool size
5443 and speed limits used whenever the pool is applied to a request. Along with
5444 a set of delay_access directives to determine when it is used.
5445
5446 NOTE: If an IP address is a.b.c.d
5447 -> bits 25 through 32 are "d"
5448 -> bits 17 through 24 are "c"
5449 -> bits 17 through 32 are "c * 256 + d"
5450
5451 NOTE-2: Due to the use of bitmasks in class 2,3,4 pools they only apply to
5452 IPv4 traffic. Class 1 and 5 pools may be used with IPv6 traffic.
5453 DOC_END
5454
5455 NAME: delay_access
5456 TYPE: delay_pool_access
5457 DEFAULT: none
5458 IFDEF: USE_DELAY_POOLS
5459 LOC: Config.Delay
5460 DOC_START
5461 This is used to determine which delay pool a request falls into.
5462
5463 delay_access is sorted per pool and the matching starts with pool 1,
5464 then pool 2, ..., and finally pool N. The first delay pool where the
5465 request is allowed is selected for the request. If it does not allow
5466 the request to any pool then the request is not delayed (default).
5467
5468 For example, if you want some_big_clients in delay
5469 pool 1 and lotsa_little_clients in delay pool 2:
5470
5471 Example:
5472 delay_access 1 allow some_big_clients
5473 delay_access 1 deny all
5474 delay_access 2 allow lotsa_little_clients
5475 delay_access 2 deny all
5476 delay_access 3 allow authenticated_clients
5477 DOC_END
5478
5479 NAME: delay_parameters
5480 TYPE: delay_pool_rates
5481 DEFAULT: none
5482 IFDEF: USE_DELAY_POOLS
5483 LOC: Config.Delay
5484 DOC_START
5485 This defines the parameters for a delay pool. Each delay pool has
5486 a number of "buckets" associated with it, as explained in the
5487 description of delay_class.
5488
5489 For a class 1 delay pool, the syntax is:
5490 delay_pools pool 1
5491 delay_parameters pool aggregate
5492
5493 For a class 2 delay pool:
5494 delay_pools pool 2
5495 delay_parameters pool aggregate individual
5496
5497 For a class 3 delay pool:
5498 delay_pools pool 3
5499 delay_parameters pool aggregate network individual
5500
5501 For a class 4 delay pool:
5502 delay_pools pool 4
5503 delay_parameters pool aggregate network individual user
5504
5505 For a class 5 delay pool:
5506 delay_pools pool 5
5507 delay_parameters pool tagrate
5508
5509 The option variables are:
5510
5511 pool a pool number - ie, a number between 1 and the
5512 number specified in delay_pools as used in
5513 delay_class lines.
5514
5515 aggregate the speed limit parameters for the aggregate bucket
5516 (class 1, 2, 3).
5517
5518 individual the speed limit parameters for the individual
5519 buckets (class 2, 3).
5520
5521 network the speed limit parameters for the network buckets
5522 (class 3).
5523
5524 user the speed limit parameters for the user buckets
5525 (class 4).
5526
5527 tagrate the speed limit parameters for the tag buckets
5528 (class 5).
5529
5530 A pair of delay parameters is written restore/maximum, where restore is
5531 the number of bytes (not bits - modem and network speeds are usually
5532 quoted in bits) per second placed into the bucket, and maximum is the
5533 maximum number of bytes which can be in the bucket at any time.
5534
5535 There must be one delay_parameters line for each delay pool.
5536
5537
5538 For example, if delay pool number 1 is a class 2 delay pool as in the
5539 above example, and is being used to strictly limit each host to 64Kbit/sec
5540 (plus overheads), with no overall limit, the line is:
5541
5542 delay_parameters 1 -1/-1 8000/8000
5543
5544 Note that 8 x 8000 KByte/sec -> 64Kbit/sec.
5545
5546 Note that the figure -1 is used to represent "unlimited".
5547
5548
5549 And, if delay pool number 2 is a class 3 delay pool as in the above
5550 example, and you want to limit it to a total of 256Kbit/sec (strict limit)
5551 with each 8-bit network permitted 64Kbit/sec (strict limit) and each
5552 individual host permitted 4800bit/sec with a bucket maximum size of 64Kbits
5553 to permit a decent web page to be downloaded at a decent speed
5554 (if the network is not being limited due to overuse) but slow down
5555 large downloads more significantly:
5556
5557 delay_parameters 2 32000/32000 8000/8000 600/8000
5558
5559 Note that 8 x 32000 KByte/sec -> 256Kbit/sec.
5560 8 x 8000 KByte/sec -> 64Kbit/sec.
5561 8 x 600 Byte/sec -> 4800bit/sec.
5562
5563
5564 Finally, for a class 4 delay pool as in the example - each user will
5565 be limited to 128Kbits/sec no matter how many workstations they are logged into.:
5566
5567 delay_parameters 4 32000/32000 8000/8000 600/64000 16000/16000
5568 DOC_END
5569
5570 NAME: delay_initial_bucket_level
5571 COMMENT: (percent, 0-100)
5572 TYPE: u_short
5573 DEFAULT: 50
5574 IFDEF: USE_DELAY_POOLS
5575 LOC: Config.Delay.initial
5576 DOC_START
5577 The initial bucket percentage is used to determine how much is put
5578 in each bucket when squid starts, is reconfigured, or first notices
5579 a host accessing it (in class 2 and class 3, individual hosts and
5580 networks only have buckets associated with them once they have been
5581 "seen" by squid).
5582 DOC_END
5583
5584 COMMENT_START
5585 CLIENT DELAY POOL PARAMETERS
5586 -----------------------------------------------------------------------------
5587 COMMENT_END
5588
5589 NAME: client_delay_pools
5590 TYPE: client_delay_pool_count
5591 DEFAULT: 0
5592 IFDEF: USE_DELAY_POOLS
5593 LOC: Config.ClientDelay
5594 DOC_START
5595 This option specifies the number of client delay pools used. It must
5596 preceed other client_delay_* options.
5597
5598 Example:
5599 client_delay_pools 2
5600 DOC_END
5601
5602 NAME: client_delay_initial_bucket_level
5603 COMMENT: (percent, 0-no_limit)
5604 TYPE: u_short
5605 DEFAULT: 50
5606 IFDEF: USE_DELAY_POOLS
5607 LOC: Config.ClientDelay.initial
5608 DOC_START
5609 This option determines the initial bucket size as a percentage of
5610 max_bucket_size from client_delay_parameters. Buckets are created
5611 at the time of the "first" connection from the matching IP. Idle
5612 buckets are periodically deleted up.
5613
5614 You can specify more than 100 percent but note that such "oversized"
5615 buckets are not refilled until their size goes down to max_bucket_size
5616 from client_delay_parameters.
5617
5618 Example:
5619 client_delay_initial_bucket_level 50
5620 DOC_END
5621
5622 NAME: client_delay_parameters
5623 TYPE: client_delay_pool_rates
5624 DEFAULT: none
5625 IFDEF: USE_DELAY_POOLS
5626 LOC: Config.ClientDelay
5627 DOC_START
5628
5629 This option configures client-side bandwidth limits using the
5630 following format:
5631
5632 client_delay_parameters pool speed_limit max_bucket_size
5633
5634 pool is an integer ID used for client_delay_access matching.
5635
5636 speed_limit is bytes added to the bucket per second.
5637
5638 max_bucket_size is the maximum size of a bucket, enforced after any
5639 speed_limit additions.
5640
5641 Please see the delay_parameters option for more information and
5642 examples.
5643
5644 Example:
5645 client_delay_parameters 1 1024 2048
5646 client_delay_parameters 2 51200 16384
5647 DOC_END
5648
5649 NAME: client_delay_access
5650 TYPE: client_delay_pool_access
5651 DEFAULT: none
5652 IFDEF: USE_DELAY_POOLS
5653 LOC: Config.ClientDelay
5654 DOC_START
5655
5656 This option determines the client-side delay pool for the
5657 request:
5658
5659 client_delay_access pool_ID allow|deny acl_name
5660
5661 All client_delay_access options are checked in their pool ID
5662 order, starting with pool 1. The first checked pool with allowed
5663 request is selected for the request. If no ACL matches or there
5664 are no client_delay_access options, the request bandwidth is not
5665 limited.
5666
5667 The ACL-selected pool is then used to find the
5668 client_delay_parameters for the request. Client-side pools are
5669 not used to aggregate clients. Clients are always aggregated
5670 based on their source IP addresses (one bucket per source IP).
5671
5672 Please see delay_access for more examples.
5673
5674 Example:
5675 client_delay_access 1 allow low_rate_network
5676 client_delay_access 2 allow vips_network
5677 DOC_END
5678
5679 COMMENT_START
5680 WCCPv1 AND WCCPv2 CONFIGURATION OPTIONS
5681 -----------------------------------------------------------------------------
5682 COMMENT_END
5683
5684 NAME: wccp_router
5685 TYPE: address
5686 LOC: Config.Wccp.router
5687 DEFAULT: any_addr
5688 IFDEF: USE_WCCP
5689 DOC_START
5690 Use this option to define your WCCP ``home'' router for
5691 Squid.
5692
5693 wccp_router supports a single WCCP(v1) router
5694
5695 wccp2_router supports multiple WCCPv2 routers
5696
5697 only one of the two may be used at the same time and defines
5698 which version of WCCP to use.
5699 DOC_END
5700
5701 NAME: wccp2_router
5702 TYPE: IpAddress_list
5703 LOC: Config.Wccp2.router
5704 DEFAULT: none
5705 IFDEF: USE_WCCPv2
5706 DOC_START
5707 Use this option to define your WCCP ``home'' router for
5708 Squid.
5709
5710 wccp_router supports a single WCCP(v1) router
5711
5712 wccp2_router supports multiple WCCPv2 routers
5713
5714 only one of the two may be used at the same time and defines
5715 which version of WCCP to use.
5716 DOC_END
5717
5718 NAME: wccp_version
5719 TYPE: int
5720 LOC: Config.Wccp.version
5721 DEFAULT: 4
5722 IFDEF: USE_WCCP
5723 DOC_START
5724 This directive is only relevant if you need to set up WCCP(v1)
5725 to some very old and end-of-life Cisco routers. In all other
5726 setups it must be left unset or at the default setting.
5727 It defines an internal version in the WCCP(v1) protocol,
5728 with version 4 being the officially documented protocol.
5729
5730 According to some users, Cisco IOS 11.2 and earlier only
5731 support WCCP version 3. If you're using that or an earlier
5732 version of IOS, you may need to change this value to 3, otherwise
5733 do not specify this parameter.
5734 DOC_END
5735
5736 NAME: wccp2_rebuild_wait
5737 TYPE: onoff
5738 LOC: Config.Wccp2.rebuildwait
5739 DEFAULT: on
5740 IFDEF: USE_WCCPv2
5741 DOC_START
5742 If this is enabled Squid will wait for the cache dir rebuild to finish
5743 before sending the first wccp2 HereIAm packet
5744 DOC_END
5745
5746 NAME: wccp2_forwarding_method
5747 TYPE: wccp2_method
5748 LOC: Config.Wccp2.forwarding_method
5749 DEFAULT: gre
5750 IFDEF: USE_WCCPv2
5751 DOC_START
5752 WCCP2 allows the setting of forwarding methods between the
5753 router/switch and the cache. Valid values are as follows:
5754
5755 gre - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
5756 l2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
5757
5758 Currently (as of IOS 12.4) cisco routers only support GRE.
5759 Cisco switches only support the L2 redirect assignment method.
5760 DOC_END
5761
5762 NAME: wccp2_return_method
5763 TYPE: wccp2_method
5764 LOC: Config.Wccp2.return_method
5765 DEFAULT: gre
5766 IFDEF: USE_WCCPv2
5767 DOC_START
5768 WCCP2 allows the setting of return methods between the
5769 router/switch and the cache for packets that the cache
5770 decides not to handle. Valid values are as follows:
5771
5772 gre - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
5773 l2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
5774
5775 Currently (as of IOS 12.4) cisco routers only support GRE.
5776 Cisco switches only support the L2 redirect assignment.
5777
5778 If the "ip wccp redirect exclude in" command has been
5779 enabled on the cache interface, then it is still safe for
5780 the proxy server to use a l2 redirect method even if this
5781 option is set to GRE.
5782 DOC_END
5783
5784 NAME: wccp2_assignment_method
5785 TYPE: wccp2_amethod
5786 LOC: Config.Wccp2.assignment_method
5787 DEFAULT: hash
5788 IFDEF: USE_WCCPv2
5789 DOC_START
5790 WCCP2 allows the setting of methods to assign the WCCP hash
5791 Valid values are as follows:
5792
5793 hash - Hash assignment
5794 mask - Mask assignment
5795
5796 As a general rule, cisco routers support the hash assignment method
5797 and cisco switches support the mask assignment method.
5798 DOC_END
5799
5800 NAME: wccp2_service
5801 TYPE: wccp2_service
5802 LOC: Config.Wccp2.info
5803 DEFAULT_IF_NONE: standard 0
5804 IFDEF: USE_WCCPv2
5805 DOC_START
5806 WCCP2 allows for multiple traffic services. There are two
5807 types: "standard" and "dynamic". The standard type defines
5808 one service id - http (id 0). The dynamic service ids can be from
5809 51 to 255 inclusive. In order to use a dynamic service id
5810 one must define the type of traffic to be redirected; this is done
5811 using the wccp2_service_info option.
5812
5813 The "standard" type does not require a wccp2_service_info option,
5814 just specifying the service id will suffice.
5815
5816 MD5 service authentication can be enabled by adding
5817 "password=<password>" to the end of this service declaration.
5818
5819 Examples:
5820
5821 wccp2_service standard 0 # for the 'web-cache' standard service
5822 wccp2_service dynamic 80 # a dynamic service type which will be
5823 # fleshed out with subsequent options.
5824 wccp2_service standard 0 password=foo
5825 DOC_END
5826
5827 NAME: wccp2_service_info
5828 TYPE: wccp2_service_info
5829 LOC: Config.Wccp2.info
5830 DEFAULT: none
5831 IFDEF: USE_WCCPv2
5832 DOC_START
5833 Dynamic WCCPv2 services require further information to define the
5834 traffic you wish to have diverted.
5835
5836 The format is:
5837
5838 wccp2_service_info <id> protocol=<protocol> flags=<flag>,<flag>..
5839 priority=<priority> ports=<port>,<port>..
5840
5841 The relevant WCCPv2 flags:
5842 + src_ip_hash, dst_ip_hash
5843 + source_port_hash, dst_port_hash
5844 + src_ip_alt_hash, dst_ip_alt_hash
5845 + src_port_alt_hash, dst_port_alt_hash
5846 + ports_source
5847
5848 The port list can be one to eight entries.
5849
5850 Example:
5851
5852 wccp2_service_info 80 protocol=tcp flags=src_ip_hash,ports_source
5853 priority=240 ports=80
5854
5855 Note: the service id must have been defined by a previous
5856 'wccp2_service dynamic <id>' entry.
5857 DOC_END
5858
5859 NAME: wccp2_weight
5860 TYPE: int
5861 LOC: Config.Wccp2.weight
5862 DEFAULT: 10000
5863 IFDEF: USE_WCCPv2
5864 DOC_START
5865 Each cache server gets assigned a set of the destination
5866 hash proportional to their weight.
5867 DOC_END
5868
5869 NAME: wccp_address
5870 TYPE: address
5871 LOC: Config.Wccp.address
5872 DEFAULT: 0.0.0.0
5873 IFDEF: USE_WCCP
5874 DOC_NONE
5875
5876 NAME: wccp2_address
5877 TYPE: address
5878 LOC: Config.Wccp2.address
5879 DEFAULT: 0.0.0.0
5880 IFDEF: USE_WCCPv2
5881 DOC_START
5882 Use this option if you require WCCP to use a specific
5883 interface address.
5884
5885 The default behavior is to not bind to any specific address.
5886 DOC_END
5887
5888 COMMENT_START
5889 PERSISTENT CONNECTION HANDLING
5890 -----------------------------------------------------------------------------
5891
5892 Also see "pconn_timeout" in the TIMEOUTS section
5893 COMMENT_END
5894
5895 NAME: client_persistent_connections
5896 TYPE: onoff
5897 LOC: Config.onoff.client_pconns
5898 DEFAULT: on
5899 DOC_NONE
5900
5901 NAME: server_persistent_connections
5902 TYPE: onoff
5903 LOC: Config.onoff.server_pconns
5904 DEFAULT: on
5905 DOC_START
5906 Persistent connection support for clients and servers. By
5907 default, Squid uses persistent connections (when allowed)
5908 with its clients and servers. You can use these options to
5909 disable persistent connections with clients and/or servers.
5910 DOC_END
5911
5912 NAME: persistent_connection_after_error
5913 TYPE: onoff
5914 LOC: Config.onoff.error_pconns
5915 DEFAULT: on
5916 DOC_START
5917 With this directive the use of persistent connections after
5918 HTTP errors can be disabled. Useful if you have clients
5919 who fail to handle errors on persistent connections proper.
5920 DOC_END
5921
5922 NAME: detect_broken_pconn
5923 TYPE: onoff
5924 LOC: Config.onoff.detect_broken_server_pconns
5925 DEFAULT: off
5926 DOC_START
5927 Some servers have been found to incorrectly signal the use
5928 of HTTP/1.0 persistent connections even on replies not
5929 compatible, causing significant delays. This server problem
5930 has mostly been seen on redirects.
5931
5932 By enabling this directive Squid attempts to detect such
5933 broken replies and automatically assume the reply is finished
5934 after 10 seconds timeout.
5935 DOC_END
5936
5937 COMMENT_START
5938 CACHE DIGEST OPTIONS
5939 -----------------------------------------------------------------------------
5940 COMMENT_END
5941
5942 NAME: digest_generation
5943 IFDEF: USE_CACHE_DIGESTS
5944 TYPE: onoff
5945 LOC: Config.onoff.digest_generation
5946 DEFAULT: on
5947 DOC_START
5948 This controls whether the server will generate a Cache Digest
5949 of its contents. By default, Cache Digest generation is
5950 enabled if Squid is compiled with --enable-cache-digests defined.
5951 DOC_END
5952
5953 NAME: digest_bits_per_entry
5954 IFDEF: USE_CACHE_DIGESTS
5955 TYPE: int
5956 LOC: Config.digest.bits_per_entry
5957 DEFAULT: 5
5958 DOC_START
5959 This is the number of bits of the server's Cache Digest which
5960 will be associated with the Digest entry for a given HTTP
5961 Method and URL (public key) combination. The default is 5.
5962 DOC_END
5963
5964 NAME: digest_rebuild_period
5965 IFDEF: USE_CACHE_DIGESTS
5966 COMMENT: (seconds)
5967 TYPE: time_t
5968 LOC: Config.digest.rebuild_period
5969 DEFAULT: 1 hour
5970 DOC_START
5971 This is the wait time between Cache Digest rebuilds.
5972 DOC_END
5973
5974 NAME: digest_rewrite_period
5975 COMMENT: (seconds)
5976 IFDEF: USE_CACHE_DIGESTS
5977 TYPE: time_t
5978 LOC: Config.digest.rewrite_period
5979 DEFAULT: 1 hour
5980 DOC_START
5981 This is the wait time between Cache Digest writes to
5982 disk.
5983 DOC_END
5984
5985 NAME: digest_swapout_chunk_size
5986 COMMENT: (bytes)
5987 TYPE: b_size_t
5988 IFDEF: USE_CACHE_DIGESTS
5989 LOC: Config.digest.swapout_chunk_size
5990 DEFAULT: 4096 bytes
5991 DOC_START
5992 This is the number of bytes of the Cache Digest to write to
5993 disk at a time. It defaults to 4096 bytes (4KB), the Squid
5994 default swap page.
5995 DOC_END
5996
5997 NAME: digest_rebuild_chunk_percentage
5998 COMMENT: (percent, 0-100)
5999 IFDEF: USE_CACHE_DIGESTS
6000 TYPE: int
6001 LOC: Config.digest.rebuild_chunk_percentage
6002 DEFAULT: 10
6003 DOC_START
6004 This is the percentage of the Cache Digest to be scanned at a
6005 time. By default it is set to 10% of the Cache Digest.
6006 DOC_END
6007
6008 COMMENT_START
6009 SNMP OPTIONS
6010 -----------------------------------------------------------------------------
6011 COMMENT_END
6012
6013 NAME: snmp_port
6014 TYPE: u_short
6015 LOC: Config.Port.snmp
6016 DEFAULT: 0
6017 IFDEF: SQUID_SNMP
6018 DOC_START
6019 The port number where Squid listens for SNMP requests. To enable
6020 SNMP support set this to a suitable port number. Port number
6021 3401 is often used for the Squid SNMP agent. By default it's
6022 set to "0" (disabled)
6023
6024 Example:
6025 snmp_port 3401
6026 DOC_END
6027
6028 NAME: snmp_access
6029 TYPE: acl_access
6030 LOC: Config.accessList.snmp
6031 DEFAULT_IF_NONE: deny all
6032 IFDEF: SQUID_SNMP
6033 DOC_START
6034 Allowing or denying access to the SNMP port.
6035
6036 All access to the agent is denied by default.
6037 usage:
6038
6039 snmp_access allow|deny [!]aclname ...
6040
6041 This clause only supports fast acl types.
6042 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
6043 Example:
6044 snmp_access allow snmppublic localhost
6045 snmp_access deny all
6046 DOC_END
6047
6048 NAME: snmp_incoming_address
6049 TYPE: address
6050 LOC: Config.Addrs.snmp_incoming
6051 DEFAULT: any_addr
6052 IFDEF: SQUID_SNMP
6053 DOC_NONE
6054
6055 NAME: snmp_outgoing_address
6056 TYPE: address
6057 LOC: Config.Addrs.snmp_outgoing
6058 DEFAULT: no_addr
6059 IFDEF: SQUID_SNMP
6060 DOC_START
6061 Just like 'udp_incoming_address', but for the SNMP port.
6062
6063 snmp_incoming_address is used for the SNMP socket receiving
6064 messages from SNMP agents.
6065 snmp_outgoing_address is used for SNMP packets returned to SNMP
6066 agents.
6067
6068 The default snmp_incoming_address is to listen on all
6069 available network interfaces.
6070
6071 If snmp_outgoing_address is not set it will use the same socket
6072 as snmp_incoming_address. Only change this if you want to have
6073 SNMP replies sent using another address than where this Squid
6074 listens for SNMP queries.
6075
6076 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
6077 the same value since they both use port 3401.
6078 DOC_END
6079
6080 COMMENT_START
6081 ICP OPTIONS
6082 -----------------------------------------------------------------------------
6083 COMMENT_END
6084
6085 NAME: icp_port udp_port
6086 TYPE: u_short
6087 DEFAULT: 0
6088 LOC: Config.Port.icp
6089 DOC_START
6090 The port number where Squid sends and receives ICP queries to
6091 and from neighbor caches. The standard UDP port for ICP is 3130.
6092 Default is disabled (0).
6093
6094 Example:
6095 icp_port @DEFAULT_ICP_PORT@
6096 DOC_END
6097
6098 NAME: htcp_port
6099 IFDEF: USE_HTCP
6100 TYPE: u_short
6101 DEFAULT: 0
6102 LOC: Config.Port.htcp
6103 DOC_START
6104 The port number where Squid sends and receives HTCP queries to
6105 and from neighbor caches. To turn it on you want to set it to
6106 4827. By default it is set to "0" (disabled).
6107
6108 Example:
6109 htcp_port 4827
6110 DOC_END
6111
6112 NAME: log_icp_queries
6113 COMMENT: on|off
6114 TYPE: onoff
6115 DEFAULT: on
6116 LOC: Config.onoff.log_udp
6117 DOC_START
6118 If set, ICP queries are logged to access.log. You may wish
6119 do disable this if your ICP load is VERY high to speed things
6120 up or to simplify log analysis.
6121 DOC_END
6122
6123 NAME: udp_incoming_address
6124 TYPE: address
6125 LOC:Config.Addrs.udp_incoming
6126 DEFAULT: any_addr
6127 DOC_START
6128 udp_incoming_address is used for UDP packets received from other
6129 caches.
6130
6131 The default behavior is to not bind to any specific address.
6132
6133 Only change this if you want to have all UDP queries received on
6134 a specific interface/address.
6135
6136 NOTE: udp_incoming_address is used by the ICP, HTCP, and DNS
6137 modules. Altering it will affect all of them in the same manner.
6138
6139 see also; udp_outgoing_address
6140
6141 NOTE, udp_incoming_address and udp_outgoing_address can not
6142 have the same value since they both use the same port.
6143 DOC_END
6144
6145 NAME: udp_outgoing_address
6146 TYPE: address
6147 LOC: Config.Addrs.udp_outgoing
6148 DEFAULT: no_addr
6149 DOC_START
6150 udp_outgoing_address is used for UDP packets sent out to other
6151 caches.
6152
6153 The default behavior is to not bind to any specific address.
6154
6155 Instead it will use the same socket as udp_incoming_address.
6156 Only change this if you want to have UDP queries sent using another
6157 address than where this Squid listens for UDP queries from other
6158 caches.
6159
6160 NOTE: udp_outgoing_address is used by the ICP, HTCP, and DNS
6161 modules. Altering it will affect all of them in the same manner.
6162
6163 see also; udp_incoming_address
6164
6165 NOTE, udp_incoming_address and udp_outgoing_address can not
6166 have the same value since they both use the same port.
6167 DOC_END
6168
6169 NAME: icp_hit_stale
6170 COMMENT: on|off
6171 TYPE: onoff
6172 DEFAULT: off
6173 LOC: Config.onoff.icp_hit_stale
6174 DOC_START
6175 If you want to return ICP_HIT for stale cache objects, set this
6176 option to 'on'. If you have sibling relationships with caches
6177 in other administrative domains, this should be 'off'. If you only
6178 have sibling relationships with caches under your control,
6179 it is probably okay to set this to 'on'.
6180 If set to 'on', your siblings should use the option "allow-miss"
6181 on their cache_peer lines for connecting to you.
6182 DOC_END
6183
6184 NAME: minimum_direct_hops
6185 TYPE: int
6186 DEFAULT: 4
6187 LOC: Config.minDirectHops
6188 DOC_START
6189 If using the ICMP pinging stuff, do direct fetches for sites
6190 which are no more than this many hops away.
6191 DOC_END
6192
6193 NAME: minimum_direct_rtt
6194 TYPE: int
6195 DEFAULT: 400
6196 LOC: Config.minDirectRtt
6197 DOC_START
6198 If using the ICMP pinging stuff, do direct fetches for sites
6199 which are no more than this many rtt milliseconds away.
6200 DOC_END
6201
6202 NAME: netdb_low
6203 TYPE: int
6204 DEFAULT: 900
6205 LOC: Config.Netdb.low
6206 DOC_NONE
6207
6208 NAME: netdb_high
6209 TYPE: int
6210 DEFAULT: 1000
6211 LOC: Config.Netdb.high
6212 DOC_START
6213 The low and high water marks for the ICMP measurement
6214 database. These are counts, not percents. The defaults are
6215 900 and 1000. When the high water mark is reached, database
6216 entries will be deleted until the low mark is reached.
6217 DOC_END
6218
6219 NAME: netdb_ping_period
6220 TYPE: time_t
6221 LOC: Config.Netdb.period
6222 DEFAULT: 5 minutes
6223 DOC_START
6224 The minimum period for measuring a site. There will be at
6225 least this much delay between successive pings to the same
6226 network. The default is five minutes.
6227 DOC_END
6228
6229 NAME: query_icmp
6230 COMMENT: on|off
6231 TYPE: onoff
6232 DEFAULT: off
6233 LOC: Config.onoff.query_icmp
6234 DOC_START
6235 If you want to ask your peers to include ICMP data in their ICP
6236 replies, enable this option.
6237
6238 If your peer has configured Squid (during compilation) with
6239 '--enable-icmp' that peer will send ICMP pings to origin server
6240 sites of the URLs it receives. If you enable this option the
6241 ICP replies from that peer will include the ICMP data (if available).
6242 Then, when choosing a parent cache, Squid will choose the parent with
6243 the minimal RTT to the origin server. When this happens, the
6244 hierarchy field of the access.log will be
6245 "CLOSEST_PARENT_MISS". This option is off by default.
6246 DOC_END
6247
6248 NAME: test_reachability
6249 COMMENT: on|off
6250 TYPE: onoff
6251 DEFAULT: off
6252 LOC: Config.onoff.test_reachability
6253 DOC_START
6254 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
6255 instead of ICP_MISS if the target host is NOT in the ICMP
6256 database, or has a zero RTT.
6257 DOC_END
6258
6259 NAME: icp_query_timeout
6260 COMMENT: (msec)
6261 DEFAULT: 0
6262 TYPE: int
6263 LOC: Config.Timeout.icp_query
6264 DOC_START
6265 Normally Squid will automatically determine an optimal ICP
6266 query timeout value based on the round-trip-time of recent ICP
6267 queries. If you want to override the value determined by
6268 Squid, set this 'icp_query_timeout' to a non-zero value. This
6269 value is specified in MILLISECONDS, so, to use a 2-second
6270 timeout (the old default), you would write:
6271
6272 icp_query_timeout 2000
6273 DOC_END
6274
6275 NAME: maximum_icp_query_timeout
6276 COMMENT: (msec)
6277 DEFAULT: 2000
6278 TYPE: int
6279 LOC: Config.Timeout.icp_query_max
6280 DOC_START
6281 Normally the ICP query timeout is determined dynamically. But
6282 sometimes it can lead to very large values (say 5 seconds).
6283 Use this option to put an upper limit on the dynamic timeout
6284 value. Do NOT use this option to always use a fixed (instead
6285 of a dynamic) timeout value. To set a fixed timeout see the
6286 'icp_query_timeout' directive.
6287 DOC_END
6288
6289 NAME: minimum_icp_query_timeout
6290 COMMENT: (msec)
6291 DEFAULT: 5
6292 TYPE: int
6293 LOC: Config.Timeout.icp_query_min
6294 DOC_START
6295 Normally the ICP query timeout is determined dynamically. But
6296 sometimes it can lead to very small timeouts, even lower than
6297 the normal latency variance on your link due to traffic.
6298 Use this option to put an lower limit on the dynamic timeout
6299 value. Do NOT use this option to always use a fixed (instead
6300 of a dynamic) timeout value. To set a fixed timeout see the
6301 'icp_query_timeout' directive.
6302 DOC_END
6303
6304 NAME: background_ping_rate
6305 COMMENT: time-units
6306 TYPE: time_t
6307 DEFAULT: 10 seconds
6308 LOC: Config.backgroundPingRate
6309 DOC_START
6310 Controls how often the ICP pings are sent to siblings that
6311 have background-ping set.
6312 DOC_END
6313
6314 COMMENT_START
6315 MULTICAST ICP OPTIONS
6316 -----------------------------------------------------------------------------
6317 COMMENT_END
6318
6319 NAME: mcast_groups
6320 TYPE: wordlist
6321 LOC: Config.mcast_group_list
6322 DEFAULT: none
6323 DOC_START
6324 This tag specifies a list of multicast groups which your server
6325 should join to receive multicasted ICP queries.
6326
6327 NOTE! Be very careful what you put here! Be sure you
6328 understand the difference between an ICP _query_ and an ICP
6329 _reply_. This option is to be set only if you want to RECEIVE
6330 multicast queries. Do NOT set this option to SEND multicast
6331 ICP (use cache_peer for that). ICP replies are always sent via
6332 unicast, so this option does not affect whether or not you will
6333 receive replies from multicast group members.
6334
6335 You must be very careful to NOT use a multicast address which
6336 is already in use by another group of caches.
6337
6338 If you are unsure about multicast, please read the Multicast
6339 chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/).
6340
6341 Usage: mcast_groups 239.128.16.128 224.0.1.20
6342
6343 By default, Squid doesn't listen on any multicast groups.
6344 DOC_END
6345
6346 NAME: mcast_miss_addr
6347 IFDEF: MULTICAST_MISS_STREAM
6348 TYPE: address
6349 LOC: Config.mcast_miss.addr
6350 DEFAULT: no_addr
6351 DOC_START
6352 If you enable this option, every "cache miss" URL will
6353 be sent out on the specified multicast address.
6354
6355 Do not enable this option unless you are are absolutely
6356 certain you understand what you are doing.
6357 DOC_END
6358
6359 NAME: mcast_miss_ttl
6360 IFDEF: MULTICAST_MISS_STREAM
6361 TYPE: u_short
6362 LOC: Config.mcast_miss.ttl
6363 DEFAULT: 16
6364 DOC_START
6365 This is the time-to-live value for packets multicasted
6366 when multicasting off cache miss URLs is enabled. By
6367 default this is set to 'site scope', i.e. 16.
6368 DOC_END
6369
6370 NAME: mcast_miss_port
6371 IFDEF: MULTICAST_MISS_STREAM
6372 TYPE: u_short
6373 LOC: Config.mcast_miss.port
6374 DEFAULT: 3135
6375 DOC_START
6376 This is the port number to be used in conjunction with
6377 'mcast_miss_addr'.
6378 DOC_END
6379
6380 NAME: mcast_miss_encode_key
6381 IFDEF: MULTICAST_MISS_STREAM
6382 TYPE: string
6383 LOC: Config.mcast_miss.encode_key
6384 DEFAULT: XXXXXXXXXXXXXXXX
6385 DOC_START
6386 The URLs that are sent in the multicast miss stream are
6387 encrypted. This is the encryption key.
6388 DOC_END
6389
6390 NAME: mcast_icp_query_timeout
6391 COMMENT: (msec)
6392 DEFAULT: 2000
6393 TYPE: int
6394 LOC: Config.Timeout.mcast_icp_query
6395 DOC_START
6396 For multicast peers, Squid regularly sends out ICP "probes" to
6397 count how many other peers are listening on the given multicast
6398 address. This value specifies how long Squid should wait to
6399 count all the replies. The default is 2000 msec, or 2
6400 seconds.
6401 DOC_END
6402
6403 COMMENT_START
6404 INTERNAL ICON OPTIONS
6405 -----------------------------------------------------------------------------
6406 COMMENT_END
6407
6408 NAME: icon_directory
6409 TYPE: string
6410 LOC: Config.icons.directory
6411 DEFAULT: @DEFAULT_ICON_DIR@
6412 DOC_START
6413 Where the icons are stored. These are normally kept in
6414 @DEFAULT_ICON_DIR@
6415 DOC_END
6416
6417 NAME: global_internal_static
6418 TYPE: onoff
6419 LOC: Config.onoff.global_internal_static
6420 DEFAULT: on
6421 DOC_START
6422 This directive controls is Squid should intercept all requests for
6423 /squid-internal-static/ no matter which host the URL is requesting
6424 (default on setting), or if nothing special should be done for
6425 such URLs (off setting). The purpose of this directive is to make
6426 icons etc work better in complex cache hierarchies where it may
6427 not always be possible for all corners in the cache mesh to reach
6428 the server generating a directory listing.
6429 DOC_END
6430
6431 NAME: short_icon_urls
6432 TYPE: onoff
6433 LOC: Config.icons.use_short_names
6434 DEFAULT: on
6435 DOC_START
6436 If this is enabled Squid will use short URLs for icons.
6437 If disabled it will revert to the old behavior of including
6438 it's own name and port in the URL.
6439
6440 If you run a complex cache hierarchy with a mix of Squid and
6441 other proxies you may need to disable this directive.
6442 DOC_END
6443
6444 COMMENT_START
6445 ERROR PAGE OPTIONS
6446 -----------------------------------------------------------------------------
6447 COMMENT_END
6448
6449 NAME: error_directory
6450 TYPE: string
6451 LOC: Config.errorDirectory
6452 DEFAULT: none
6453 DOC_START
6454 If you wish to create your own versions of the default
6455 error files to customize them to suit your company copy
6456 the error/template files to another directory and point
6457 this tag at them.
6458
6459 WARNING: This option will disable multi-language support
6460 on error pages if used.
6461
6462 The squid developers are interested in making squid available in
6463 a wide variety of languages. If you are making translations for a
6464 language that Squid does not currently provide please consider
6465 contributing your translation back to the project.
6466 http://wiki.squid-cache.org/Translations
6467
6468 The squid developers working on translations are happy to supply drop-in
6469 translated error files in exchange for any new language contributions.
6470 DOC_END
6471
6472 NAME: error_default_language
6473 IFDEF: USE_ERR_LOCALES
6474 TYPE: string
6475 LOC: Config.errorDefaultLanguage
6476 DEFAULT: none
6477 DOC_START
6478 Set the default language which squid will send error pages in
6479 if no existing translation matches the clients language
6480 preferences.
6481
6482 If unset (default) generic English will be used.
6483
6484 The squid developers are interested in making squid available in
6485 a wide variety of languages. If you are interested in making
6486 translations for any language see the squid wiki for details.
6487 http://wiki.squid-cache.org/Translations
6488 DOC_END
6489
6490 NAME: error_log_languages
6491 IFDEF: USE_ERR_LOCALES
6492 TYPE: onoff
6493 LOC: Config.errorLogMissingLanguages
6494 DEFAULT: on
6495 DOC_START
6496 Log to cache.log what languages users are attempting to
6497 auto-negotiate for translations.
6498
6499 Successful negotiations are not logged. Only failures
6500 have meaning to indicate that Squid may need an upgrade
6501 of its error page translations.
6502 DOC_END
6503
6504 NAME: err_page_stylesheet
6505 TYPE: string
6506 LOC: Config.errorStylesheet
6507 DEFAULT: @DEFAULT_CONFIG_DIR@/errorpage.css
6508 DOC_START
6509 CSS Stylesheet to pattern the display of Squid default error pages.
6510
6511 For information on CSS see http://www.w3.org/Style/CSS/
6512 DOC_END
6513
6514 NAME: err_html_text
6515 TYPE: eol
6516 LOC: Config.errHtmlText
6517 DEFAULT: none
6518 DOC_START
6519 HTML text to include in error messages. Make this a "mailto"
6520 URL to your admin address, or maybe just a link to your
6521 organizations Web page.
6522
6523 To include this in your error messages, you must rewrite
6524 the error template files (found in the "errors" directory).
6525 Wherever you want the 'err_html_text' line to appear,
6526 insert a %L tag in the error template file.
6527 DOC_END
6528
6529 NAME: email_err_data
6530 COMMENT: on|off
6531 TYPE: onoff
6532 LOC: Config.onoff.emailErrData
6533 DEFAULT: on
6534 DOC_START
6535 If enabled, information about the occurred error will be
6536 included in the mailto links of the ERR pages (if %W is set)
6537 so that the email body contains the data.
6538 Syntax is <A HREF="mailto:%w%W">%w</A>
6539 DOC_END
6540
6541 NAME: deny_info
6542 TYPE: denyinfo
6543 LOC: Config.denyInfoList
6544 DEFAULT: none
6545 DOC_START
6546 Usage: deny_info err_page_name acl
6547 or deny_info http://... acl
6548 or deny_info TCP_RESET acl
6549
6550 This can be used to return a ERR_ page for requests which
6551 do not pass the 'http_access' rules. Squid remembers the last
6552 acl it evaluated in http_access, and if a 'deny_info' line exists
6553 for that ACL Squid returns a corresponding error page.
6554
6555 The acl is typically the last acl on the http_access deny line which
6556 denied access. The exceptions to this rule are:
6557 - When Squid needs to request authentication credentials. It's then
6558 the first authentication related acl encountered
6559 - When none of the http_access lines matches. It's then the last
6560 acl processed on the last http_access line.
6561 - When the decision to deny access was made by an adaptation service,
6562 the acl name is the corresponding eCAP or ICAP service_name.
6563
6564 NP: If providing your own custom error pages with error_directory
6565 you may also specify them by your custom file name:
6566 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
6567
6568 By defaut Squid will send "403 Forbidden". A different 4xx or 5xx
6569 may be specified by prefixing the file name with the code and a colon.
6570 e.g. 404:ERR_CUSTOM_ACCESS_DENIED
6571
6572 Alternatively you can tell Squid to reset the TCP connection
6573 by specifying TCP_RESET.
6574
6575 Or you can specify an error URL or URL pattern. The browsers will
6576 get redirected to the specified URL after formatting tags have
6577 been replaced. Redirect will be done with 302 or 307 according to
6578 HTTP/1.1 specs. A different 3xx code may be specified by prefixing
6579 the URL. e.g. 303:http://example.com/
6580
6581 URL FORMAT TAGS:
6582 %a - username (if available. Password NOT included)
6583 %B - FTP path URL
6584 %e - Error number
6585 %E - Error description
6586 %h - Squid hostname
6587 %H - Request domain name
6588 %i - Client IP Address
6589 %M - Request Method
6590 %o - Message result from external ACL helper
6591 %p - Request Port number
6592 %P - Request Protocol name
6593 %R - Request URL path
6594 %T - Timestamp in RFC 1123 format
6595 %U - Full canonical URL from client
6596 (HTTPS URLs terminate with *)
6597 %u - Full canonical URL from client
6598 %w - Admin email from squid.conf
6599 %x - Error name
6600 %% - Literal percent (%) code
6601
6602 DOC_END
6603
6604 COMMENT_START
6605 OPTIONS INFLUENCING REQUEST FORWARDING
6606 -----------------------------------------------------------------------------
6607 COMMENT_END
6608
6609 NAME: nonhierarchical_direct
6610 TYPE: onoff
6611 LOC: Config.onoff.nonhierarchical_direct
6612 DEFAULT: on
6613 DOC_START
6614 By default, Squid will send any non-hierarchical requests
6615 (matching hierarchy_stoplist or not cacheable request type) direct
6616 to origin servers.
6617
6618 If you set this to off, Squid will prefer to send these
6619 requests to parents.
6620
6621 Note that in most configurations, by turning this off you will only
6622 add latency to these request without any improvement in global hit
6623 ratio.
6624
6625 If you are inside an firewall see never_direct instead of
6626 this directive.
6627 DOC_END
6628
6629 NAME: prefer_direct
6630 TYPE: onoff
6631 LOC: Config.onoff.prefer_direct
6632 DEFAULT: off
6633 DOC_START
6634 Normally Squid tries to use parents for most requests. If you for some
6635 reason like it to first try going direct and only use a parent if
6636 going direct fails set this to on.
6637
6638 By combining nonhierarchical_direct off and prefer_direct on you
6639 can set up Squid to use a parent as a backup path if going direct
6640 fails.
6641
6642 Note: If you want Squid to use parents for all requests see
6643 the never_direct directive. prefer_direct only modifies how Squid
6644 acts on cacheable requests.
6645 DOC_END
6646
6647 NAME: always_direct
6648 TYPE: acl_access
6649 LOC: Config.accessList.AlwaysDirect
6650 DEFAULT: none
6651 DOC_START
6652 Usage: always_direct allow|deny [!]aclname ...
6653
6654 Here you can use ACL elements to specify requests which should
6655 ALWAYS be forwarded by Squid to the origin servers without using
6656 any peers. For example, to always directly forward requests for
6657 local servers ignoring any parents or siblings you may have use
6658 something like:
6659
6660 acl local-servers dstdomain my.domain.net
6661 always_direct allow local-servers
6662
6663 To always forward FTP requests directly, use
6664
6665 acl FTP proto FTP
6666 always_direct allow FTP
6667
6668 NOTE: There is a similar, but opposite option named
6669 'never_direct'. You need to be aware that "always_direct deny
6670 foo" is NOT the same thing as "never_direct allow foo". You
6671 may need to use a deny rule to exclude a more-specific case of
6672 some other rule. Example:
6673
6674 acl local-external dstdomain external.foo.net
6675 acl local-servers dstdomain .foo.net
6676 always_direct deny local-external
6677 always_direct allow local-servers
6678
6679 NOTE: If your goal is to make the client forward the request
6680 directly to the origin server bypassing Squid then this needs
6681 to be done in the client configuration. Squid configuration
6682 can only tell Squid how Squid should fetch the object.
6683
6684 NOTE: This directive is not related to caching. The replies
6685 is cached as usual even if you use always_direct. To not cache
6686 the replies see the 'cache' directive.
6687
6688 This clause supports both fast and slow acl types.
6689 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
6690 DOC_END
6691
6692 NAME: never_direct
6693 TYPE: acl_access
6694 LOC: Config.accessList.NeverDirect
6695 DEFAULT: none
6696 DOC_START
6697 Usage: never_direct allow|deny [!]aclname ...
6698
6699 never_direct is the opposite of always_direct. Please read
6700 the description for always_direct if you have not already.
6701
6702 With 'never_direct' you can use ACL elements to specify
6703 requests which should NEVER be forwarded directly to origin
6704 servers. For example, to force the use of a proxy for all
6705 requests, except those in your local domain use something like:
6706
6707 acl local-servers dstdomain .foo.net
6708 never_direct deny local-servers
6709 never_direct allow all
6710
6711 or if Squid is inside a firewall and there are local intranet
6712 servers inside the firewall use something like:
6713
6714 acl local-intranet dstdomain .foo.net
6715 acl local-external dstdomain external.foo.net
6716 always_direct deny local-external
6717 always_direct allow local-intranet
6718 never_direct allow all
6719
6720 This clause supports both fast and slow acl types.
6721 See http://wiki.squid-cache.org/SquidFaq/SquidAcl for details.
6722 DOC_END
6723
6724 COMMENT_START
6725 ADVANCED NETWORKING OPTIONS
6726 -----------------------------------------------------------------------------
6727 COMMENT_END
6728
6729 NAME: incoming_udp_average incoming_icp_average
6730 TYPE: int
6731 DEFAULT: 6
6732 LOC: Config.comm_incoming.udp.average
6733 DOC_START
6734 Heavy voodoo here. I can't even believe you are reading this.
6735 Are you crazy? Don't even think about adjusting these unless
6736 you understand the algorithms in comm_select.c first!
6737 DOC_END
6738
6739 NAME: incoming_tcp_average incoming_http_average
6740 TYPE: int
6741 DEFAULT: 4
6742 LOC: Config.comm_incoming.tcp.average
6743 DOC_START
6744 Heavy voodoo here. I can't even believe you are reading this.
6745 Are you crazy? Don't even think about adjusting these unless
6746 you understand the algorithms in comm_select.c first!
6747 DOC_END
6748
6749 NAME: incoming_dns_average
6750 TYPE: int
6751 DEFAULT: 4
6752 LOC: Config.comm_incoming.dns.average
6753 DOC_START
6754 Heavy voodoo here. I can't even believe you are reading this.
6755 Are you crazy? Don't even think about adjusting these unless
6756 you understand the algorithms in comm_select.c first!
6757 DOC_END
6758
6759 NAME: min_udp_poll_cnt min_icp_poll_cnt
6760 TYPE: int
6761 DEFAULT: 8
6762 LOC: Config.comm_incoming.udp.min_poll
6763 DOC_START
6764 Heavy voodoo here. I can't even believe you are reading this.
6765 Are you crazy? Don't even think about adjusting these unless
6766 you understand the algorithms in comm_select.c first!
6767 DOC_END
6768
6769 NAME: min_dns_poll_cnt
6770 TYPE: int
6771 DEFAULT: 8
6772 LOC: Config.comm_incoming.dns.min_poll
6773 DOC_START
6774 Heavy voodoo here. I can't even believe you are reading this.
6775 Are you crazy? Don't even think about adjusting these unless
6776 you understand the algorithms in comm_select.c first!
6777 DOC_END
6778
6779 NAME: min_tcp_poll_cnt min_http_poll_cnt
6780 TYPE: int
6781 DEFAULT: 8
6782 LOC: Config.comm_incoming.tcp.min_poll
6783 DOC_START
6784 Heavy voodoo here. I can't even believe you are reading this.
6785 Are you crazy? Don't even think about adjusting these unless
6786 you understand the algorithms in comm_select.c first!
6787 DOC_END
6788
6789 NAME: accept_filter
6790 TYPE: string
6791 DEFAULT: none
6792 LOC: Config.accept_filter
6793 DOC_START
6794 FreeBSD:
6795
6796 The name of an accept(2) filter to install on Squid's
6797 listen socket(s). This feature is perhaps specific to
6798 FreeBSD and requires support in the kernel.
6799
6800 The 'httpready' filter delays delivering new connections
6801 to Squid until a full HTTP request has been received.
6802 See the accf_http(9) man page for details.
6803
6804 The 'dataready' filter delays delivering new connections
6805 to Squid until there is some data to process.
6806 See the accf_dataready(9) man page for details.
6807
6808 Linux:
6809
6810 The 'data' filter delays delivering of new connections
6811 to Squid until there is some data to process by TCP_ACCEPT_DEFER.
6812 You may optionally specify a number of seconds to wait by
6813 'data=N' where N is the number of seconds. Defaults to 30
6814 if not specified. See the tcp(7) man page for details.
6815 EXAMPLE:
6816 # FreeBSD
6817 accept_filter httpready
6818 # Linux
6819 accept_filter data
6820 DOC_END
6821
6822 NAME: client_ip_max_connections
6823 TYPE: int
6824 LOC: Config.client_ip_max_connections
6825 DEFAULT: -1
6826 DOC_START
6827 Set an absolute limit on the number of connections a single
6828 client IP can use. Any more than this and Squid will begin to drop
6829 new connections from the client until it closes some links.
6830
6831 Note that this is a global limit. It affects all HTTP, HTCP, Gopher and FTP
6832 connections from the client. For finer control use the ACL access controls.
6833
6834 Requires client_db to be enabled (the default).
6835
6836 WARNING: This may noticably slow down traffic received via external proxies
6837 or NAT devices and cause them to rebound error messages back to their clients.
6838 DOC_END
6839
6840 NAME: tcp_recv_bufsize
6841 COMMENT: (bytes)
6842 TYPE: b_size_t
6843 DEFAULT: 0 bytes
6844 LOC: Config.tcpRcvBufsz
6845 DOC_START
6846 Size of receive buffer to set for TCP sockets. Probably just
6847 as easy to change your kernel's default. Set to zero to use
6848 the default buffer size.
6849 DOC_END
6850
6851 COMMENT_START
6852 ICAP OPTIONS
6853 -----------------------------------------------------------------------------
6854 COMMENT_END
6855
6856 NAME: icap_enable
6857 TYPE: onoff
6858 IFDEF: ICAP_CLIENT
6859 COMMENT: on|off
6860 LOC: Adaptation::Icap::TheConfig.onoff
6861 DEFAULT: off
6862 DOC_START
6863 If you want to enable the ICAP module support, set this to on.
6864 DOC_END
6865
6866 NAME: icap_connect_timeout
6867 TYPE: time_t
6868 DEFAULT: none
6869 LOC: Adaptation::Icap::TheConfig.connect_timeout_raw
6870 IFDEF: ICAP_CLIENT
6871 DOC_START
6872 This parameter specifies how long to wait for the TCP connect to
6873 the requested ICAP server to complete before giving up and either
6874 terminating the HTTP transaction or bypassing the failure.
6875
6876 The default for optional services is peer_connect_timeout.
6877 The default for essential services is connect_timeout.
6878 If this option is explicitly set, its value applies to all services.
6879 DOC_END
6880
6881 NAME: icap_io_timeout
6882 COMMENT: time-units
6883 TYPE: time_t
6884 DEFAULT: none
6885 LOC: Adaptation::Icap::TheConfig.io_timeout_raw
6886 IFDEF: ICAP_CLIENT
6887 DOC_START
6888 This parameter specifies how long to wait for an I/O activity on
6889 an established, active ICAP connection before giving up and
6890 either terminating the HTTP transaction or bypassing the
6891 failure.
6892
6893 The default is read_timeout.
6894 DOC_END
6895
6896 NAME: icap_service_failure_limit
6897 COMMENT: limit [in memory-depth time-units]
6898 TYPE: icap_service_failure_limit
6899 IFDEF: ICAP_CLIENT
6900 LOC: Adaptation::Icap::TheConfig
6901 DEFAULT: 10
6902 DOC_START
6903 The limit specifies the number of failures that Squid tolerates
6904 when establishing a new TCP connection with an ICAP service. If
6905 the number of failures exceeds the limit, the ICAP service is
6906 not used for new ICAP requests until it is time to refresh its
6907 OPTIONS.
6908
6909 A negative value disables the limit. Without the limit, an ICAP
6910 service will not be considered down due to connectivity failures
6911 between ICAP OPTIONS requests.
6912
6913 Squid forgets ICAP service failures older than the specified
6914 value of memory-depth. The memory fading algorithm
6915 is approximate because Squid does not remember individual
6916 errors but groups them instead, splitting the option
6917 value into ten time slots of equal length.
6918
6919 When memory-depth is 0 and by default this option has no
6920 effect on service failure expiration.
6921
6922 Squid always forgets failures when updating service settings
6923 using an ICAP OPTIONS transaction, regardless of this option
6924 setting.
6925
6926 For example,
6927 # suspend service usage after 10 failures in 5 seconds:
6928 icap_service_failure_limit 10 in 5 seconds
6929 DOC_END
6930
6931 NAME: icap_service_revival_delay
6932 TYPE: int
6933 IFDEF: ICAP_CLIENT
6934 LOC: Adaptation::Icap::TheConfig.service_revival_delay
6935 DEFAULT: 180
6936 DOC_START
6937 The delay specifies the number of seconds to wait after an ICAP
6938 OPTIONS request failure before requesting the options again. The
6939 failed ICAP service is considered "down" until fresh OPTIONS are
6940 fetched.
6941
6942 The actual delay cannot be smaller than the hardcoded minimum
6943 delay of 30 seconds.
6944 DOC_END
6945
6946 NAME: icap_preview_enable
6947 TYPE: onoff
6948 IFDEF: ICAP_CLIENT
6949 COMMENT: on|off
6950 LOC: Adaptation::Icap::TheConfig.preview_enable
6951 DEFAULT: on
6952 DOC_START
6953 The ICAP Preview feature allows the ICAP server to handle the
6954 HTTP message by looking only at the beginning of the message body
6955 or even without receiving the body at all. In some environments,
6956 previews greatly speedup ICAP processing.
6957
6958 During an ICAP OPTIONS transaction, the server may tell Squid what
6959 HTTP messages should be previewed and how big the preview should be.
6960 Squid will not use Preview if the server did not request one.
6961
6962 To disable ICAP Preview for all ICAP services, regardless of
6963 individual ICAP server OPTIONS responses, set this option to "off".
6964 Example:
6965 icap_preview_enable off
6966 DOC_END
6967
6968 NAME: icap_preview_size
6969 TYPE: int
6970 IFDEF: ICAP_CLIENT
6971 LOC: Adaptation::Icap::TheConfig.preview_size
6972 DEFAULT: -1
6973 DOC_START
6974 The default size of preview data to be sent to the ICAP server.
6975 -1 means no preview. This value might be overwritten on a per server
6976 basis by OPTIONS requests.
6977 DOC_END
6978
6979 NAME: icap_206_enable
6980 TYPE: onoff
6981 IFDEF: ICAP_CLIENT
6982 COMMENT: on|off
6983 LOC: Adaptation::Icap::TheConfig.allow206_enable
6984 DEFAULT: on
6985 DOC_START
6986 206 (Partial Content) responses is an ICAP extension that allows the
6987 ICAP agents to optionally combine adapted and original HTTP message
6988 content. The decision to combine is postponed until the end of the
6989 ICAP response. Squid supports Partial Content extension by default.
6990
6991 Activation of the Partial Content extension is negotiated with each
6992 ICAP service during OPTIONS exchange. Most ICAP servers should handle
6993 negotation correctly even if they do not support the extension, but
6994 some might fail. To disable Partial Content support for all ICAP
6995 services and to avoid any negotiation, set this option to "off".
6996
6997 Example:
6998 icap_206_enable off
6999 DOC_END
7000
7001 NAME: icap_default_options_ttl
7002 TYPE: int
7003 IFDEF: ICAP_CLIENT
7004 LOC: Adaptation::Icap::TheConfig.default_options_ttl
7005 DEFAULT: 60
7006 DOC_START
7007 The default TTL value for ICAP OPTIONS responses that don't have
7008 an Options-TTL header.
7009 DOC_END
7010
7011 NAME: icap_persistent_connections
7012 TYPE: onoff
7013 IFDEF: ICAP_CLIENT
7014 COMMENT: on|off
7015 LOC: Adaptation::Icap::TheConfig.reuse_connections
7016 DEFAULT: on
7017 DOC_START
7018 Whether or not Squid should use persistent connections to
7019 an ICAP server.
7020 DOC_END
7021
7022 NAME: adaptation_send_client_ip icap_send_client_ip
7023 TYPE: onoff
7024 IFDEF: USE_ADAPTATION
7025 COMMENT: on|off
7026 LOC: Adaptation::Config::send_client_ip
7027 DEFAULT: off
7028 DOC_START
7029 If enabled, Squid shares HTTP client IP information with adaptation
7030 services. For ICAP, Squid adds the X-Client-IP header to ICAP requests.
7031 For eCAP, Squid sets the libecap::metaClientIp transaction option.
7032
7033 See also: adaptation_uses_indirect_client
7034 DOC_END
7035
7036 NAME: adaptation_send_username icap_send_client_username
7037 TYPE: onoff
7038 IFDEF: USE_ADAPTATION
7039 COMMENT: on|off
7040 LOC: Adaptation::Config::send_username
7041 DEFAULT: off
7042 DOC_START
7043 This sends authenticated HTTP client username (if available) to
7044 the adaptation service.
7045
7046 For ICAP, the username value is encoded based on the
7047 icap_client_username_encode option and is sent using the header
7048 specified by the icap_client_username_header option.
7049 DOC_END
7050
7051 NAME: icap_client_username_header
7052 TYPE: string
7053 IFDEF: ICAP_CLIENT
7054 LOC: Adaptation::Icap::TheConfig.client_username_header
7055 DEFAULT: X-Client-Username
7056 DOC_START
7057 ICAP request header name to use for adaptation_send_username.
7058 DOC_END
7059
7060 NAME: icap_client_username_encode
7061 TYPE: onoff
7062 IFDEF: ICAP_CLIENT
7063 COMMENT: on|off
7064 LOC: Adaptation::Icap::TheConfig.client_username_encode
7065 DEFAULT: off
7066 DOC_START
7067 Whether to base64 encode the authenticated client username.
7068 DOC_END
7069
7070 NAME: icap_service
7071 TYPE: icap_service_type
7072 IFDEF: ICAP_CLIENT
7073 LOC: Adaptation::Icap::TheConfig
7074 DEFAULT: none
7075 DOC_START
7076 Defines a single ICAP service using the following format:
7077
7078 icap_service id vectoring_point uri [option ...]
7079
7080 id: ID
7081 an opaque identifier or name which is used to direct traffic to
7082 this specific service. Must be unique among all adaptation
7083 services in squid.conf.
7084
7085 vectoring_point: reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache
7086 This specifies at which point of transaction processing the
7087 ICAP service should be activated. *_postcache vectoring points
7088 are not yet supported.
7089
7090 uri: icap://servername:port/servicepath
7091 ICAP server and service location.
7092
7093 ICAP does not allow a single service to handle both REQMOD and RESPMOD
7094 transactions. Squid does not enforce that requirement. You can specify
7095 services with the same service_url and different vectoring_points. You
7096 can even specify multiple identical services as long as their
7097 service_names differ.
7098
7099
7100 Service options are separated by white space. ICAP services support
7101 the following name=value options:
7102
7103 bypass=on|off|1|0
7104 If set to 'on' or '1', the ICAP service is treated as
7105 optional. If the service cannot be reached or malfunctions,
7106 Squid will try to ignore any errors and process the message as
7107 if the service was not enabled. No all ICAP errors can be
7108 bypassed. If set to 0, the ICAP service is treated as
7109 essential and all ICAP errors will result in an error page
7110 returned to the HTTP client.
7111
7112 Bypass is off by default: services are treated as essential.
7113
7114 routing=on|off|1|0
7115 If set to 'on' or '1', the ICAP service is allowed to
7116 dynamically change the current message adaptation plan by
7117 returning a chain of services to be used next. The services
7118 are specified using the X-Next-Services ICAP response header
7119 value, formatted as a comma-separated list of service names.
7120 Each named service should be configured in squid.conf. Other
7121 services are ignored. An empty X-Next-Services value results
7122 in an empty plan which ends the current adaptation.
7123
7124 Dynamic adaptation plan may cross or cover multiple supported
7125 vectoring points in their natural processing order.
7126
7127 Routing is not allowed by default: the ICAP X-Next-Services
7128 response header is ignored.
7129
7130 ipv6=on|off
7131 Only has effect on split-stack systems. The default on those systems
7132 is to use IPv4-only connections. When set to 'on' this option will
7133 make Squid use IPv6-only connections to contact this ICAP service.
7134
7135 on-overload=block|bypass|wait|force
7136 If the service Max-Connections limit has been reached, do
7137 one of the following for each new ICAP transaction:
7138 * block: send an HTTP error response to the client
7139 * bypass: ignore the "over-connected" ICAP service
7140 * wait: wait (in a FIFO queue) for an ICAP connection slot
7141 * force: proceed, ignoring the Max-Connections limit
7142
7143 In SMP mode with N workers, each worker assumes the service
7144 connection limit is Max-Connections/N, even though not all
7145 workers may use a given service.
7146
7147 The default value is "bypass" if service is bypassable,
7148 otherwise it is set to "wait".
7149
7150
7151 max-conn=number
7152 Use the given number as the Max-Connections limit, regardless
7153 of the Max-Connections value given by the service, if any.
7154
7155 Older icap_service format without optional named parameters is
7156 deprecated but supported for backward compatibility.
7157
7158 Example:
7159 icap_service svcBlocker reqmod_precache icap://icap1.mydomain.net:1344/reqmod bypass=0
7160 icap_service svcLogger reqmod_precache icap://icap2.mydomain.net:1344/respmod routing=on
7161 DOC_END
7162
7163 NAME: icap_class
7164 TYPE: icap_class_type
7165 IFDEF: ICAP_CLIENT
7166 LOC: none
7167 DEFAULT: none
7168 DOC_START
7169 This deprecated option was documented to define an ICAP service
7170 chain, even though it actually defined a set of similar, redundant
7171 services, and the chains were not supported.
7172
7173 To define a set of redundant services, please use the
7174 adaptation_service_set directive. For service chains, use
7175 adaptation_service_chain.
7176 DOC_END
7177
7178 NAME: icap_access
7179 TYPE: icap_access_type
7180 IFDEF: ICAP_CLIENT
7181 LOC: none
7182 DEFAULT: none
7183 DOC_START
7184 This option is deprecated. Please use adaptation_access, which
7185 has the same ICAP functionality, but comes with better
7186 documentation, and eCAP support.
7187 DOC_END
7188
7189 COMMENT_START
7190 eCAP OPTIONS
7191 -----------------------------------------------------------------------------
7192 COMMENT_END
7193
7194 NAME: ecap_enable
7195 TYPE: onoff
7196 IFDEF: USE_ECAP
7197 COMMENT: on|off
7198 LOC: Adaptation::Ecap::TheConfig.onoff
7199 DEFAULT: off
7200 DOC_START
7201 Controls whether eCAP support is enabled.
7202 DOC_END
7203
7204 NAME: ecap_service
7205 TYPE: ecap_service_type
7206 IFDEF: USE_ECAP
7207 LOC: Adaptation::Ecap::TheConfig
7208 DEFAULT: none
7209 DOC_START
7210 Defines a single eCAP service
7211
7212 ecap_service id vectoring_point uri [option ...]
7213
7214 id: ID
7215 an opaque identifier or name which is used to direct traffic to
7216 this specific service. Must be unique among all adaptation
7217 services in squid.conf.
7218
7219 vectoring_point: reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache
7220 This specifies at which point of transaction processing the
7221 eCAP service should be activated. *_postcache vectoring points
7222 are not yet supported.
7223
7224 uri: ecap://vendor/service_name?custom&cgi=style&parameters=optional
7225 Squid uses the eCAP service URI to match this configuration
7226 line with one of the dynamically loaded services. Each loaded
7227 eCAP service must have a unique URI. Obtain the right URI from
7228 the service provider.
7229
7230
7231 Service options are separated by white space. eCAP services support
7232 the following name=value options:
7233
7234 bypass=on|off|1|0
7235 If set to 'on' or '1', the eCAP service is treated as optional.
7236 If the service cannot be reached or malfunctions, Squid will try
7237 to ignore any errors and process the message as if the service
7238 was not enabled. No all eCAP errors can be bypassed.
7239 If set to 'off' or '0', the eCAP service is treated as essential
7240 and all eCAP errors will result in an error page returned to the
7241 HTTP client.
7242
7243 Bypass is off by default: services are treated as essential.
7244
7245 routing=on|off|1|0
7246 If set to 'on' or '1', the eCAP service is allowed to
7247 dynamically change the current message adaptation plan by
7248 returning a chain of services to be used next.
7249
7250 Dynamic adaptation plan may cross or cover multiple supported
7251 vectoring points in their natural processing order.
7252
7253 Routing is not allowed by default.
7254
7255 Older ecap_service format without optional named parameters is
7256 deprecated but supported for backward compatibility.
7257
7258
7259 Example:
7260 ecap_service s1 reqmod_precache ecap://filters.R.us/leakDetector?on_error=block bypass=off
7261 ecap_service s2 respmod_precache ecap://filters.R.us/virusFilter config=/etc/vf.cfg bypass=on
7262 DOC_END
7263
7264 NAME: loadable_modules
7265 TYPE: wordlist
7266 IFDEF: USE_LOADABLE_MODULES
7267 LOC: Config.loadable_module_names
7268 DEFAULT: none
7269 DOC_START
7270 Instructs Squid to load the specified dynamic module(s) or activate
7271 preloaded module(s).
7272 Example:
7273 loadable_modules @DEFAULT_PREFIX@/lib/MinimalAdapter.so
7274 DOC_END
7275
7276 COMMENT_START
7277 MESSAGE ADAPTATION OPTIONS
7278 -----------------------------------------------------------------------------
7279 COMMENT_END
7280
7281 NAME: adaptation_service_set
7282 TYPE: adaptation_service_set_type
7283 IFDEF: USE_ADAPTATION
7284 LOC: none
7285 DEFAULT: none
7286 DOC_START
7287
7288 Configures an ordered set of similar, redundant services. This is
7289 useful when hot standby or backup adaptation servers are available.
7290
7291 adaptation_service_set set_name service_name1 service_name2 ...
7292
7293 The named services are used in the set declaration order. The first
7294 applicable adaptation service from the set is used first. The next
7295 applicable service is tried if and only if the transaction with the
7296 previous service fails and the message waiting to be adapted is still
7297 intact.
7298
7299 When adaptation starts, broken services are ignored as if they were
7300 not a part of the set. A broken service is a down optional service.
7301
7302 The services in a set must be attached to the same vectoring point
7303 (e.g., pre-cache) and use the same adaptation method (e.g., REQMOD).
7304
7305 If all services in a set are optional then adaptation failures are
7306 bypassable. If all services in the set are essential, then a
7307 transaction failure with one service may still be retried using
7308 another service from the set, but when all services fail, the master
7309 transaction fails as well.
7310
7311 A set may contain a mix of optional and essential services, but that
7312 is likely to lead to surprising results because broken services become
7313 ignored (see above), making previously bypassable failures fatal.
7314 Technically, it is the bypassability of the last failed service that
7315 matters.
7316
7317 See also: adaptation_access adaptation_service_chain
7318
7319 Example:
7320 adaptation_service_set svcBlocker urlFilterPrimary urlFilterBackup
7321 adaptation service_set svcLogger loggerLocal loggerRemote
7322 DOC_END
7323
7324 NAME: adaptation_service_chain
7325 TYPE: adaptation_service_chain_type
7326 IFDEF: USE_ADAPTATION
7327 LOC: none
7328 DEFAULT: none
7329 DOC_START
7330
7331 Configures a list of complementary services that will be applied
7332 one-by-one, forming an adaptation chain or pipeline. This is useful
7333 when Squid must perform different adaptations on the same message.
7334
7335 adaptation_service_chain chain_name service_name1 svc_name2 ...
7336
7337 The named services are used in the chain declaration order. The first
7338 applicable adaptation service from the chain is used first. The next
7339 applicable service is applied to the successful adaptation results of
7340 the previous service in the chain.
7341
7342 When adaptation starts, broken services are ignored as if they were
7343 not a part of the chain. A broken service is a down optional service.
7344
7345 Request satisfaction terminates the adaptation chain because Squid
7346 does not currently allow declaration of RESPMOD services at the
7347 "reqmod_precache" vectoring point (see icap_service or ecap_service).
7348
7349 The services in a chain must be attached to the same vectoring point
7350 (e.g., pre-cache) and use the same adaptation method (e.g., REQMOD).
7351
7352 A chain may contain a mix of optional and essential services. If an
7353 essential adaptation fails (or the failure cannot be bypassed for
7354 other reasons), the master transaction fails. Otherwise, the failure
7355 is bypassed as if the failed adaptation service was not in the chain.
7356
7357 See also: adaptation_access adaptation_service_set
7358
7359 Example:
7360 adaptation_service_chain svcRequest requestLogger urlFilter leakDetector
7361 DOC_END
7362
7363 NAME: adaptation_access
7364 TYPE: adaptation_access_type
7365 IFDEF: USE_ADAPTATION
7366 LOC: none
7367 DEFAULT: none
7368 DOC_START
7369 Sends an HTTP transaction to an ICAP or eCAP adaptation service.
7370
7371 adaptation_access service_name allow|deny [!]aclname...
7372 adaptation_access set_name allow|deny [!]aclname...
7373
7374 At each supported vectoring point, the adaptation_access
7375 statements are processed in the order they appear in this
7376 configuration file. Statements pointing to the following services
7377 are ignored (i.e., skipped without checking their ACL):
7378
7379 - services serving different vectoring points
7380 - "broken-but-bypassable" services
7381 - "up" services configured to ignore such transactions
7382 (e.g., based on the ICAP Transfer-Ignore header).
7383
7384 When a set_name is used, all services in the set are checked
7385 using the same rules, to find the first applicable one. See
7386 adaptation_service_set for details.
7387
7388 If an access list is checked and there is a match, the
7389 processing stops: For an "allow" rule, the corresponding
7390 adaptation service is used for the transaction. For a "deny"
7391 rule, no adaptation service is activated.
7392
7393 It is currently not possible to apply more than one adaptation
7394 service at the same vectoring point to the same HTTP transaction.
7395
7396 See also: icap_service and ecap_service
7397
7398 Example:
7399 adaptation_access service_1 allow all
7400 DOC_END
7401
7402 NAME: adaptation_service_iteration_limit
7403 TYPE: int
7404 IFDEF: USE_ADAPTATION
7405 LOC: Adaptation::Config::service_iteration_limit
7406 DEFAULT: 16
7407 DOC_START
7408 Limits the number of iterations allowed when applying adaptation
7409 services to a message. If your longest adaptation set or chain
7410 may have more than 16 services, increase the limit beyond its
7411 default value of 16. If detecting infinite iteration loops sooner
7412 is critical, make the iteration limit match the actual number
7413 of services in your longest adaptation set or chain.
7414
7415 Infinite adaptation loops are most likely with routing services.
7416
7417 See also: icap_service routing=1
7418 DOC_END
7419
7420 NAME: adaptation_masterx_shared_names
7421 TYPE: string
7422 IFDEF: USE_ADAPTATION
7423 LOC: Adaptation::Config::masterx_shared_name
7424 DEFAULT: none
7425 DOC_START
7426 For each master transaction (i.e., the HTTP request and response
7427 sequence, including all related ICAP and eCAP exchanges), Squid
7428 maintains a table of metadata. The table entries are (name, value)
7429 pairs shared among eCAP and ICAP exchanges. The table is destroyed
7430 with the master transaction.
7431
7432 This option specifies the table entry names that Squid must accept
7433 from and forward to the adaptation transactions.
7434
7435 An ICAP REQMOD or RESPMOD transaction may set an entry in the
7436 shared table by returning an ICAP header field with a name
7437 specified in adaptation_masterx_shared_names.
7438
7439 An eCAP REQMOD or RESPMOD transaction may set an entry in the
7440 shared table by implementing the libecap::visitEachOption() API
7441 to provide an option with a name specified in
7442 adaptation_masterx_shared_names.
7443
7444 Squid will store and forward the set entry to subsequent adaptation
7445 transactions within the same master transaction scope.
7446
7447 Only one shared entry name is supported at this time.
7448
7449 Example:
7450 # share authentication information among ICAP services
7451 adaptation_masterx_shared_names X-Subscriber-ID
7452 DOC_END
7453
7454 NAME: adaptation_meta
7455 TYPE: adaptation_meta_type
7456 IFDEF: USE_ADAPTATION
7457 LOC: Adaptation::Config::metaHeaders
7458 DEFAULT: none
7459 DOC_START
7460 This option allows Squid administrator to add custom ICAP request
7461 headers or eCAP options to Squid ICAP requests or eCAP transactions.
7462 Use it to pass custom authentication tokens and other
7463 transaction-state related meta information to an ICAP/eCAP service.
7464
7465 The addition of a meta header is ACL-driven:
7466 adaptation_meta name value [!]aclname ...
7467
7468 Processing for a given header name stops after the first ACL list match.
7469 Thus, it is impossible to add two headers with the same name. If no ACL
7470 lists match for a given header name, no such header is added. For
7471 example:
7472
7473 # do not debug transactions except for those that need debugging
7474 adaptation_meta X-Debug 1 needs_debugging
7475
7476 # log all transactions except for those that must remain secret
7477 adaptation_meta X-Log 1 !keep_secret
7478
7479 # mark transactions from users in the "G 1" group
7480 adaptation_meta X-Authenticated-Groups "G 1" authed_as_G1
7481
7482 The "value" parameter may be a regular squid.conf token or a "double
7483 quoted string". Within the quoted string, use backslash (\) to escape
7484 any character, which is currently only useful for escaping backslashes
7485 and double quotes. For example,
7486 "this string has one backslash (\\) and two \"quotes\""
7487 DOC_END
7488
7489 NAME: icap_retry
7490 TYPE: acl_access
7491 IFDEF: ICAP_CLIENT
7492 LOC: Adaptation::Icap::TheConfig.repeat
7493 DEFAULT_IF_NONE: deny all
7494 DOC_START
7495 This ACL determines which retriable ICAP transactions are
7496 retried. Transactions that received a complete ICAP response
7497 and did not have to consume or produce HTTP bodies to receive
7498 that response are usually retriable.
7499
7500 icap_retry allow|deny [!]aclname ...
7501
7502 Squid automatically retries some ICAP I/O timeouts and errors
7503 due to persistent connection race conditions.
7504
7505 See also: icap_retry_limit
7506 DOC_END
7507
7508 NAME: icap_retry_limit
7509 TYPE: int
7510 IFDEF: ICAP_CLIENT
7511 LOC: Adaptation::Icap::TheConfig.repeat_limit
7512 DEFAULT: 0
7513 DOC_START
7514 Limits the number of retries allowed. When set to zero (default),
7515 no retries are allowed.
7516
7517 Communication errors due to persistent connection race
7518 conditions are unavoidable, automatically retried, and do not
7519 count against this limit.
7520
7521 See also: icap_retry
7522 DOC_END
7523
7524
7525 COMMENT_START
7526 DNS OPTIONS
7527 -----------------------------------------------------------------------------
7528 COMMENT_END
7529
7530 NAME: check_hostnames
7531 TYPE: onoff
7532 DEFAULT: off
7533 LOC: Config.onoff.check_hostnames
7534 DOC_START
7535 For security and stability reasons Squid can check
7536 hostnames for Internet standard RFC compliance. If you want
7537 Squid to perform these checks turn this directive on.
7538 DOC_END
7539
7540 NAME: allow_underscore
7541 TYPE: onoff
7542 DEFAULT: on
7543 LOC: Config.onoff.allow_underscore
7544 DOC_START
7545 Underscore characters is not strictly allowed in Internet hostnames
7546 but nevertheless used by many sites. Set this to off if you want
7547 Squid to be strict about the standard.
7548 This check is performed only when check_hostnames is set to on.
7549 DOC_END
7550
7551 NAME: cache_dns_program
7552 TYPE: string
7553 IFDEF: USE_DNSHELPER
7554 DEFAULT: @DEFAULT_DNSSERVER@
7555 LOC: Config.Program.dnsserver
7556 DOC_START
7557 Specify the location of the executable for dnslookup process.
7558 DOC_END
7559
7560 NAME: dns_children
7561 TYPE: HelperChildConfig
7562 IFDEF: USE_DNSHELPER
7563 DEFAULT: 32 startup=1 idle=1
7564 LOC: Config.dnsChildren
7565 DOC_START
7566 The maximum number of processes spawn to service DNS name lookups.
7567 If you limit it too few Squid will have to wait for them to process
7568 a backlog of requests, slowing it down. If you allow too many they
7569 will use RAM and other system resources noticably.
7570 The maximum this may be safely set to is 32.
7571
7572 The startup= and idle= options allow some measure of skew in your
7573 tuning.
7574
7575 startup=
7576
7577 Sets a minimum of how many processes are to be spawned when Squid
7578 starts or reconfigures. When set to zero the first request will
7579 cause spawning of the first child process to handle it.
7580
7581 Starting too few will cause an initial slowdown in traffic as Squid
7582 attempts to simultaneously spawn enough processes to cope.
7583
7584 idle=
7585
7586 Sets a minimum of how many processes Squid is to try and keep available
7587 at all times. When traffic begins to rise above what the existing
7588 processes can handle this many more will be spawned up to the maximum
7589 configured. A minimum setting of 1 is required.
7590 DOC_END
7591
7592 NAME: dns_retransmit_interval
7593 TYPE: time_msec
7594 DEFAULT: 5 seconds
7595 LOC: Config.Timeout.idns_retransmit
7596 IFDEF: !USE_DNSHELPER
7597 DOC_START
7598 Initial retransmit interval for DNS queries. The interval is
7599 doubled each time all configured DNS servers have been tried.
7600 DOC_END
7601
7602 NAME: dns_timeout
7603 TYPE: time_msec
7604 DEFAULT: 30 seconds
7605 LOC: Config.Timeout.idns_query
7606 IFDEF: !USE_DNSHELPER
7607 DOC_START
7608 DNS Query timeout. If no response is received to a DNS query
7609 within this time all DNS servers for the queried domain
7610 are assumed to be unavailable.
7611 DOC_END
7612
7613 NAME: dns_packet_max
7614 TYPE: b_ssize_t
7615 DEFAULT: none
7616 LOC: Config.dns.packet_max
7617 IFDEF: !USE_DNSHELPER
7618 DOC_START
7619 Maximum number of bytes packet size to advertise via EDNS.
7620 Set to "none" to disable EDNS large packet support.
7621
7622 For legacy reasons DNS UDP replies will default to 512 bytes which
7623 is too small for many responses. EDNS provides a means for Squid to
7624 negotiate receiving larger responses back immediately without having
7625 to failover with repeat requests. Responses larger than this limit
7626 will retain the old behaviour of failover to TCP DNS.
7627
7628 Squid has no real fixed limit internally, but allowing packet sizes
7629 over 1500 bytes requires network jumbogram support and is usually not
7630 necessary.
7631
7632 WARNING: The RFC also indicates that some older resolvers will reply
7633 with failure of the whole request if the extension is added. Some
7634 resolvers have already been identified which will reply with mangled
7635 EDNS response on occasion. Usually in response to many-KB jumbogram
7636 sizes being advertised by Squid.
7637 Squid will currently treat these both as an unable-to-resolve domain
7638 even if it would be resolvable without EDNS.
7639 DOC_END
7640
7641 NAME: dns_defnames
7642 COMMENT: on|off
7643 TYPE: onoff
7644 DEFAULT: off
7645 LOC: Config.onoff.res_defnames
7646 DOC_START
7647 Normally the RES_DEFNAMES resolver option is disabled
7648 (see res_init(3)). This prevents caches in a hierarchy
7649 from interpreting single-component hostnames locally. To allow
7650 Squid to handle single-component names, enable this option.
7651 DOC_END
7652
7653 NAME: dns_nameservers
7654 TYPE: wordlist
7655 DEFAULT: none
7656 LOC: Config.dns_nameservers
7657 DOC_START
7658 Use this if you want to specify a list of DNS name servers
7659 (IP addresses) to use instead of those given in your
7660 /etc/resolv.conf file.
7661 On Windows platforms, if no value is specified here or in
7662 the /etc/resolv.conf file, the list of DNS name servers are
7663 taken from the Windows registry, both static and dynamic DHCP
7664 configurations are supported.
7665
7666 Example: dns_nameservers 10.0.0.1 192.172.0.4
7667 DOC_END
7668
7669 NAME: hosts_file
7670 TYPE: string
7671 DEFAULT: @DEFAULT_HOSTS@
7672 LOC: Config.etcHostsPath
7673 DOC_START
7674 Location of the host-local IP name-address associations
7675 database. Most Operating Systems have such a file on different
7676 default locations:
7677 - Un*X & Linux: /etc/hosts
7678 - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts
7679 (%SystemRoot% value install default is c:\winnt)
7680 - Windows XP/2003: %SystemRoot%\system32\drivers\etc\hosts
7681 (%SystemRoot% value install default is c:\windows)
7682 - Windows 9x/Me: %windir%\hosts
7683 (%windir% value is usually c:\windows)
7684 - Cygwin: /etc/hosts
7685
7686 The file contains newline-separated definitions, in the
7687 form ip_address_in_dotted_form name [name ...] names are
7688 whitespace-separated. Lines beginning with an hash (#)
7689 character are comments.
7690
7691 The file is checked at startup and upon configuration.
7692 If set to 'none', it won't be checked.
7693 If append_domain is used, that domain will be added to
7694 domain-local (i.e. not containing any dot character) host
7695 definitions.
7696 DOC_END
7697
7698 NAME: append_domain
7699 TYPE: string
7700 LOC: Config.appendDomain
7701 DEFAULT: none
7702 DOC_START
7703 Appends local domain name to hostnames without any dots in
7704 them. append_domain must begin with a period.
7705
7706 Be warned there are now Internet names with no dots in
7707 them using only top-domain names, so setting this may
7708 cause some Internet sites to become unavailable.
7709
7710 Example:
7711 append_domain .yourdomain.com
7712 DOC_END
7713
7714 NAME: ignore_unknown_nameservers
7715 TYPE: onoff
7716 LOC: Config.onoff.ignore_unknown_nameservers
7717 DEFAULT: on
7718 IFDEF: !USE_DNSHELPER
7719 DOC_START
7720 By default Squid checks that DNS responses are received
7721 from the same IP addresses they are sent to. If they
7722 don't match, Squid ignores the response and writes a warning
7723 message to cache.log. You can allow responses from unknown
7724 nameservers by setting this option to 'off'.
7725 DOC_END
7726
7727 NAME: dns_v4_first
7728 TYPE: onoff
7729 DEFAULT: off
7730 LOC: Config.dns.v4_first
7731 IFDEF: !USE_DNSHELPER
7732 DOC_START
7733 With the IPv6 Internet being as fast or faster than IPv4 Internet
7734 for most networks Squid prefers to contact websites over IPv6.
7735
7736 This option reverses the order of preference to make Squid contact
7737 dual-stack websites over IPv4 first. Squid will still perform both
7738 IPv6 and IPv4 DNS lookups before connecting.
7739
7740 WARNING:
7741 This option will restrict the situations under which IPv6
7742 connectivity is used (and tested). Hiding network problems
7743 which would otherwise be detected and warned about.
7744 DOC_END
7745
7746 NAME: ipcache_size
7747 COMMENT: (number of entries)
7748 TYPE: int
7749 DEFAULT: 1024
7750 LOC: Config.ipcache.size
7751 DOC_NONE
7752
7753 NAME: ipcache_low
7754 COMMENT: (percent)
7755 TYPE: int
7756 DEFAULT: 90
7757 LOC: Config.ipcache.low
7758 DOC_NONE
7759
7760 NAME: ipcache_high
7761 COMMENT: (percent)
7762 TYPE: int
7763 DEFAULT: 95
7764 LOC: Config.ipcache.high
7765 DOC_START
7766 The size, low-, and high-water marks for the IP cache.
7767 DOC_END
7768
7769 NAME: fqdncache_size
7770 COMMENT: (number of entries)
7771 TYPE: int
7772 DEFAULT: 1024
7773 LOC: Config.fqdncache.size
7774 DOC_START
7775 Maximum number of FQDN cache entries.
7776 DOC_END
7777
7778 COMMENT_START
7779 MISCELLANEOUS
7780 -----------------------------------------------------------------------------
7781 COMMENT_END
7782
7783 NAME: memory_pools
7784 COMMENT: on|off
7785 TYPE: onoff
7786 DEFAULT: on
7787 LOC: Config.onoff.mem_pools
7788 DOC_START
7789 If set, Squid will keep pools of allocated (but unused) memory
7790 available for future use. If memory is a premium on your
7791 system and you believe your malloc library outperforms Squid
7792 routines, disable this.
7793 DOC_END
7794
7795 NAME: memory_pools_limit
7796 COMMENT: (bytes)
7797 TYPE: b_int64_t
7798 DEFAULT: 5 MB
7799 LOC: Config.MemPools.limit
7800 DOC_START
7801 Used only with memory_pools on:
7802 memory_pools_limit 50 MB
7803
7804 If set to a non-zero value, Squid will keep at most the specified
7805 limit of allocated (but unused) memory in memory pools. All free()
7806 requests that exceed this limit will be handled by your malloc
7807 library. Squid does not pre-allocate any memory, just safe-keeps
7808 objects that otherwise would be free()d. Thus, it is safe to set
7809 memory_pools_limit to a reasonably high value even if your
7810 configuration will use less memory.
7811
7812 If set to none, Squid will keep all memory it can. That is, there
7813 will be no limit on the total amount of memory used for safe-keeping.
7814
7815 To disable memory allocation optimization, do not set
7816 memory_pools_limit to 0 or none. Set memory_pools to "off" instead.
7817
7818 An overhead for maintaining memory pools is not taken into account
7819 when the limit is checked. This overhead is close to four bytes per
7820 object kept. However, pools may actually _save_ memory because of
7821 reduced memory thrashing in your malloc library.
7822 DOC_END
7823
7824 NAME: forwarded_for
7825 COMMENT: on|off|transparent|truncate|delete
7826 TYPE: string
7827 DEFAULT: on
7828 LOC: opt_forwarded_for
7829 DOC_START
7830 If set to "on", Squid will append your client's IP address
7831 in the HTTP requests it forwards. By default it looks like:
7832
7833 X-Forwarded-For: 192.1.2.3
7834
7835 If set to "off", it will appear as
7836
7837 X-Forwarded-For: unknown
7838
7839 If set to "transparent", Squid will not alter the
7840 X-Forwarded-For header in any way.
7841
7842 If set to "delete", Squid will delete the entire
7843 X-Forwarded-For header.
7844
7845 If set to "truncate", Squid will remove all existing
7846 X-Forwarded-For entries, and place the client IP as the sole entry.
7847 DOC_END
7848
7849 NAME: cachemgr_passwd
7850 TYPE: cachemgrpasswd
7851 DEFAULT: none
7852 LOC: Config.passwd_list
7853 DOC_START
7854 Specify passwords for cachemgr operations.
7855
7856 Usage: cachemgr_passwd password action action ...
7857
7858 Some valid actions are (see cache manager menu for a full list):
7859 5min
7860 60min
7861 asndb
7862 authenticator
7863 cbdata
7864 client_list
7865 comm_incoming
7866 config *
7867 counters
7868 delay
7869 digest_stats
7870 dns
7871 events
7872 filedescriptors
7873 fqdncache
7874 histograms
7875 http_headers
7876 info
7877 io
7878 ipcache
7879 mem
7880 menu
7881 netdb
7882 non_peers
7883 objects
7884 offline_toggle *
7885 pconn
7886 peer_select
7887 reconfigure *
7888 redirector
7889 refresh
7890 server_list
7891 shutdown *
7892 store_digest
7893 storedir
7894 utilization
7895 via_headers
7896 vm_objects
7897
7898 * Indicates actions which will not be performed without a
7899 valid password, others can be performed if not listed here.
7900
7901 To disable an action, set the password to "disable".
7902 To allow performing an action without a password, set the
7903 password to "none".
7904
7905 Use the keyword "all" to set the same password for all actions.
7906
7907 Example:
7908 cachemgr_passwd secret shutdown
7909 cachemgr_passwd lesssssssecret info stats/objects
7910 cachemgr_passwd disable all
7911 DOC_END
7912
7913 NAME: client_db
7914 COMMENT: on|off
7915 TYPE: onoff
7916 DEFAULT: on
7917 LOC: Config.onoff.client_db
7918 DOC_START
7919 If you want to disable collecting per-client statistics,
7920 turn off client_db here.
7921 DOC_END
7922
7923 NAME: refresh_all_ims
7924 COMMENT: on|off
7925 TYPE: onoff
7926 DEFAULT: off
7927 LOC: Config.onoff.refresh_all_ims
7928 DOC_START
7929 When you enable this option, squid will always check
7930 the origin server for an update when a client sends an
7931 If-Modified-Since request. Many browsers use IMS
7932 requests when the user requests a reload, and this
7933 ensures those clients receive the latest version.
7934
7935 By default (off), squid may return a Not Modified response
7936 based on the age of the cached version.
7937 DOC_END
7938
7939 NAME: reload_into_ims
7940 IFDEF: USE_HTTP_VIOLATIONS
7941 COMMENT: on|off
7942 TYPE: onoff
7943 DEFAULT: off
7944 LOC: Config.onoff.reload_into_ims
7945 DOC_START
7946 When you enable this option, client no-cache or ``reload''
7947 requests will be changed to If-Modified-Since requests.
7948 Doing this VIOLATES the HTTP standard. Enabling this
7949 feature could make you liable for problems which it
7950 causes.
7951
7952 see also refresh_pattern for a more selective approach.
7953 DOC_END
7954
7955 NAME: connect_retries
7956 TYPE: int
7957 LOC: Config.connect_retries
7958 DEFAULT: 0
7959 DOC_START
7960 This sets the maximum number of connection attempts made for each
7961 TCP connection. The connect_retries attempts must all still
7962 complete within the connection timeout period.
7963
7964 The default is not to re-try if the first connection attempt fails.
7965 The (not recommended) maximum is 10 tries.
7966
7967 A warning message will be generated if it is set to a too-high
7968 value and the configured value will be over-ridden.
7969
7970 Note: These re-tries are in addition to forward_max_tries
7971 which limit how many different addresses may be tried to find
7972 a useful server.
7973 DOC_END
7974
7975 NAME: retry_on_error
7976 TYPE: onoff
7977 LOC: Config.retry.onerror
7978 DEFAULT: off
7979 DOC_START
7980 If set to ON Squid will automatically retry requests when
7981 receiving an error response with status 403 (Forbidden),
7982 500 (Internal Error), 501 or 503 (Service not available).
7983 Status 502 and 504 (Gateway errors) are always retried.
7984
7985 This is mainly useful if you are in a complex cache hierarchy to
7986 work around access control errors.
7987
7988 NOTE: This retry will attempt to find another working destination.
7989 Which is different from the server which just failed.
7990 DOC_END
7991
7992 NAME: as_whois_server
7993 TYPE: string
7994 LOC: Config.as_whois_server
7995 DEFAULT: whois.ra.net
7996 DOC_START
7997 WHOIS server to query for AS numbers. NOTE: AS numbers are
7998 queried only when Squid starts up, not for every request.
7999 DOC_END
8000
8001 NAME: offline_mode
8002 TYPE: onoff
8003 LOC: Config.onoff.offline
8004 DEFAULT: off
8005 DOC_START
8006 Enable this option and Squid will never try to validate cached
8007 objects.
8008 DOC_END
8009
8010 NAME: uri_whitespace
8011 TYPE: uri_whitespace
8012 LOC: Config.uri_whitespace
8013 DEFAULT: strip
8014 DOC_START
8015 What to do with requests that have whitespace characters in the
8016 URI. Options:
8017
8018 strip: The whitespace characters are stripped out of the URL.
8019 This is the behavior recommended by RFC2396.
8020 deny: The request is denied. The user receives an "Invalid
8021 Request" message.
8022 allow: The request is allowed and the URI is not changed. The
8023 whitespace characters remain in the URI. Note the
8024 whitespace is passed to redirector processes if they
8025 are in use.
8026 encode: The request is allowed and the whitespace characters are
8027 encoded according to RFC1738. This could be considered
8028 a violation of the HTTP/1.1
8029 RFC because proxies are not allowed to rewrite URI's.
8030 chop: The request is allowed and the URI is chopped at the
8031 first whitespace. This might also be considered a
8032 violation.
8033 DOC_END
8034
8035 NAME: chroot
8036 TYPE: string
8037 LOC: Config.chroot_dir
8038 DEFAULT: none
8039 DOC_START
8040 Specifies a directory where Squid should do a chroot() while
8041 initializing. This also causes Squid to fully drop root
8042 privileges after initializing. This means, for example, if you
8043 use a HTTP port less than 1024 and try to reconfigure, you may
8044 get an error saying that Squid can not open the port.
8045 DOC_END
8046
8047 NAME: balance_on_multiple_ip
8048 TYPE: onoff
8049 LOC: Config.onoff.balance_on_multiple_ip
8050 DEFAULT: off
8051 DOC_START
8052 Modern IP resolvers in squid sort lookup results by preferred access.
8053 By default squid will use these IP in order and only rotates to
8054 the next listed when the most preffered fails.
8055
8056 Some load balancing servers based on round robin DNS have been
8057 found not to preserve user session state across requests
8058 to different IP addresses.
8059
8060 Enabling this directive Squid rotates IP's per request.
8061 DOC_END
8062
8063 NAME: pipeline_prefetch
8064 TYPE: onoff
8065 LOC: Config.onoff.pipeline_prefetch
8066 DEFAULT: off
8067 DOC_START
8068 To boost the performance of pipelined requests to closer
8069 match that of a non-proxied environment Squid can try to fetch
8070 up to two requests in parallel from a pipeline.
8071
8072 Defaults to off for bandwidth management and access logging
8073 reasons.
8074
8075 WARNING: pipelining breaks NTLM and Negotiate/Kerberos authentication.
8076 DOC_END
8077
8078 NAME: high_response_time_warning
8079 TYPE: int
8080 COMMENT: (msec)
8081 LOC: Config.warnings.high_rptm
8082 DEFAULT: 0
8083 DOC_START
8084 If the one-minute median response time exceeds this value,
8085 Squid prints a WARNING with debug level 0 to get the
8086 administrators attention. The value is in milliseconds.
8087 DOC_END
8088
8089 NAME: high_page_fault_warning
8090 TYPE: int
8091 LOC: Config.warnings.high_pf
8092 DEFAULT: 0
8093 DOC_START
8094 If the one-minute average page fault rate exceeds this
8095 value, Squid prints a WARNING with debug level 0 to get
8096 the administrators attention. The value is in page faults
8097 per second.
8098 DOC_END
8099
8100 NAME: high_memory_warning
8101 TYPE: b_size_t
8102 LOC: Config.warnings.high_memory
8103 DEFAULT: 0 KB
8104 DOC_START
8105 If the memory usage (as determined by mallinfo) exceeds
8106 this amount, Squid prints a WARNING with debug level 0 to get
8107 the administrators attention.
8108 DOC_END
8109
8110 NAME: sleep_after_fork
8111 COMMENT: (microseconds)
8112 TYPE: int
8113 LOC: Config.sleep_after_fork
8114 DEFAULT: 0
8115 DOC_START
8116 When this is set to a non-zero value, the main Squid process
8117 sleeps the specified number of microseconds after a fork()
8118 system call. This sleep may help the situation where your
8119 system reports fork() failures due to lack of (virtual)
8120 memory. Note, however, if you have a lot of child
8121 processes, these sleep delays will add up and your
8122 Squid will not service requests for some amount of time
8123 until all the child processes have been started.
8124 On Windows value less then 1000 (1 milliseconds) are
8125 rounded to 1000.
8126 DOC_END
8127
8128 NAME: windows_ipaddrchangemonitor
8129 IFDEF: _SQUID_MSWIN_
8130 COMMENT: on|off
8131 TYPE: onoff
8132 DEFAULT: on
8133 LOC: Config.onoff.WIN32_IpAddrChangeMonitor
8134 DOC_START
8135 On Windows Squid by default will monitor IP address changes and will
8136 reconfigure itself after any detected event. This is very useful for
8137 proxies connected to internet with dial-up interfaces.
8138 In some cases (a Proxy server acting as VPN gateway is one) it could be
8139 desiderable to disable this behaviour setting this to 'off'.
8140 Note: after changing this, Squid service must be restarted.
8141 DOC_END
8142
8143 NAME: eui_lookup
8144 TYPE: onoff
8145 IFDEF: USE_SQUID_EUI
8146 DEFAULT: on
8147 LOC: Eui::TheConfig.euiLookup
8148 DOC_START
8149 Whether to lookup the EUI or MAC address of a connected client.
8150 DOC_END
8151
8152 NAME: max_filedescriptors max_filedesc
8153 TYPE: int
8154 DEFAULT: 0
8155 LOC: Config.max_filedescriptors
8156 DOC_START
8157 The maximum number of filedescriptors supported.
8158
8159 The default "0" means Squid inherits the current ulimit setting.
8160
8161 Note: Changing this requires a restart of Squid. Also
8162 not all comm loops supports large values.
8163 DOC_END
8164
8165 NAME: workers
8166 TYPE: int
8167 LOC: Config.workers
8168 DEFAULT: 1
8169 DOC_START
8170 Number of main Squid processes or "workers" to fork and maintain.
8171 0: "no daemon" mode, like running "squid -N ..."
8172 1: "no SMP" mode, start one main Squid process daemon (default)
8173 N: start N main Squid process daemons (i.e., SMP mode)
8174
8175 In SMP mode, each worker does nearly all what a single Squid daemon
8176 does (e.g., listen on http_port and forward HTTP requests).
8177 DOC_END
8178
8179 NAME: cpu_affinity_map
8180 TYPE: CpuAffinityMap
8181 LOC: Config.cpuAffinityMap
8182 DEFAULT: none
8183 DOC_START
8184 Usage: cpu_affinity_map process_numbers=P1,P2,... cores=C1,C2,...
8185
8186 Sets 1:1 mapping between Squid processes and CPU cores. For example,
8187
8188 cpu_affinity_map process_numbers=1,2,3,4 cores=1,3,5,7
8189
8190 affects processes 1 through 4 only and places them on the first
8191 four even cores, starting with core #1.
8192
8193 CPU cores are numbered starting from 1. Requires support for
8194 sched_getaffinity(2) and sched_setaffinity(2) system calls.
8195
8196 Multiple cpu_affinity_map options are merged.
8197
8198 See also: workers
8199 DOC_END
8200
8201 EOF