]> git.ipfire.org Git - thirdparty/squid.git/blame - src/cf.data.pre
Merged from trunk
[thirdparty/squid.git] / src / cf.data.pre
CommitLineData
3a278cb8 1
9cef6668 2#
c255af72 3# $Id: cf.data.pre,v 1.502 2008/02/12 00:05:11 amosjeffries Exp $
9cef6668 4#
6845f129 5# SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 6# ----------------------------------------------------------
7#
2b6662ba 8# Squid is the result of efforts by numerous individuals from
9# the Internet community; see the CONTRIBUTORS file for full
10# details. Many organizations have provided support for Squid's
11# development; see the SPONSORS file for full details. Squid is
12# Copyrighted (C) 2000 by the Regents of the University of
13# California; see the COPYRIGHT file for full details. Squid
14# incorporates software developed and/or copyrighted by other
15# sources; see the CREDITS file for full details.
9cef6668 16#
17# This program is free software; you can redistribute it and/or modify
18# it under the terms of the GNU General Public License as published by
19# the Free Software Foundation; either version 2 of the License, or
20# (at your option) any later version.
96d88dcb 21#
9cef6668 22# This program is distributed in the hope that it will be useful,
23# but WITHOUT ANY WARRANTY; without even the implied warranty of
24# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25# GNU General Public License for more details.
96d88dcb 26#
9cef6668 27# You should have received a copy of the GNU General Public License
28# along with this program; if not, write to the Free Software
29# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
30#
31
0f74202c 32COMMENT_START
cccac0a2 33 WELCOME TO SQUID @VERSION@
34 ----------------------------
3a278cb8 35
cccac0a2 36 This is the default Squid configuration file. You may wish
37 to look at the Squid home page (http://www.squid-cache.org/)
38 for the FAQ and other documentation.
3a278cb8 39
cccac0a2 40 The default Squid config file shows what the defaults for
41 various options happen to be. If you don't need to change the
42 default, you shouldn't uncomment the line. Doing so may cause
43 run-time problems. In some cases "none" refers to no default
44 setting at all, while in other cases it refers to a valid
45 option - the comments for that keyword indicate if this is the
46 case.
debd9a31 47
cccac0a2 48COMMENT_END
3a278cb8 49
592a09dc 50COMMENT_START
51 Configuration options can be included using the "include" directive.
52 Include takes a list of files to include. Quoting and wildcards is
53 supported.
54
55 For example,
56
57 include /path/to/included/file/squid.acl.config
58
59 Includes can be nested up to a hard-coded depth of 16 levels.
60 This arbitrary restriction is to prevent recursive include references
61 from causing Squid entering an infinite loop whilst trying to load
62 configuration files.
63COMMENT_END
64
5473c134 65COMMENT_START
41bd17a4 66 OPTIONS FOR AUTHENTICATION
5473c134 67 -----------------------------------------------------------------------------
68COMMENT_END
69
41bd17a4 70NAME: auth_param
71TYPE: authparam
72LOC: Config.authConfiguration
cccac0a2 73DEFAULT: none
74DOC_START
41bd17a4 75 This is used to define parameters for the various authentication
76 schemes supported by Squid.
cccac0a2 77
41bd17a4 78 format: auth_param scheme parameter [setting]
cccac0a2 79
41bd17a4 80 The order in which authentication schemes are presented to the client is
81 dependent on the order the scheme first appears in config file. IE
82 has a bug (it's not RFC 2617 compliant) in that it will use the basic
83 scheme if basic is the first entry presented, even if more secure
84 schemes are presented. For now use the order in the recommended
85 settings section below. If other browsers have difficulties (don't
86 recognize the schemes offered even if you are using basic) either
87 put basic first, or disable the other schemes (by commenting out their
88 program entry).
cccac0a2 89
41bd17a4 90 Once an authentication scheme is fully configured, it can only be
91 shutdown by shutting squid down and restarting. Changes can be made on
92 the fly and activated with a reconfigure. I.E. You can change to a
93 different helper, but not unconfigure the helper completely.
cccac0a2 94
41bd17a4 95 Please note that while this directive defines how Squid processes
96 authentication it does not automatically activate authentication.
97 To use authentication you must in addition make use of ACLs based
98 on login name in http_access (proxy_auth, proxy_auth_regex or
99 external with %LOGIN used in the format tag). The browser will be
100 challenged for authentication on the first such acl encountered
101 in http_access processing and will also be re-challenged for new
102 login credentials if the request is being denied by a proxy_auth
103 type acl.
cccac0a2 104
41bd17a4 105 WARNING: authentication can't be used in a transparently intercepting
106 proxy as the client then thinks it is talking to an origin server and
107 not the proxy. This is a limitation of bending the TCP/IP protocol to
108 transparently intercepting port 80, not a limitation in Squid.
13b5cd0c
AJ
109 Ports flagged 'transparent', 'intercept', or 'tproxy' have authentication
110 disabled.
cccac0a2 111
41bd17a4 112 === Parameters for the basic scheme follow. ===
cccac0a2 113
41bd17a4 114 "program" cmdline
115 Specify the command for the external authenticator. Such a program
116 reads a line containing "username password" and replies "OK" or
117 "ERR" in an endless loop. "ERR" responses may optionally be followed
118 by a error description available as %m in the returned error page.
119 If you use an authenticator, make sure you have 1 acl of type proxy_auth.
cccac0a2 120
41bd17a4 121 By default, the basic authentication scheme is not used unless a
122 program is specified.
cccac0a2 123
41bd17a4 124 If you want to use the traditional NCSA proxy authentication, set
125 this line to something like
307b83b7 126
41bd17a4 127 auth_param basic program @DEFAULT_PREFIX@/libexec/ncsa_auth @DEFAULT_PREFIX@/etc/passwd
9e7dbc51 128
41bd17a4 129 "children" numberofchildren
130 The number of authenticator processes to spawn. If you start too few
131 Squid will have to wait for them to process a backlog of credential
132 verifications, slowing it down. When password verifications are
133 done via a (slow) network you are likely to need lots of
134 authenticator processes.
135 auth_param basic children 5
9e7dbc51 136
41bd17a4 137 "concurrency" concurrency
138 The number of concurrent requests the helper can process.
139 The default of 0 is used for helpers who only supports
140 one request at a time. Setting this changes the protocol used to
141 include a channel number first on the request/response line, allowing
142 multiple requests to be sent to the same helper in parallell without
143 wating for the response.
144 Must not be set unless it's known the helper supports this.
145 auth_param basic concurrency 0
0fdafae7 146
41bd17a4 147 "realm" realmstring
148 Specifies the realm name which is to be reported to the
149 client for the basic proxy authentication scheme (part of
150 the text the user will see when prompted their username and
151 password). There is no default.
152 auth_param basic realm Squid proxy-caching web server
d1b63fc8 153
41bd17a4 154 "credentialsttl" timetolive
155 Specifies how long squid assumes an externally validated
156 username:password pair is valid for - in other words how
157 often the helper program is called for that user. Set this
158 low to force revalidation with short lived passwords. Note
159 setting this high does not impact your susceptibility
160 to replay attacks unless you are using an one-time password
161 system (such as SecureID). If you are using such a system,
162 you will be vulnerable to replay attacks unless you also
163 use the max_user_ip ACL in an http_access rule.
cccac0a2 164
41bd17a4 165 "casesensitive" on|off
166 Specifies if usernames are case sensitive. Most user databases are
167 case insensitive allowing the same username to be spelled using both
168 lower and upper case letters, but some are case sensitive. This
169 makes a big difference for user_max_ip ACL processing and similar.
170 auth_param basic casesensitive off
cccac0a2 171
41bd17a4 172 === Parameters for the digest scheme follow ===
cccac0a2 173
41bd17a4 174 "program" cmdline
175 Specify the command for the external authenticator. Such
176 a program reads a line containing "username":"realm" and
177 replies with the appropriate H(A1) value hex encoded or
178 ERR if the user (or his H(A1) hash) does not exists.
179 See rfc 2616 for the definition of H(A1).
180 "ERR" responses may optionally be followed by a error description
181 available as %m in the returned error page.
cccac0a2 182
41bd17a4 183 By default, the digest authentication scheme is not used unless a
184 program is specified.
b8c0c06d 185
41bd17a4 186 If you want to use a digest authenticator, set this line to
187 something like
cccac0a2 188
41bd17a4 189 auth_param digest program @DEFAULT_PREFIX@/bin/digest_auth_pw @DEFAULT_PREFIX@/etc/digpass
cccac0a2 190
41bd17a4 191 "children" numberofchildren
192 The number of authenticator processes to spawn (no default).
193 If you start too few Squid will have to wait for them to
194 process a backlog of H(A1) calculations, slowing it down.
195 When the H(A1) calculations are done via a (slow) network
196 you are likely to need lots of authenticator processes.
197 auth_param digest children 5
cccac0a2 198
41bd17a4 199 "realm" realmstring
200 Specifies the realm name which is to be reported to the
201 client for the digest proxy authentication scheme (part of
202 the text the user will see when prompted their username and
203 password). There is no default.
204 auth_param digest realm Squid proxy-caching web server
cccac0a2 205
41bd17a4 206 "nonce_garbage_interval" timeinterval
207 Specifies the interval that nonces that have been issued
208 to client_agent's are checked for validity.
cccac0a2 209
41bd17a4 210 "nonce_max_duration" timeinterval
211 Specifies the maximum length of time a given nonce will be
212 valid for.
cccac0a2 213
41bd17a4 214 "nonce_max_count" number
215 Specifies the maximum number of times a given nonce can be
216 used.
cccac0a2 217
41bd17a4 218 "nonce_strictness" on|off
219 Determines if squid requires strict increment-by-1 behavior
220 for nonce counts, or just incrementing (off - for use when
221 useragents generate nonce counts that occasionally miss 1
222 (ie, 1,2,4,6)). Default off.
cccac0a2 223
41bd17a4 224 "check_nonce_count" on|off
225 This directive if set to off can disable the nonce count check
226 completely to work around buggy digest qop implementations in
227 certain mainstream browser versions. Default on to check the
228 nonce count to protect from authentication replay attacks.
cccac0a2 229
41bd17a4 230 "post_workaround" on|off
231 This is a workaround to certain buggy browsers who sends
232 an incorrect request digest in POST requests when reusing
233 the same nonce as acquired earlier on a GET request.
cccac0a2 234
41bd17a4 235 === NTLM scheme options follow ===
cccac0a2 236
41bd17a4 237 "program" cmdline
238 Specify the command for the external NTLM authenticator.
239 Such a program reads exchanged NTLMSSP packets with
240 the browser via Squid until authentication is completed.
241 If you use an NTLM authenticator, make sure you have 1 acl
242 of type proxy_auth. By default, the NTLM authenticator_program
243 is not used.
cccac0a2 244
41bd17a4 245 auth_param ntlm program @DEFAULT_PREFIX@/bin/ntlm_auth
cccac0a2 246
41bd17a4 247 "children" numberofchildren
248 The number of authenticator processes to spawn (no default).
249 If you start too few Squid will have to wait for them to
250 process a backlog of credential verifications, slowing it
251 down. When credential verifications are done via a (slow)
252 network you are likely to need lots of authenticator
253 processes.
cccac0a2 254
41bd17a4 255 auth_param ntlm children 5
cccac0a2 256
41bd17a4 257 "keep_alive" on|off
258 If you experience problems with PUT/POST requests when using the
259 Negotiate authentication scheme then you can try setting this to
260 off. This will cause Squid to forcibly close the connection on
261 the initial requests where the browser asks which schemes are
262 supported by the proxy.
cccac0a2 263
41bd17a4 264 auth_param ntlm keep_alive on
cccac0a2 265
41bd17a4 266 === Options for configuring the NEGOTIATE auth-scheme follow ===
cccac0a2 267
41bd17a4 268 "program" cmdline
269 Specify the command for the external Negotiate authenticator.
270 This protocol is used in Microsoft Active-Directory enabled setups with
271 the Microsoft Internet Explorer or Mozilla Firefox browsers.
272 Its main purpose is to exchange credentials with the Squid proxy
273 using the Kerberos mechanisms.
274 If you use a Negotiate authenticator, make sure you have at least one acl
275 of type proxy_auth active. By default, the negotiate authenticator_program
276 is not used.
277 The only supported program for this role is the ntlm_auth
278 program distributed as part of Samba, version 4 or later.
cccac0a2 279
41bd17a4 280 auth_param negotiate program @DEFAULT_PREFIX@/bin/ntlm_auth --helper-protocol=gss-spnego
cccac0a2 281
41bd17a4 282 "children" numberofchildren
283 The number of authenticator processes to spawn (no default).
284 If you start too few Squid will have to wait for them to
285 process a backlog of credential verifications, slowing it
286 down. When crendential verifications are done via a (slow)
287 network you are likely to need lots of authenticator
288 processes.
289 auth_param negotiate children 5
d3803853 290
41bd17a4 291 "keep_alive" on|off
292 If you experience problems with PUT/POST requests when using the
293 Negotiate authentication scheme then you can try setting this to
294 off. This will cause Squid to forcibly close the connection on
295 the initial requests where the browser asks which schemes are
296 supported by the proxy.
527ee50d 297
41bd17a4 298 auth_param negotiate keep_alive on
cccac0a2 299
41bd17a4 300NOCOMMENT_START
301#Recommended minimum configuration per scheme:
302#auth_param negotiate program <uncomment and complete this line to activate>
303#auth_param negotiate children 5
304#auth_param negotiate keep_alive on
305#auth_param ntlm program <uncomment and complete this line to activate>
306#auth_param ntlm children 5
307#auth_param ntlm keep_alive on
308#auth_param digest program <uncomment and complete this line>
309#auth_param digest children 5
310#auth_param digest realm Squid proxy-caching web server
311#auth_param digest nonce_garbage_interval 5 minutes
312#auth_param digest nonce_max_duration 30 minutes
313#auth_param digest nonce_max_count 50
314#auth_param basic program <uncomment and complete this line>
315#auth_param basic children 5
316#auth_param basic realm Squid proxy-caching web server
317#auth_param basic credentialsttl 2 hours
318NOCOMMENT_END
319DOC_END
cccac0a2 320
41bd17a4 321NAME: authenticate_cache_garbage_interval
322TYPE: time_t
323DEFAULT: 1 hour
324LOC: Config.authenticateGCInterval
325DOC_START
326 The time period between garbage collection across the username cache.
327 This is a tradeoff between memory utilization (long intervals - say
328 2 days) and CPU (short intervals - say 1 minute). Only change if you
329 have good reason to.
330DOC_END
cccac0a2 331
41bd17a4 332NAME: authenticate_ttl
333TYPE: time_t
334DEFAULT: 1 hour
335LOC: Config.authenticateTTL
336DOC_START
337 The time a user & their credentials stay in the logged in
338 user cache since their last request. When the garbage
339 interval passes, all user credentials that have passed their
340 TTL are removed from memory.
341DOC_END
cccac0a2 342
41bd17a4 343NAME: authenticate_ip_ttl
344TYPE: time_t
345LOC: Config.authenticateIpTTL
346DEFAULT: 0 seconds
347DOC_START
348 If you use proxy authentication and the 'max_user_ip' ACL,
349 this directive controls how long Squid remembers the IP
350 addresses associated with each user. Use a small value
351 (e.g., 60 seconds) if your users might change addresses
352 quickly, as is the case with dialups. You might be safe
353 using a larger value (e.g., 2 hours) in a corporate LAN
354 environment with relatively static address assignments.
355DOC_END
cccac0a2 356
3d1e3e43 357COMMENT_START
358 ACCESS CONTROLS
359 -----------------------------------------------------------------------------
360COMMENT_END
361
41bd17a4 362NAME: external_acl_type
363TYPE: externalAclHelper
364LOC: Config.externalAclHelperList
cccac0a2 365DEFAULT: none
cccac0a2 366DOC_START
41bd17a4 367 This option defines external acl classes using a helper program
368 to look up the status
cccac0a2 369
41bd17a4 370 external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..]
cccac0a2 371
41bd17a4 372 Options:
cccac0a2 373
41bd17a4 374 ttl=n TTL in seconds for cached results (defaults to 3600
375 for 1 hour)
376 negative_ttl=n
377 TTL for cached negative lookups (default same
378 as ttl)
379 children=n Number of acl helper processes spawn to service
380 external acl lookups of this type. (default 5)
381 concurrency=n concurrency level per process. Only used with helpers
382 capable of processing more than one query at a time.
383 cache=n result cache size, 0 is unbounded (default)
384 grace=n Percentage remaining of TTL where a refresh of a
385 cached entry should be initiated without needing to
386 wait for a new reply. (default 0 for no grace period)
387 protocol=2.5 Compatibility mode for Squid-2.5 external acl helpers
cc192b50 388 ipv4 / ipv6 IP-mode used to communicate to this helper.
389 For compatability with older configurations and helpers
390 'ipv4' is the default unless --with-localhost-ipv6 is used.
391 --with-localhost-ipv6 changes the default to 'ipv6'.
392 SPECIAL NOTE: these options override --with-localhost-ipv6
cccac0a2 393
41bd17a4 394 FORMAT specifications
cccac0a2 395
41bd17a4 396 %LOGIN Authenticated user login name
397 %EXT_USER Username from external acl
398 %IDENT Ident user name
399 %SRC Client IP
400 %SRCPORT Client source port
401 %URI Requested URI
402 %DST Requested host
403 %PROTO Requested protocol
404 %PORT Requested port
405 %PATH Requested URL path
406 %METHOD Request method
407 %MYADDR Squid interface address
408 %MYPORT Squid http_port number
409 %PATH Requested URL-path (including query-string if any)
410 %USER_CERT SSL User certificate in PEM format
411 %USER_CERTCHAIN SSL User certificate chain in PEM format
412 %USER_CERT_xx SSL User certificate subject attribute xx
413 %USER_CA_xx SSL User certificate issuer attribute xx
414 %{Header} HTTP request header
415 %{Hdr:member} HTTP request header list member
416 %{Hdr:;member}
417 HTTP request header list member using ; as
418 list separator. ; can be any non-alphanumeric
419 character.
cccac0a2 420
41bd17a4 421 In addition to the above, any string specified in the referencing
422 acl will also be included in the helper request line, after the
423 specified formats (see the "acl external" directive)
cccac0a2 424
41bd17a4 425 The helper receives lines per the above format specification,
426 and returns lines starting with OK or ERR indicating the validity
427 of the request and optionally followed by additional keywords with
428 more details.
cccac0a2 429
41bd17a4 430 General result syntax:
cccac0a2 431
41bd17a4 432 OK/ERR keyword=value ...
cccac0a2 433
41bd17a4 434 Defined keywords:
cccac0a2 435
41bd17a4 436 user= The users name (login)
437 password= The users password (for login= cache_peer option)
438 message= Message describing the reason. Available as %o
439 in error pages
440 tag= Apply a tag to a request (for both ERR and OK results)
441 Only sets a tag, does not alter existing tags.
442 log= String to be logged in access.log. Available as
443 %ea in logformat specifications
934b03fc 444
41bd17a4 445 If protocol=3.0 (the default) then URL escaping is used to protect
446 each value in both requests and responses.
6a566b9c 447
41bd17a4 448 If using protocol=2.5 then all values need to be enclosed in quotes
449 if they may contain whitespace, or the whitespace escaped using \.
450 And quotes or \ characters within the keyword value must be \ escaped.
1e5562e3 451
41bd17a4 452 When using the concurrency= option the protocol is changed by
453 introducing a query channel tag infront of the request/response.
454 The query channel tag is a number between 0 and concurrency-1.
cccac0a2 455DOC_END
456
41bd17a4 457NAME: acl
458TYPE: acl
459LOC: Config.aclList
1f5bd0a4 460DEFAULT: all src all
cccac0a2 461DOC_START
41bd17a4 462 Defining an Access List
cccac0a2 463
375eeb3b
AJ
464 Every access list definition must begin with an aclname and acltype,
465 followed by either type-specific arguments or a quoted filename that
466 they are read from.
cccac0a2 467
375eeb3b
AJ
468 acl aclname acltype argument ...
469 acl aclname acltype "file" ...
cccac0a2 470
375eeb3b 471 When using "file", the file should contain one item per line.
cccac0a2 472
41bd17a4 473 By default, regular expressions are CASE-SENSITIVE. To make
474 them case-insensitive, use the -i option.
cccac0a2 475
e988aa40
AJ
476
477 ***** ACL TYPES AVAILABLE *****
478
375eeb3b
AJ
479 acl aclname src ip-address/netmask ... # clients IP address
480 acl aclname src addr1-addr2/netmask ... # range of addresses
481 acl aclname dst ip-address/netmask ... # URL host's IP address
482 acl aclname myip ip-address/netmask ... # local socket IP address
cccac0a2 483
41bd17a4 484 acl aclname arp mac-address ... (xx:xx:xx:xx:xx:xx notation)
485 # The arp ACL requires the special configure option --enable-arp-acl.
486 # Furthermore, the ARP ACL code is not portable to all operating systems.
487 # It works on Linux, Solaris, Windows, FreeBSD, and some other *BSD variants.
488 #
489 # NOTE: Squid can only determine the MAC address for clients that are on
490 # the same subnet. If the client is on a different subnet, then Squid cannot
491 # find out its MAC address.
934b03fc 492
375eeb3b
AJ
493 acl aclname srcdomain .foo.com ... # reverse lookup, from client IP
494 acl aclname dstdomain .foo.com ... # Destination server from URL
495 acl aclname srcdom_regex [-i] \.foo\.com ... # regex matching client name
496 acl aclname dstdom_regex [-i] \.foo\.com ... # regex matching server
41bd17a4 497 # For dstdomain and dstdom_regex a reverse lookup is tried if a IP
498 # based URL is used and no match is found. The name "none" is used
499 # if the reverse lookup fails.
9bc73deb 500
375eeb3b
AJ
501 acl aclname src_as number ...
502 acl aclname dst_as number ...
e988aa40
AJ
503 # Except for access control, AS numbers can be used for
504 # routing of requests to specific caches. Here's an
505 # example for routing all requests for AS#1241 and only
506 # those to mycache.mydomain.net:
507 # acl asexample dst_as 1241
508 # cache_peer_access mycache.mydomain.net allow asexample
509 # cache_peer_access mycache_mydomain.net deny all
7f7db318 510
375eeb3b
AJ
511 acl aclname time [day-abbrevs] [h1:m1-h2:m2]
512 # day-abbrevs:
513 # S - Sunday
514 # M - Monday
515 # T - Tuesday
516 # W - Wednesday
517 # H - Thursday
518 # F - Friday
519 # A - Saturday
520 # h1:m1 must be less than h2:m2
521
522 acl aclname url_regex [-i] ^http:// ... # regex matching on whole URL
41bd17a4 523 acl aclname urlpath_regex [-i] \.gif$ ... # regex matching on URL path
e988aa40 524
375eeb3b
AJ
525 acl aclname port 80 70 21 ...
526 acl aclname port 0-1024 ... # ranges allowed
527 acl aclname myport 3128 ... # (local socket TCP port)
197f6b3c 528 acl aclname myportname 3128 ... # http(s)_port name
e988aa40 529
375eeb3b 530 acl aclname proto HTTP FTP ...
e988aa40 531
375eeb3b 532 acl aclname method GET POST ...
e988aa40
AJ
533
534 acl aclname http_status 200 301 500- 400-403 ... # status code in reply
535
375eeb3b 536 acl aclname browser [-i] regexp ...
41bd17a4 537 # pattern match on User-Agent header (see also req_header below)
e988aa40 538
375eeb3b 539 acl aclname referer_regex [-i] regexp ...
41bd17a4 540 # pattern match on Referer header
541 # Referer is highly unreliable, so use with care
e988aa40 542
375eeb3b 543 acl aclname ident username ...
41bd17a4 544 acl aclname ident_regex [-i] pattern ...
545 # string match on ident output.
546 # use REQUIRED to accept any non-null ident.
cf5cc17e 547
41bd17a4 548 acl aclname proxy_auth [-i] username ...
549 acl aclname proxy_auth_regex [-i] pattern ...
550 # list of valid usernames
551 # use REQUIRED to accept any valid username.
552 #
553 # NOTE: when a Proxy-Authentication header is sent but it is not
554 # needed during ACL checking the username is NOT logged
555 # in access.log.
556 #
557 # NOTE: proxy_auth requires a EXTERNAL authentication program
558 # to check username/password combinations (see
559 # auth_param directive).
560 #
e988aa40
AJ
561 # NOTE: proxy_auth can't be used in a transparent/intercepting proxy
562 # as the browser needs to be configured for using a proxy in order
41bd17a4 563 # to respond to proxy authentication.
8e8d4f30 564
41bd17a4 565 acl aclname snmp_community string ...
566 # A community string to limit access to your SNMP Agent
567 # Example:
568 #
569 # acl snmppublic snmp_community public
934b03fc 570
41bd17a4 571 acl aclname maxconn number
572 # This will be matched when the client's IP address has
573 # more than <number> HTTP connections established.
1e5562e3 574
41bd17a4 575 acl aclname max_user_ip [-s] number
576 # This will be matched when the user attempts to log in from more
577 # than <number> different ip addresses. The authenticate_ip_ttl
578 # parameter controls the timeout on the ip entries.
579 # If -s is specified the limit is strict, denying browsing
580 # from any further IP addresses until the ttl has expired. Without
581 # -s Squid will just annoy the user by "randomly" denying requests.
582 # (the counter is reset each time the limit is reached and a
583 # request is denied)
584 # NOTE: in acceleration mode or where there is mesh of child proxies,
585 # clients may appear to come from multiple addresses if they are
586 # going through proxy farms, so a limit of 1 may cause user problems.
cccac0a2 587
375eeb3b 588 acl aclname req_mime_type [-i] mime-type ...
41bd17a4 589 # regex match against the mime type of the request generated
590 # by the client. Can be used to detect file upload or some
591 # types HTTP tunneling requests.
592 # NOTE: This does NOT match the reply. You cannot use this
593 # to match the returned file type.
cccac0a2 594
41bd17a4 595 acl aclname req_header header-name [-i] any\.regex\.here
596 # regex match against any of the known request headers. May be
597 # thought of as a superset of "browser", "referer" and "mime-type"
598 # ACLs.
cccac0a2 599
375eeb3b 600 acl aclname rep_mime_type [-i] mime-type ...
41bd17a4 601 # regex match against the mime type of the reply received by
602 # squid. Can be used to detect file download or some
603 # types HTTP tunneling requests.
604 # NOTE: This has no effect in http_access rules. It only has
605 # effect in rules that affect the reply data stream such as
606 # http_reply_access.
cccac0a2 607
41bd17a4 608 acl aclname rep_header header-name [-i] any\.regex\.here
609 # regex match against any of the known reply headers. May be
610 # thought of as a superset of "browser", "referer" and "mime-type"
611 # ACLs.
cccac0a2 612
375eeb3b 613 acl aclname external class_name [arguments...]
41bd17a4 614 # external ACL lookup via a helper class defined by the
615 # external_acl_type directive.
cccac0a2 616
41bd17a4 617 acl aclname user_cert attribute values...
618 # match against attributes in a user SSL certificate
619 # attribute is one of DN/C/O/CN/L/ST
cccac0a2 620
41bd17a4 621 acl aclname ca_cert attribute values...
622 # match against attributes a users issuing CA SSL certificate
623 # attribute is one of DN/C/O/CN/L/ST
cccac0a2 624
41bd17a4 625 acl aclname ext_user username ...
626 acl aclname ext_user_regex [-i] pattern ...
627 # string match on username returned by external acl helper
628 # use REQUIRED to accept any non-null user name.
cccac0a2 629
41bd17a4 630Examples:
631acl macaddress arp 09:00:2b:23:45:67
632acl myexample dst_as 1241
633acl password proxy_auth REQUIRED
634acl fileupload req_mime_type -i ^multipart/form-data$
635acl javascript rep_mime_type -i ^application/x-javascript$
cccac0a2 636
41bd17a4 637NOCOMMENT_START
638#Recommended minimum configuration:
41bd17a4 639acl manager proto cache_object
ee776778 640acl localhost src 127.0.0.1/32
41bd17a4 641acl to_localhost dst 127.0.0.0/8
ee776778 642#
643# Example rule allowing access from your local networks.
644# Adapt to list your (internal) IP networks from where browsing
645# should be allowed
646acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
647acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
648acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
649#
41bd17a4 650acl SSL_ports port 443
651acl Safe_ports port 80 # http
652acl Safe_ports port 21 # ftp
653acl Safe_ports port 443 # https
654acl Safe_ports port 70 # gopher
655acl Safe_ports port 210 # wais
656acl Safe_ports port 1025-65535 # unregistered ports
657acl Safe_ports port 280 # http-mgmt
658acl Safe_ports port 488 # gss-http
659acl Safe_ports port 591 # filemaker
660acl Safe_ports port 777 # multiling http
661acl CONNECT method CONNECT
662NOCOMMENT_END
663DOC_END
cccac0a2 664
3d674977
AJ
665NAME: follow_x_forwarded_for
666TYPE: acl_access
667IFDEF: FOLLOW_X_FORWARDED_FOR
668LOC: Config.accessList.followXFF
669DEFAULT: none
670DEFAULT_IF_NONE: deny all
671DOC_START
672 Allowing or Denying the X-Forwarded-For header to be followed to
673 find the original source of a request.
674
675 Requests may pass through a chain of several other proxies
676 before reaching us. The X-Forwarded-For header will contain a
677 comma-separated list of the IP addresses in the chain, with the
678 rightmost address being the most recent.
679
680 If a request reaches us from a source that is allowed by this
681 configuration item, then we consult the X-Forwarded-For header
682 to see where that host received the request from. If the
683 X-Forwarded-For header contains multiple addresses, and if
684 acl_uses_indirect_client is on, then we continue backtracking
685 until we reach an address for which we are not allowed to
686 follow the X-Forwarded-For header, or until we reach the first
687 address in the list. (If acl_uses_indirect_client is off, then
688 it's impossible to backtrack through more than one level of
689 X-Forwarded-For addresses.)
690
691 The end result of this process is an IP address that we will
692 refer to as the indirect client address. This address may
693 be treated as the client address for access control, delay
694 pools and logging, depending on the acl_uses_indirect_client,
695 delay_pool_uses_indirect_client and log_uses_indirect_client
696 options.
697
698 SECURITY CONSIDERATIONS:
699
700 Any host for which we follow the X-Forwarded-For header
701 can place incorrect information in the header, and Squid
702 will use the incorrect information as if it were the
703 source address of the request. This may enable remote
704 hosts to bypass any access control restrictions that are
705 based on the client's source addresses.
706
707 For example:
708
709 acl localhost src 127.0.0.1
710 acl my_other_proxy srcdomain .proxy.example.com
711 follow_x_forwarded_for allow localhost
712 follow_x_forwarded_for allow my_other_proxy
713DOC_END
714
715NAME: acl_uses_indirect_client
716COMMENT: on|off
717TYPE: onoff
718IFDEF: FOLLOW_X_FORWARDED_FOR
719DEFAULT: on
720LOC: Config.onoff.acl_uses_indirect_client
721DOC_START
722 Controls whether the indirect client address
723 (see follow_x_forwarded_for) is used instead of the
724 direct client address in acl matching.
725DOC_END
726
727NAME: delay_pool_uses_indirect_client
728COMMENT: on|off
729TYPE: onoff
730IFDEF: FOLLOW_X_FORWARDED_FOR && DELAY_POOLS
731DEFAULT: on
732LOC: Config.onoff.delay_pool_uses_indirect_client
733DOC_START
734 Controls whether the indirect client address
735 (see follow_x_forwarded_for) is used instead of the
736 direct client address in delay pools.
737DOC_END
738
739NAME: log_uses_indirect_client
740COMMENT: on|off
741TYPE: onoff
742IFDEF: FOLLOW_X_FORWARDED_FOR
743DEFAULT: on
744LOC: Config.onoff.log_uses_indirect_client
745DOC_START
746 Controls whether the indirect client address
747 (see follow_x_forwarded_for) is used instead of the
748 direct client address in the access log.
749DOC_END
750
41bd17a4 751NAME: http_access
752TYPE: acl_access
753LOC: Config.accessList.http
754DEFAULT: none
755DEFAULT_IF_NONE: deny all
756DOC_START
757 Allowing or Denying access based on defined access lists
cccac0a2 758
41bd17a4 759 Access to the HTTP port:
760 http_access allow|deny [!]aclname ...
cccac0a2 761
41bd17a4 762 NOTE on default values:
cccac0a2 763
41bd17a4 764 If there are no "access" lines present, the default is to deny
765 the request.
cccac0a2 766
41bd17a4 767 If none of the "access" lines cause a match, the default is the
768 opposite of the last line in the list. If the last line was
769 deny, the default is allow. Conversely, if the last line
770 is allow, the default will be deny. For these reasons, it is a
771 good idea to have an "deny all" or "allow all" entry at the end
772 of your access lists to avoid potential confusion.
cccac0a2 773
41bd17a4 774NOCOMMENT_START
775#Recommended minimum configuration:
776#
777# Only allow cachemgr access from localhost
778http_access allow manager localhost
779http_access deny manager
780# Deny requests to unknown ports
781http_access deny !Safe_ports
782# Deny CONNECT to other than SSL ports
783http_access deny CONNECT !SSL_ports
784#
785# We strongly recommend the following be uncommented to protect innocent
786# web applications running on the proxy server who think the only
787# one who can access services on "localhost" is a local user
788#http_access deny to_localhost
789#
790# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
c8f4eac4 791
ee776778 792# Example rule allowing access from your local networks.
793# Adapt localnet in the ACL section to list your (internal) IP networks
794# from where browsing should be allowed
795http_access allow localnet
7d90757b 796
41bd17a4 797# And finally deny all other access to this proxy
798http_access deny all
799NOCOMMENT_END
800DOC_END
7d90757b 801
41bd17a4 802NAME: http_reply_access
803TYPE: acl_access
804LOC: Config.accessList.reply
805DEFAULT: none
806DOC_START
807 Allow replies to client requests. This is complementary to http_access.
cccac0a2 808
41bd17a4 809 http_reply_access allow|deny [!] aclname ...
cccac0a2 810
41bd17a4 811 NOTE: if there are no access lines present, the default is to allow
812 all replies
1a224843 813
41bd17a4 814 If none of the access lines cause a match the opposite of the
815 last line will apply. Thus it is good practice to end the rules
816 with an "allow all" or "deny all" entry.
cccac0a2 817DOC_END
818
41bd17a4 819NAME: icp_access
820TYPE: acl_access
821LOC: Config.accessList.icp
822DEFAULT: none
823DEFAULT_IF_NONE: deny all
5473c134 824DOC_START
41bd17a4 825 Allowing or Denying access to the ICP port based on defined
826 access lists
5473c134 827
41bd17a4 828 icp_access allow|deny [!]aclname ...
5473c134 829
41bd17a4 830 See http_access for details
831
832NOCOMMENT_START
ee776778 833#Allow ICP queries from local networks only
4e9c5ff8 834icp_access allow localnet
835icp_access deny all
41bd17a4 836NOCOMMENT_END
5473c134 837DOC_END
838
41bd17a4 839NAME: htcp_access
840IFDEF: USE_HTCP
841TYPE: acl_access
842LOC: Config.accessList.htcp
843DEFAULT: none
844DEFAULT_IF_NONE: deny all
5473c134 845DOC_START
41bd17a4 846 Allowing or Denying access to the HTCP port based on defined
847 access lists
5473c134 848
41bd17a4 849 htcp_access allow|deny [!]aclname ...
5473c134 850
41bd17a4 851 See http_access for details
5473c134 852
0b48417e 853 NOTE: The default if no htcp_access lines are present is to
854 deny all traffic. This default may cause problems with peers
855 using the htcp or htcp-oldsquid options.
856
ee776778 857NOCOMMENT_START
858#Allow HTCP queries from local networks only
4e9c5ff8 859htcp_access allow localnet
860htcp_access deny all
ee776778 861NOCOMMENT_END
41bd17a4 862DOC_END
5473c134 863
41bd17a4 864NAME: htcp_clr_access
865IFDEF: USE_HTCP
866TYPE: acl_access
867LOC: Config.accessList.htcp_clr
868DEFAULT: none
869DEFAULT_IF_NONE: deny all
870DOC_START
871 Allowing or Denying access to purge content using HTCP based
872 on defined access lists
5473c134 873
41bd17a4 874 htcp_clr_access allow|deny [!]aclname ...
5473c134 875
41bd17a4 876 See http_access for details
5473c134 877
41bd17a4 878#Allow HTCP CLR requests from trusted peers
879acl htcp_clr_peer src 172.16.1.2
880htcp_clr_access allow htcp_clr_peer
5473c134 881DOC_END
882
41bd17a4 883NAME: miss_access
884TYPE: acl_access
885LOC: Config.accessList.miss
886DEFAULT: none
5473c134 887DOC_START
41bd17a4 888 Use to force your neighbors to use you as a sibling instead of
889 a parent. For example:
5473c134 890
41bd17a4 891 acl localclients src 172.16.0.0/16
892 miss_access allow localclients
893 miss_access deny !localclients
5473c134 894
41bd17a4 895 This means only your local clients are allowed to fetch
896 MISSES and all other clients can only fetch HITS.
5473c134 897
41bd17a4 898 By default, allow all clients who passed the http_access rules
899 to fetch MISSES from us.
5473c134 900
41bd17a4 901NOCOMMENT_START
902#Default setting:
903# miss_access allow all
904NOCOMMENT_END
905DOC_END
906
907NAME: ident_lookup_access
908TYPE: acl_access
909IFDEF: USE_IDENT
910DEFAULT: none
911DEFAULT_IF_NONE: deny all
912LOC: Config.accessList.identLookup
5473c134 913DOC_START
41bd17a4 914 A list of ACL elements which, if matched, cause an ident
915 (RFC 931) lookup to be performed for this request. For
916 example, you might choose to always perform ident lookups
917 for your main multi-user Unix boxes, but not for your Macs
918 and PCs. By default, ident lookups are not performed for
919 any requests.
5473c134 920
41bd17a4 921 To enable ident lookups for specific client addresses, you
922 can follow this example:
5473c134 923
41bd17a4 924 acl ident_aware_hosts src 198.168.1.0/255.255.255.0
925 ident_lookup_access allow ident_aware_hosts
926 ident_lookup_access deny all
5473c134 927
41bd17a4 928 Only src type ACL checks are fully supported. A src_domain
929 ACL might work at times, but it will not always provide
930 the correct result.
931DOC_END
5473c134 932
5b0f5383 933NAME: reply_body_max_size
934COMMENT: size [acl acl...]
935TYPE: acl_b_size_t
936DEFAULT: none
937LOC: Config.ReplyBodySize
938DOC_START
939 This option specifies the maximum size of a reply body. It can be
940 used to prevent users from downloading very large files, such as
941 MP3's and movies. When the reply headers are received, the
942 reply_body_max_size lines are processed, and the first line where
943 all (if any) listed ACLs are true is used as the maximum body size
944 for this reply.
945
946 This size is checked twice. First when we get the reply headers,
947 we check the content-length value. If the content length value exists
948 and is larger than the allowed size, the request is denied and the
949 user receives an error message that says "the request or reply
950 is too large." If there is no content-length, and the reply
951 size exceeds this limit, the client's connection is just closed
952 and they will receive a partial reply.
953
954 WARNING: downstream caches probably can not detect a partial reply
955 if there is no content-length header, so they will cache
956 partial responses and give them out as hits. You should NOT
957 use this option if you have downstream caches.
958
959 WARNING: A maximum size smaller than the size of squid's error messages
960 will cause an infinite loop and crash squid. Ensure that the smallest
961 non-zero value you use is greater that the maximum header size plus
962 the size of your largest error page.
963
964 If you set this parameter none (the default), there will be
965 no limit imposed.
966DOC_END
967
968COMMENT_START
969 NETWORK OPTIONS
970 -----------------------------------------------------------------------------
971COMMENT_END
972
973NAME: http_port ascii_port
974TYPE: http_port_list
975DEFAULT: none
976LOC: Config.Sockaddr.http
977DOC_START
978 Usage: port [options]
979 hostname:port [options]
980 1.2.3.4:port [options]
981
982 The socket addresses where Squid will listen for HTTP client
983 requests. You may specify multiple socket addresses.
984 There are three forms: port alone, hostname with port, and
985 IP address with port. If you specify a hostname or IP
986 address, Squid binds the socket to that specific
987 address. This replaces the old 'tcp_incoming_address'
988 option. Most likely, you do not need to bind to a specific
989 address, so you can use the port number alone.
990
991 If you are running Squid in accelerator mode, you
992 probably want to listen on port 80 also, or instead.
993
994 The -a command line option may be used to specify additional
995 port(s) where Squid listens for proxy request. Such ports will
996 be plain proxy ports with no options.
997
998 You may specify multiple socket addresses on multiple lines.
999
1000 Options:
1001
e77bdb4e 1002 intercept Support for IP-Layer interception of
5b0f5383 1003 outgoing requests without browser settings.
13b5cd0c 1004 NP: disables authentication and IPv6 on the port.
5b0f5383 1005
1006 tproxy Support Linux TPROXY for spoofing outgoing
1007 connections using the client IP address.
13b5cd0c 1008 NP: disables authentication and IPv6 on the port.
5b0f5383 1009
1010 accel Accelerator mode. Also needs at least one of
1011 vhost / vport / defaultsite.
1012
1013 defaultsite=domainname
1014 What to use for the Host: header if it is not present
1015 in a request. Determines what site (not origin server)
1016 accelerators should consider the default.
1017 Implies accel.
1018
1019 vhost Accelerator mode using Host header for virtual
1020 domain support. Implies accel.
1021
1022 vport Accelerator with IP based virtual host support.
1023 Implies accel.
1024
1025 vport=NN As above, but uses specified port number rather
1026 than the http_port number. Implies accel.
1027
1028 protocol= Protocol to reconstruct accelerated requests with.
1029 Defaults to http.
1030
1031 disable-pmtu-discovery=
1032 Control Path-MTU discovery usage:
1033 off lets OS decide on what to do (default).
1034 transparent disable PMTU discovery when transparent
1035 support is enabled.
1036 always disable always PMTU discovery.
1037
1038 In many setups of transparently intercepting proxies
1039 Path-MTU discovery can not work on traffic towards the
1040 clients. This is the case when the intercepting device
1041 does not fully track connections and fails to forward
1042 ICMP must fragment messages to the cache server. If you
1043 have such setup and experience that certain clients
1044 sporadically hang or never complete requests set
1045 disable-pmtu-discovery option to 'transparent'.
1046
4c9da963 1047 sslBump Intercept each CONNECT request matching ssl_bump ACL,
1048 establish secure connection with the client and with
1049 the server, decrypt HTTP messages as they pass through
1050 Squid, and treat them as unencrypted HTTP messages,
1051 becoming the man-in-the-middle.
1052
1053 When this option is enabled, additional options become
1054 available to specify SSL-related properties of the
1055 client-side connection: cert, key, version, cipher,
1056 options, clientca, cafile, capath, crlfile, dhparams,
1057 sslflags, and sslcontext. See the https_port directive
1058 for more information on these options.
1059
1060 The ssl_bump option is required to fully enable
1061 the SslBump feature.
1062
81b6e9a7 1063 name= Specifies a internal name for the port. Defaults to
1064 the port specification (port or addr:port)
1065
b2130d58 1066 keepalive[=idle,interval,timeout]
1067 Enable TCP keepalive probes of idle connections
1068 idle is the initial time before TCP starts probing
1069 the connection, interval how often to probe, and
1070 timeout the time before giving up.
1071
5b0f5383 1072 If you run Squid on a dual-homed machine with an internal
1073 and an external interface we recommend you to specify the
1074 internal address:port in http_port. This way Squid will only be
1075 visible on the internal address.
1076
1077NOCOMMENT_START
1078# Squid normally listens to port 3128
1079http_port @DEFAULT_HTTP_PORT@
1080NOCOMMENT_END
1081DOC_END
1082
1083NAME: https_port
1084IFDEF: USE_SSL
1085TYPE: https_port_list
1086DEFAULT: none
1087LOC: Config.Sockaddr.https
1088DOC_START
1089 Usage: [ip:]port cert=certificate.pem [key=key.pem] [options...]
1090
1091 The socket address where Squid will listen for HTTPS client
1092 requests.
1093
1094 This is really only useful for situations where you are running
1095 squid in accelerator mode and you want to do the SSL work at the
1096 accelerator level.
1097
1098 You may specify multiple socket addresses on multiple lines,
1099 each with their own SSL certificate and/or options.
1100
1101 Options:
1102
1103 accel Accelerator mode. Also needs at least one of
1104 defaultsite or vhost.
1105
1106 defaultsite= The name of the https site presented on
1107 this port. Implies accel.
1108
1109 vhost Accelerator mode using Host header for virtual
1110 domain support. Requires a wildcard certificate
1111 or other certificate valid for more than one domain.
1112 Implies accel.
1113
1114 protocol= Protocol to reconstruct accelerated requests with.
1115 Defaults to https.
1116
1117 cert= Path to SSL certificate (PEM format).
1118
1119 key= Path to SSL private key file (PEM format)
1120 if not specified, the certificate file is
1121 assumed to be a combined certificate and
1122 key file.
1123
1124 version= The version of SSL/TLS supported
1125 1 automatic (default)
1126 2 SSLv2 only
1127 3 SSLv3 only
1128 4 TLSv1 only
1129
1130 cipher= Colon separated list of supported ciphers.
1131
1132 options= Various SSL engine options. The most important
1133 being:
1134 NO_SSLv2 Disallow the use of SSLv2
1135 NO_SSLv3 Disallow the use of SSLv3
1136 NO_TLSv1 Disallow the use of TLSv1
1137 SINGLE_DH_USE Always create a new key when using
1138 temporary/ephemeral DH key exchanges
1139 See src/ssl_support.c or OpenSSL SSL_CTX_set_options
1140 documentation for a complete list of options.
1141
1142 clientca= File containing the list of CAs to use when
1143 requesting a client certificate.
1144
1145 cafile= File containing additional CA certificates to
1146 use when verifying client certificates. If unset
1147 clientca will be used.
1148
1149 capath= Directory containing additional CA certificates
1150 and CRL lists to use when verifying client certificates.
1151
1152 crlfile= File of additional CRL lists to use when verifying
1153 the client certificate, in addition to CRLs stored in
1154 the capath. Implies VERIFY_CRL flag below.
1155
1156 dhparams= File containing DH parameters for temporary/ephemeral
1157 DH key exchanges.
1158
1159 sslflags= Various flags modifying the use of SSL:
1160 DELAYED_AUTH
1161 Don't request client certificates
1162 immediately, but wait until acl processing
1163 requires a certificate (not yet implemented).
1164 NO_DEFAULT_CA
1165 Don't use the default CA lists built in
1166 to OpenSSL.
1167 NO_SESSION_REUSE
1168 Don't allow for session reuse. Each connection
1169 will result in a new SSL session.
1170 VERIFY_CRL
1171 Verify CRL lists when accepting client
1172 certificates.
1173 VERIFY_CRL_ALL
1174 Verify CRL lists for all certificates in the
1175 client certificate chain.
1176
1177 sslcontext= SSL session ID context identifier.
1178
1179 vport Accelerator with IP based virtual host support.
1180
1181 vport=NN As above, but uses specified port number rather
1182 than the https_port number. Implies accel.
1183
81b6e9a7 1184 name= Specifies a internal name for the port. Defaults to
1185 the port specification (port or addr:port)
1186
5b0f5383 1187DOC_END
1188
41bd17a4 1189NAME: tcp_outgoing_tos tcp_outgoing_ds tcp_outgoing_dscp
1190TYPE: acl_tos
5473c134 1191DEFAULT: none
41bd17a4 1192LOC: Config.accessList.outgoing_tos
5473c134 1193DOC_START
41bd17a4 1194 Allows you to select a TOS/Diffserv value to mark outgoing
1195 connections with, based on the username or source address
1196 making the request.
5473c134 1197
41bd17a4 1198 tcp_outgoing_tos ds-field [!]aclname ...
cccac0a2 1199
41bd17a4 1200 Example where normal_service_net uses the TOS value 0x00
1201 and normal_service_net uses 0x20
cccac0a2 1202
41bd17a4 1203 acl normal_service_net src 10.0.0.0/255.255.255.0
1204 acl good_service_net src 10.0.1.0/255.255.255.0
2c73de90 1205 tcp_outgoing_tos 0x00 normal_service_net
41bd17a4 1206 tcp_outgoing_tos 0x20 good_service_net
fa38076e 1207
41bd17a4 1208 TOS/DSCP values really only have local significance - so you should
1209 know what you're specifying. For more information, see RFC2474 and
1210 RFC3260.
cccac0a2 1211
41bd17a4 1212 The TOS/DSCP byte must be exactly that - a octet value 0 - 255, or
1213 "default" to use whatever default your host has. Note that in
1214 practice often only values 0 - 63 is usable as the two highest bits
1215 have been redefined for use by ECN (RFC3168).
cccac0a2 1216
41bd17a4 1217 Processing proceeds in the order specified, and stops at first fully
1218 matching line.
cccac0a2 1219
41bd17a4 1220 Note: The use of this directive using client dependent ACLs is
1221 incompatible with the use of server side persistent connections. To
1222 ensure correct results it is best to set server_persisten_connections
1223 to off when using this directive in such configurations.
cccac0a2 1224DOC_END
1225
41bd17a4 1226NAME: clientside_tos
1227TYPE: acl_tos
cccac0a2 1228DEFAULT: none
41bd17a4 1229LOC: Config.accessList.clientside_tos
cccac0a2 1230DOC_START
41bd17a4 1231 Allows you to select a TOS/Diffserv value to mark client-side
1232 connections with, based on the username or source address
1233 making the request.
1234DOC_END
cccac0a2 1235
7172612f
AJ
1236NAME: zph_tos_local
1237TYPE: int
1238IFDEF: USE_ZPH_QOS
1239DEFAULT: 0
1240LOC: Config.zph_tos_local
1241DOC_START
1242 Allows you to select a TOS/Diffserv value to mark local hits. Read above
1243 (tcp_outgoing_tos) for details/requirements about TOS.
1244 Default: 0 (disabled).
1245DOC_END
1246
1247NAME: zph_tos_peer
1248TYPE: int
1249IFDEF: USE_ZPH_QOS
1250DEFAULT: 0
1251LOC: Config.zph_tos_peer
1252DOC_START
1253 Allows you to select a TOS/Diffserv value to mark peer hits. Read above
1254 (tcp_outgoing_tos) for details/requirements about TOS.
1255 Default: 0 (disabled).
1256DOC_END
1257
1258NAME: zph_tos_parent
1259COMMENT: on|off
1260TYPE: onoff
1261IFDEF: USE_ZPH_QOS
1262DEFAULT: on
1263LOC: Config.onoff.zph_tos_parent
1264DOC_START
1265 Set this to off if you want only sibling hits to be marked.
1266 If set to on (default), parent hits are being marked too.
1267DOC_END
1268
1269NAME: zph_preserve_miss_tos
1270COMMENT: on|off
1271TYPE: onoff
1272IFDEF: USE_ZPH_QOS
1273DEFAULT: on
1274LOC: Config.onoff.zph_preserve_miss_tos
1275DOC_START
1276 If set to on (default), any HTTP response towards clients will
1277 have the TOS value of the response comming from the remote
1278 server masked with the value of zph_preserve_miss_tos_mask.
1279 For this to work correctly, you will need to patch your linux
1280 kernel with the TOS preserving ZPH patch.
1281 The kernel patch can be downloaded from http://zph.bratcheda.org
1282DOC_END
1283
1284NAME: zph_preserve_miss_tos_mask
1285TYPE: int
1286IFDEF: USE_ZPH_QOS
1287DEFAULT: 255
1288LOC: Config.zph_preserve_miss_tos_mask
1289DOC_START
1290 Allows you to mask certain bits in the TOS received from the
1291 remote server, before copying the value to the TOS send towards
1292 clients.
1293 Default: 255 (TOS from server is not changed).
1294DOC_END
1295
41bd17a4 1296NAME: tcp_outgoing_address
1297TYPE: acl_address
1298DEFAULT: none
1299LOC: Config.accessList.outgoing_address
1300DOC_START
1301 Allows you to map requests to different outgoing IP addresses
1302 based on the username or source address of the user making
1303 the request.
7f7db318 1304
41bd17a4 1305 tcp_outgoing_address ipaddr [[!]aclname] ...
c33aa074 1306
41bd17a4 1307 Example where requests from 10.0.0.0/24 will be forwarded
1308 with source address 10.1.0.1, 10.0.2.0/24 forwarded with
1309 source address 10.1.0.2 and the rest will be forwarded with
1310 source address 10.1.0.3.
9197cd13 1311
17148b2f 1312 acl normal_service_net src 10.0.0.0/24
1313 acl good_service_net src 10.0.2.0/24
1314 tcp_outgoing_address 10.1.0.1 normal_service_net
1315 tcp_outgoing_address 10.1.0.2 good_service_net
1316 tcp_outgoing_address 10.1.0.3
9197cd13 1317
41bd17a4 1318 Processing proceeds in the order specified, and stops at first fully
1319 matching line.
cccac0a2 1320
41bd17a4 1321 Note: The use of this directive using client dependent ACLs is
1322 incompatible with the use of server side persistent connections. To
1323 ensure correct results it is best to set server_persistent_connections
1324 to off when using this directive in such configurations.
cc192b50 1325
1326
1327 IPv6 Magic:
1328
1329 Squid is built with a capability of bridging the IPv4 and IPv6 internets.
1330 tcp_outgoing_address as exampled above breaks this bridging by forcing
1331 all outbound traffic through a certain IPv4 which may be on the wrong
1332 side of the IPv4/IPv6 boundary.
1333
1334 To operate with tcp_outgoing_address and keep the bridging benefits
1335 an additional ACL needs to be used which ensures the IPv6-bound traffic
1336 is never forced or permitted out the IPv4 interface.
1337
1338 acl to_ipv6 dst ipv6
1339 tcp_outgoing_address 2002::c001 good_service_net to_ipv6
17148b2f 1340 tcp_outgoing_address 10.1.0.2 good_service_net !to_ipv6
cc192b50 1341
1342 tcp_outgoing_address 2002::beef normal_service_net to_ipv6
17148b2f 1343 tcp_outgoing_address 10.1.0.1 normal_service_net !to_ipv6
cc192b50 1344
1345 tcp_outgoing_address 2002::1 to_ipv6
17148b2f 1346 tcp_outgoing_address 10.1.0.3 !to_ipv6
cccac0a2 1347DOC_END
1348
41bd17a4 1349COMMENT_START
1350 SSL OPTIONS
1351 -----------------------------------------------------------------------------
1352COMMENT_END
1353
1354NAME: ssl_unclean_shutdown
1355IFDEF: USE_SSL
cccac0a2 1356TYPE: onoff
1357DEFAULT: off
41bd17a4 1358LOC: Config.SSL.unclean_shutdown
cccac0a2 1359DOC_START
41bd17a4 1360 Some browsers (especially MSIE) bugs out on SSL shutdown
1361 messages.
cccac0a2 1362DOC_END
1363
41bd17a4 1364NAME: ssl_engine
1365IFDEF: USE_SSL
cccac0a2 1366TYPE: string
41bd17a4 1367LOC: Config.SSL.ssl_engine
1368DEFAULT: none
cccac0a2 1369DOC_START
41bd17a4 1370 The OpenSSL engine to use. You will need to set this if you
1371 would like to use hardware SSL acceleration for example.
cccac0a2 1372DOC_END
1373
41bd17a4 1374NAME: sslproxy_client_certificate
1375IFDEF: USE_SSL
cccac0a2 1376DEFAULT: none
41bd17a4 1377LOC: Config.ssl_client.cert
1378TYPE: string
cccac0a2 1379DOC_START
41bd17a4 1380 Client SSL Certificate to use when proxying https:// URLs
cccac0a2 1381DOC_END
1382
41bd17a4 1383NAME: sslproxy_client_key
1384IFDEF: USE_SSL
cccac0a2 1385DEFAULT: none
41bd17a4 1386LOC: Config.ssl_client.key
1387TYPE: string
cccac0a2 1388DOC_START
41bd17a4 1389 Client SSL Key to use when proxying https:// URLs
cccac0a2 1390DOC_END
1391
41bd17a4 1392NAME: sslproxy_version
1393IFDEF: USE_SSL
1394DEFAULT: 1
1395LOC: Config.ssl_client.version
1396TYPE: int
cccac0a2 1397DOC_START
41bd17a4 1398 SSL version level to use when proxying https:// URLs
cccac0a2 1399DOC_END
1400
41bd17a4 1401NAME: sslproxy_options
1402IFDEF: USE_SSL
1403DEFAULT: none
1404LOC: Config.ssl_client.options
1405TYPE: string
cccac0a2 1406DOC_START
41bd17a4 1407 SSL engine options to use when proxying https:// URLs
cccac0a2 1408DOC_END
1409
41bd17a4 1410NAME: sslproxy_cipher
1411IFDEF: USE_SSL
1412DEFAULT: none
1413LOC: Config.ssl_client.cipher
1414TYPE: string
cccac0a2 1415DOC_START
41bd17a4 1416 SSL cipher list to use when proxying https:// URLs
cccac0a2 1417DOC_END
1418
41bd17a4 1419NAME: sslproxy_cafile
1420IFDEF: USE_SSL
1421DEFAULT: none
1422LOC: Config.ssl_client.cafile
1423TYPE: string
cccac0a2 1424DOC_START
41bd17a4 1425 file containing CA certificates to use when verifying server
1426 certificates while proxying https:// URLs
cccac0a2 1427DOC_END
0976f8db 1428
41bd17a4 1429NAME: sslproxy_capath
1430IFDEF: USE_SSL
5473c134 1431DEFAULT: none
41bd17a4 1432LOC: Config.ssl_client.capath
1433TYPE: string
5473c134 1434DOC_START
41bd17a4 1435 directory containing CA certificates to use when verifying
1436 server certificates while proxying https:// URLs
5473c134 1437DOC_END
1438
4c9da963 1439NAME: ssl_bump
1440IFDEF: USE_SSL
1441TYPE: acl_access
1442LOC: Config.accessList.ssl_bump
1443DEFAULT: none
1444DOC_START
1445 This ACL controls which CONNECT requests to an http_port
1446 marked with an sslBump flag are actually "bumped". Please
1447 see the sslBump flag of an http_port option for more details
1448 about decoding proxied SSL connections.
1449
1450 By default, no requests are bumped.
1451
1452 See also: http_port sslBump
1453
1454NOCOMMENT_START
1455# Example: Bump all requests except those originating from localhost and
1456# those going to webax.com or example.com sites.
1457#
1458# acl localhost src 127.0.0.1/32
1459# acl broken_sites dstdomain .webax.com
1460# acl broken_sites dstdomain .example.com
1461# ssl_bump deny localhost
1462# ssl_bump deny broken_sites
1463# ssl_bump allow all
1464NOCOMMENT_END
1465DOC_END
1466
41bd17a4 1467NAME: sslproxy_flags
1468IFDEF: USE_SSL
1469DEFAULT: none
1470LOC: Config.ssl_client.flags
1471TYPE: string
5473c134 1472DOC_START
41bd17a4 1473 Various flags modifying the use of SSL while proxying https:// URLs:
4c9da963 1474 DONT_VERIFY_PEER Accept certificates that fail verification.
1475 For refined control, see sslproxy_cert_error.
41bd17a4 1476 NO_DEFAULT_CA Don't use the default CA list built in
1477 to OpenSSL.
5473c134 1478DOC_END
1479
4c9da963 1480
1481NAME: sslproxy_cert_error
1482IFDEF: USE_SSL
1483DEFAULT: none
1484LOC: Config.ssl_client.cert_error
1485TYPE: acl_access
1486DOC_START
1487 Use this ACL to bypass server certificate validation errors.
1488
1489 For example, the following lines will bypass all validation errors
1490 when talking to servers located at 172.16.0.0/16. All other
1491 validation errors will result in ERR_SECURE_CONNECT_FAIL error.
1492
1493 acl BrokenServersAtTrustedIP dst 172.16.0.0/16
1494 sslproxy_cert_error allow BrokenServersAtTrustedIP
1495 sslproxy_cert_error deny all
1496
1497 This option must use fast ACL expressions only. Expressions that use
1498 external lookups or communication result in unpredictable behavior or
1499 crashes.
1500
1501 Without this option, all server certificate validation errors
1502 terminate the transaction. Bypassing validation errors is dangerous
1503 because an error usually implies that the server cannot be trusted and
1504 the connection may be insecure.
1505
1506 See also: sslproxy_flags and DONT_VERIFY_PEER.
1507
1508NOCOMMENT_START
1509#Default setting:
1510# sslproxy_cert_error deny all
1511NOCOMMENT_END
1512DOC_END
1513
1514
1515
41bd17a4 1516NAME: sslpassword_program
1517IFDEF: USE_SSL
1518DEFAULT: none
1519LOC: Config.Program.ssl_password
1520TYPE: string
5473c134 1521DOC_START
41bd17a4 1522 Specify a program used for entering SSL key passphrases
1523 when using encrypted SSL certificate keys. If not specified
1524 keys must either be unencrypted, or Squid started with the -N
1525 option to allow it to query interactively for the passphrase.
5473c134 1526DOC_END
1527
cccac0a2 1528COMMENT_START
41bd17a4 1529 OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
cccac0a2 1530 -----------------------------------------------------------------------------
1531COMMENT_END
1532
41bd17a4 1533NAME: cache_peer
1534TYPE: peer
1535DEFAULT: none
1536LOC: Config.peers
cccac0a2 1537DOC_START
41bd17a4 1538 To specify other caches in a hierarchy, use the format:
cccac0a2 1539
41bd17a4 1540 cache_peer hostname type http-port icp-port [options]
cccac0a2 1541
41bd17a4 1542 For example,
cccac0a2 1543
41bd17a4 1544 # proxy icp
1545 # hostname type port port options
1546 # -------------------- -------- ----- ----- -----------
1547 cache_peer parent.foo.net parent 3128 3130 proxy-only default
1548 cache_peer sib1.foo.net sibling 3128 3130 proxy-only
1549 cache_peer sib2.foo.net sibling 3128 3130 proxy-only
cccac0a2 1550
41bd17a4 1551 type: either 'parent', 'sibling', or 'multicast'.
d5277f40 1552
41bd17a4 1553 proxy-port: The port number where the cache listens for proxy
1554 requests.
8d6275c0 1555
41bd17a4 1556 icp-port: Used for querying neighbor caches about
1557 objects. To have a non-ICP neighbor
1558 specify '7' for the ICP port and make sure the
1559 neighbor machine has the UDP echo port
1560 enabled in its /etc/inetd.conf file.
1561 NOTE: Also requires icp_port option enabled to send/receive
1562 requests via this method.
a78278e2 1563
41bd17a4 1564 options: proxy-only
1565 weight=n
1566 basetime=n
1567 ttl=n
1568 no-query
1569 background-ping
1570 default
1571 round-robin
1572 weighted-round-robin
1573 carp
1574 multicast-responder
1575 closest-only
1576 no-digest
1577 no-netdb-exchange
1578 no-delay
1579 login=user:password | PASS | *:password
1580 connect-timeout=nn
1581 digest-url=url
1582 allow-miss
1583 max-conn=n
1584 htcp
1585 htcp-oldsquid
1586 originserver
1587 name=xxx
1588 forceddomain=name
1589 ssl
1590 sslcert=/path/to/ssl/certificate
1591 sslkey=/path/to/ssl/key
1592 sslversion=1|2|3|4
1593 sslcipher=...
1594 ssloptions=...
1595 front-end-https[=on|auto]
cccac0a2 1596
41bd17a4 1597 use 'proxy-only' to specify objects fetched
1598 from this cache should not be saved locally.
cccac0a2 1599
41bd17a4 1600 use 'weight=n' to affect the selection of a peer
1601 during any weighted peer-selection mechanisms.
1602 The weight must be an integer; default is 1,
1603 larger weights are favored more.
1604 This option does not affect parent selection if a peering
1605 protocol is not in use.
cccac0a2 1606
41bd17a4 1607 use 'basetime=n' to specify a base amount to
1608 be subtracted from round trip times of parents.
1609 It is subtracted before division by weight in calculating
1610 which parent to fectch from. If the rtt is less than the
1611 base time the rtt is set to a minimal value.
cccac0a2 1612
41bd17a4 1613 use 'ttl=n' to specify a IP multicast TTL to use
1614 when sending an ICP queries to this address.
1615 Only useful when sending to a multicast group.
1616 Because we don't accept ICP replies from random
1617 hosts, you must configure other group members as
1618 peers with the 'multicast-responder' option below.
5473c134 1619
41bd17a4 1620 use 'no-query' to NOT send ICP queries to this
1621 neighbor.
5473c134 1622
41bd17a4 1623 use 'background-ping' to only send ICP queries to this
1624 neighbor infrequently. This is used to keep the neighbor
1625 round trip time updated and is usually used in
1626 conjunction with weighted-round-robin.
cccac0a2 1627
41bd17a4 1628 use 'default' if this is a parent cache which can
1629 be used as a "last-resort" if a peer cannot be located
1630 by any of the peer-selection mechanisms.
1631 If specified more than once, only the first is used.
cccac0a2 1632
41bd17a4 1633 use 'round-robin' to define a set of parents which
1634 should be used in a round-robin fashion in the
1635 absence of any ICP queries.
cccac0a2 1636
41bd17a4 1637 use 'weighted-round-robin' to define a set of parents
1638 which should be used in a round-robin fashion with the
1639 frequency of each parent being based on the round trip
1640 time. Closer parents are used more often.
1641 Usually used for background-ping parents.
cccac0a2 1642
41bd17a4 1643 use 'carp' to define a set of parents which should
1644 be used as a CARP array. The requests will be
1645 distributed among the parents based on the CARP load
382db7eb 1646 balancing hash function based on their weight.
cccac0a2 1647
41bd17a4 1648 'multicast-responder' indicates the named peer
1649 is a member of a multicast group. ICP queries will
1650 not be sent directly to the peer, but ICP replies
1651 will be accepted from it.
cccac0a2 1652
41bd17a4 1653 'closest-only' indicates that, for ICP_OP_MISS
1654 replies, we'll only forward CLOSEST_PARENT_MISSes
1655 and never FIRST_PARENT_MISSes.
cccac0a2 1656
41bd17a4 1657 use 'no-digest' to NOT request cache digests from
1658 this neighbor.
cccac0a2 1659
41bd17a4 1660 'no-netdb-exchange' disables requesting ICMP
1661 RTT database (NetDB) from the neighbor.
cccac0a2 1662
41bd17a4 1663 use 'no-delay' to prevent access to this neighbor
1664 from influencing the delay pools.
7d90757b 1665
41bd17a4 1666 use 'login=user:password' if this is a personal/workgroup
1667 proxy and your parent requires proxy authentication.
1668 Note: The string can include URL escapes (i.e. %20 for
1669 spaces). This also means % must be written as %%.
7d90757b 1670
41bd17a4 1671 use 'login=PASS' if users must authenticate against
1672 the upstream proxy or in the case of a reverse proxy
1673 configuration, the origin web server. This will pass
1674 the users credentials as they are to the peer.
1675 This only works for the Basic HTTP authentication scheme.
1676 Note: To combine this with proxy_auth both proxies must
1677 share the same user database as HTTP only allows for
1678 a single login (one for proxy, one for origin server).
1679 Also be warned this will expose your users proxy
1680 password to the peer. USE WITH CAUTION
7d90757b 1681
41bd17a4 1682 use 'login=*:password' to pass the username to the
1683 upstream cache, but with a fixed password. This is meant
1684 to be used when the peer is in another administrative
1685 domain, but it is still needed to identify each user.
1686 The star can optionally be followed by some extra
1687 information which is added to the username. This can
1688 be used to identify this proxy to the peer, similar to
1689 the login=username:password option above.
cccac0a2 1690
41bd17a4 1691 use 'connect-timeout=nn' to specify a peer
1692 specific connect timeout (also see the
1693 peer_connect_timeout directive)
7f7db318 1694
41bd17a4 1695 use 'digest-url=url' to tell Squid to fetch the cache
1696 digest (if digests are enabled) for this host from
1697 the specified URL rather than the Squid default
1698 location.
cccac0a2 1699
41bd17a4 1700 use 'allow-miss' to disable Squid's use of only-if-cached
1701 when forwarding requests to siblings. This is primarily
1702 useful when icp_hit_stale is used by the sibling. To
1703 extensive use of this option may result in forwarding
1704 loops, and you should avoid having two-way peerings
1705 with this option. (for example to deny peer usage on
1706 requests from peer by denying cache_peer_access if the
1707 source is a peer)
cccac0a2 1708
41bd17a4 1709 use 'max-conn=n' to limit the amount of connections Squid
1710 may open to this peer.
cccac0a2 1711
41bd17a4 1712 use 'htcp' to send HTCP, instead of ICP, queries
1713 to the neighbor. You probably also want to
1714 set the "icp port" to 4827 instead of 3130.
0b48417e 1715 You MUST also set htcp_access expicitly. The default of
1716 deny all will prevent peer traffic.
cccac0a2 1717
41bd17a4 1718 use 'htcp-oldsquid' to send HTCP to old Squid versions
0b48417e 1719 You MUST also set htcp_access expicitly. The default of
1720 deny all will prevent peer traffic.
cccac0a2 1721
41bd17a4 1722 'originserver' causes this parent peer to be contacted as
1723 a origin server. Meant to be used in accelerator setups.
cccac0a2 1724
41bd17a4 1725 use 'name=xxx' if you have multiple peers on the same
1726 host but different ports. This name can be used to
1727 differentiate the peers in cache_peer_access and similar
1728 directives.
cccac0a2 1729
41bd17a4 1730 use 'forceddomain=name' to forcibly set the Host header
1731 of requests forwarded to this peer. Useful in accelerator
1732 setups where the server (peer) expects a certain domain
1733 name and using redirectors to feed this domain name
1734 is not feasible.
64658378 1735
41bd17a4 1736 use 'ssl' to indicate connections to this peer should
1737 be SSL/TLS encrypted.
cccac0a2 1738
41bd17a4 1739 use 'sslcert=/path/to/ssl/certificate' to specify a client
1740 SSL certificate to use when connecting to this peer.
4c9fa5d5 1741
41bd17a4 1742 use 'sslkey=/path/to/ssl/key' to specify the private SSL
1743 key corresponding to sslcert above. If 'sslkey' is not
1744 specified 'sslcert' is assumed to reference a
1745 combined file containing both the certificate and the key.
4c9fa5d5 1746
41bd17a4 1747 use sslversion=1|2|3|4 to specify the SSL version to use
1748 when connecting to this peer
1749 1 = automatic (default)
1750 2 = SSL v2 only
1751 3 = SSL v3 only
1752 4 = TLS v1 only
cccac0a2 1753
41bd17a4 1754 use sslcipher=... to specify the list of valid SSL ciphers
1755 to use when connecting to this peer.
cccac0a2 1756
41bd17a4 1757 use ssloptions=... to specify various SSL engine options:
1758 NO_SSLv2 Disallow the use of SSLv2
1759 NO_SSLv3 Disallow the use of SSLv3
1760 NO_TLSv1 Disallow the use of TLSv1
1761 See src/ssl_support.c or the OpenSSL documentation for
1762 a more complete list.
cccac0a2 1763
41bd17a4 1764 use sslcafile=... to specify a file containing
1765 additional CA certificates to use when verifying the
1766 peer certificate.
cccac0a2 1767
41bd17a4 1768 use sslcapath=... to specify a directory containing
1769 additional CA certificates to use when verifying the
1770 peer certificate.
cccac0a2 1771
41bd17a4 1772 use sslcrlfile=... to specify a certificate revocation
1773 list file to use when verifying the peer certificate.
1774
1775 use sslflags=... to specify various flags modifying the
1776 SSL implementation:
1777 DONT_VERIFY_PEER
1778 Accept certificates even if they fail to
1779 verify.
1780 NO_DEFAULT_CA
1781 Don't use the default CA list built in
1782 to OpenSSL.
1783 DONT_VERIFY_DOMAIN
1784 Don't verify the peer certificate
1785 matches the server name
cccac0a2 1786
41bd17a4 1787 use ssldomain= to specify the peer name as advertised
1788 in it's certificate. Used for verifying the correctness
1789 of the received peer certificate. If not specified the
1790 peer hostname will be used.
cccac0a2 1791
41bd17a4 1792 use front-end-https to enable the "Front-End-Https: On"
1793 header needed when using Squid as a SSL frontend in front
1794 of Microsoft OWA. See MS KB document Q307347 for details
1795 on this header. If set to auto the header will
1796 only be added if the request is forwarded as a https://
1797 URL.
1798DOC_END
cccac0a2 1799
41bd17a4 1800NAME: cache_peer_domain cache_host_domain
1801TYPE: hostdomain
1802DEFAULT: none
1803LOC: none
1804DOC_START
1805 Use to limit the domains for which a neighbor cache will be
1806 queried. Usage:
cccac0a2 1807
41bd17a4 1808 cache_peer_domain cache-host domain [domain ...]
1809 cache_peer_domain cache-host !domain
cccac0a2 1810
41bd17a4 1811 For example, specifying
cccac0a2 1812
41bd17a4 1813 cache_peer_domain parent.foo.net .edu
cccac0a2 1814
41bd17a4 1815 has the effect such that UDP query packets are sent to
1816 'bigserver' only when the requested object exists on a
1817 server in the .edu domain. Prefixing the domainname
1818 with '!' means the cache will be queried for objects
1819 NOT in that domain.
cccac0a2 1820
41bd17a4 1821 NOTE: * Any number of domains may be given for a cache-host,
1822 either on the same or separate lines.
1823 * When multiple domains are given for a particular
1824 cache-host, the first matched domain is applied.
1825 * Cache hosts with no domain restrictions are queried
1826 for all requests.
1827 * There are no defaults.
1828 * There is also a 'cache_peer_access' tag in the ACL
1829 section.
1830DOC_END
dd9b1776 1831
41bd17a4 1832NAME: cache_peer_access
1833TYPE: peer_access
1834DEFAULT: none
1835LOC: none
1836DOC_START
1837 Similar to 'cache_peer_domain' but provides more flexibility by
1838 using ACL elements.
cccac0a2 1839
41bd17a4 1840 cache_peer_access cache-host allow|deny [!]aclname ...
dd9b1776 1841
41bd17a4 1842 The syntax is identical to 'http_access' and the other lists of
1843 ACL elements. See the comments for 'http_access' below, or
1844 the Squid FAQ (http://www.squid-cache.org/FAQ/FAQ-10.html).
1845DOC_END
dd9b1776 1846
41bd17a4 1847NAME: neighbor_type_domain
1848TYPE: hostdomaintype
1849DEFAULT: none
1850LOC: none
1851DOC_START
1852 usage: neighbor_type_domain neighbor parent|sibling domain domain ...
cccac0a2 1853
41bd17a4 1854 Modifying the neighbor type for specific domains is now
1855 possible. You can treat some domains differently than the the
1856 default neighbor type specified on the 'cache_peer' line.
1857 Normally it should only be necessary to list domains which
1858 should be treated differently because the default neighbor type
1859 applies for hostnames which do not match domains listed here.
6bf4f823 1860
41bd17a4 1861EXAMPLE:
dbe3992d 1862 cache_peer cache.foo.org parent 3128 3130
41bd17a4 1863 neighbor_type_domain cache.foo.org sibling .com .net
1864 neighbor_type_domain cache.foo.org sibling .au .de
1865DOC_END
6bf4f823 1866
41bd17a4 1867NAME: dead_peer_timeout
1868COMMENT: (seconds)
1869DEFAULT: 10 seconds
1870TYPE: time_t
1871LOC: Config.Timeout.deadPeer
1872DOC_START
1873 This controls how long Squid waits to declare a peer cache
1874 as "dead." If there are no ICP replies received in this
1875 amount of time, Squid will declare the peer dead and not
1876 expect to receive any further ICP replies. However, it
1877 continues to send ICP queries, and will mark the peer as
1878 alive upon receipt of the first subsequent ICP reply.
699acd19 1879
41bd17a4 1880 This timeout also affects when Squid expects to receive ICP
1881 replies from peers. If more than 'dead_peer' seconds have
1882 passed since the last ICP reply was received, Squid will not
1883 expect to receive an ICP reply on the next query. Thus, if
1884 your time between requests is greater than this timeout, you
1885 will see a lot of requests sent DIRECT to origin servers
1886 instead of to your parents.
1887DOC_END
cccac0a2 1888
41bd17a4 1889NAME: hierarchy_stoplist
1890TYPE: wordlist
1891DEFAULT: none
1892LOC: Config.hierarchy_stoplist
1893DOC_START
1894 A list of words which, if found in a URL, cause the object to
1895 be handled directly by this cache. In other words, use this
1896 to not query neighbor caches for certain objects. You may
1897 list this option multiple times.
1898 Note: never_direct overrides this option.
cccac0a2 1899NOCOMMENT_START
41bd17a4 1900#We recommend you to use at least the following line.
1901hierarchy_stoplist cgi-bin ?
6b698a21 1902NOCOMMENT_END
1903DOC_END
0976f8db 1904
41bd17a4 1905COMMENT_START
1906 MEMORY CACHE OPTIONS
1907 -----------------------------------------------------------------------------
1908COMMENT_END
1909
1910NAME: cache_mem
1911COMMENT: (bytes)
1912TYPE: b_size_t
1913DEFAULT: 8 MB
1914LOC: Config.memMaxSize
6b698a21 1915DOC_START
41bd17a4 1916 NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE.
1917 IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL
1918 USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER
1919 THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS.
1920
1921 'cache_mem' specifies the ideal amount of memory to be used
1922 for:
1923 * In-Transit objects
1924 * Hot Objects
1925 * Negative-Cached objects
1926
1927 Data for these objects are stored in 4 KB blocks. This
1928 parameter specifies the ideal upper limit on the total size of
1929 4 KB blocks allocated. In-Transit objects take the highest
1930 priority.
1931
1932 In-transit objects have priority over the others. When
1933 additional space is needed for incoming data, negative-cached
1934 and hot objects will be released. In other words, the
1935 negative-cached and hot objects will fill up any unused space
1936 not needed for in-transit objects.
1937
1938 If circumstances require, this limit will be exceeded.
1939 Specifically, if your incoming request rate requires more than
1940 'cache_mem' of memory to hold in-transit objects, Squid will
1941 exceed this limit to satisfy the new requests. When the load
1942 decreases, blocks will be freed until the high-water mark is
1943 reached. Thereafter, blocks will be used to store hot
1944 objects.
6b698a21 1945DOC_END
0976f8db 1946
41bd17a4 1947NAME: maximum_object_size_in_memory
1948COMMENT: (bytes)
1949TYPE: b_size_t
1950DEFAULT: 8 KB
1951LOC: Config.Store.maxInMemObjSize
6b698a21 1952DOC_START
41bd17a4 1953 Objects greater than this size will not be attempted to kept in
1954 the memory cache. This should be set high enough to keep objects
1955 accessed frequently in memory to improve performance whilst low
1956 enough to keep larger objects from hoarding cache_mem.
6b698a21 1957DOC_END
0976f8db 1958
41bd17a4 1959NAME: memory_replacement_policy
1960TYPE: removalpolicy
1961LOC: Config.memPolicy
1962DEFAULT: lru
6b698a21 1963DOC_START
41bd17a4 1964 The memory replacement policy parameter determines which
1965 objects are purged from memory when memory space is needed.
7f7db318 1966
41bd17a4 1967 See cache_replacement_policy for details.
1968DOC_END
6b698a21 1969
41bd17a4 1970COMMENT_START
1971 DISK CACHE OPTIONS
1972 -----------------------------------------------------------------------------
1973COMMENT_END
6b698a21 1974
41bd17a4 1975NAME: cache_replacement_policy
1976TYPE: removalpolicy
1977LOC: Config.replPolicy
1978DEFAULT: lru
1979DOC_START
1980 The cache replacement policy parameter determines which
1981 objects are evicted (replaced) when disk space is needed.
6b698a21 1982
41bd17a4 1983 lru : Squid's original list based LRU policy
1984 heap GDSF : Greedy-Dual Size Frequency
1985 heap LFUDA: Least Frequently Used with Dynamic Aging
1986 heap LRU : LRU policy implemented using a heap
6b698a21 1987
41bd17a4 1988 Applies to any cache_dir lines listed below this.
7f7db318 1989
41bd17a4 1990 The LRU policies keeps recently referenced objects.
0976f8db 1991
41bd17a4 1992 The heap GDSF policy optimizes object hit rate by keeping smaller
1993 popular objects in cache so it has a better chance of getting a
1994 hit. It achieves a lower byte hit rate than LFUDA though since
1995 it evicts larger (possibly popular) objects.
0976f8db 1996
41bd17a4 1997 The heap LFUDA policy keeps popular objects in cache regardless of
1998 their size and thus optimizes byte hit rate at the expense of
1999 hit rate since one large, popular object will prevent many
2000 smaller, slightly less popular objects from being cached.
0976f8db 2001
41bd17a4 2002 Both policies utilize a dynamic aging mechanism that prevents
2003 cache pollution that can otherwise occur with frequency-based
2004 replacement policies.
7d90757b 2005
41bd17a4 2006 NOTE: if using the LFUDA replacement policy you should increase
2007 the value of maximum_object_size above its default of 4096 KB to
2008 to maximize the potential byte hit rate improvement of LFUDA.
dc1af3cf 2009
41bd17a4 2010 For more information about the GDSF and LFUDA cache replacement
2011 policies see http://www.hpl.hp.com/techreports/1999/HPL-1999-69.html
2012 and http://fog.hpl.external.hp.com/techreports/98/HPL-98-173.html.
6b698a21 2013DOC_END
0976f8db 2014
41bd17a4 2015NAME: cache_dir
2016TYPE: cachedir
2017DEFAULT: none
41bd17a4 2018LOC: Config.cacheSwap
6b698a21 2019DOC_START
41bd17a4 2020 Usage:
0976f8db 2021
41bd17a4 2022 cache_dir Type Directory-Name Fs-specific-data [options]
0976f8db 2023
41bd17a4 2024 You can specify multiple cache_dir lines to spread the
2025 cache among different disk partitions.
0976f8db 2026
41bd17a4 2027 Type specifies the kind of storage system to use. Only "ufs"
2028 is built by default. To enable any of the other storage systems
2029 see the --enable-storeio configure option.
0976f8db 2030
41bd17a4 2031 'Directory' is a top-level directory where cache swap
2032 files will be stored. If you want to use an entire disk
2033 for caching, this can be the mount-point directory.
2034 The directory must exist and be writable by the Squid
2035 process. Squid will NOT create this directory for you.
0976f8db 2036
41bd17a4 2037 The ufs store type:
0976f8db 2038
41bd17a4 2039 "ufs" is the old well-known Squid storage format that has always
2040 been there.
0976f8db 2041
41bd17a4 2042 cache_dir ufs Directory-Name Mbytes L1 L2 [options]
0976f8db 2043
41bd17a4 2044 'Mbytes' is the amount of disk space (MB) to use under this
2045 directory. The default is 100 MB. Change this to suit your
2046 configuration. Do NOT put the size of your disk drive here.
2047 Instead, if you want Squid to use the entire disk drive,
2048 subtract 20% and use that value.
0976f8db 2049
41bd17a4 2050 'Level-1' is the number of first-level subdirectories which
2051 will be created under the 'Directory'. The default is 16.
0976f8db 2052
41bd17a4 2053 'Level-2' is the number of second-level subdirectories which
2054 will be created under each first-level directory. The default
2055 is 256.
0976f8db 2056
41bd17a4 2057 The aufs store type:
7f7db318 2058
41bd17a4 2059 "aufs" uses the same storage format as "ufs", utilizing
2060 POSIX-threads to avoid blocking the main Squid process on
2061 disk-I/O. This was formerly known in Squid as async-io.
38f9c547 2062
41bd17a4 2063 cache_dir aufs Directory-Name Mbytes L1 L2 [options]
38f9c547 2064
41bd17a4 2065 see argument descriptions under ufs above
38f9c547 2066
41bd17a4 2067 The diskd store type:
38f9c547 2068
41bd17a4 2069 "diskd" uses the same storage format as "ufs", utilizing a
2070 separate process to avoid blocking the main Squid process on
2071 disk-I/O.
4c3ef9b2 2072
41bd17a4 2073 cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
0976f8db 2074
41bd17a4 2075 see argument descriptions under ufs above
0976f8db 2076
41bd17a4 2077 Q1 specifies the number of unacknowledged I/O requests when Squid
2078 stops opening new files. If this many messages are in the queues,
2079 Squid won't open new files. Default is 64
0976f8db 2080
41bd17a4 2081 Q2 specifies the number of unacknowledged messages when Squid
2082 starts blocking. If this many messages are in the queues,
2083 Squid blocks until it receives some replies. Default is 72
0976f8db 2084
41bd17a4 2085 When Q1 < Q2 (the default), the cache directory is optimized
2086 for lower response time at the expense of a decrease in hit
2087 ratio. If Q1 > Q2, the cache directory is optimized for
2088 higher hit ratio at the expense of an increase in response
2089 time.
0976f8db 2090
41bd17a4 2091 The coss store type:
0976f8db 2092
41bd17a4 2093 block-size=n defines the "block size" for COSS cache_dir's.
2094 Squid uses file numbers as block numbers. Since file numbers
2095 are limited to 24 bits, the block size determines the maximum
2096 size of the COSS partition. The default is 512 bytes, which
2097 leads to a maximum cache_dir size of 512<<24, or 8 GB. Note
2098 you should not change the coss block size after Squid
2099 has written some objects to the cache_dir.
0976f8db 2100
41bd17a4 2101 The coss file store has changed from 2.5. Now it uses a file
2102 called 'stripe' in the directory names in the config - and
2103 this will be created by squid -z.
0976f8db 2104
41bd17a4 2105 Common options:
0976f8db 2106
41bd17a4 2107 no-store, no new objects should be stored to this cache_dir
0976f8db 2108
41bd17a4 2109 max-size=n, refers to the max object size this storedir supports.
2110 It is used to initially choose the storedir to dump the object.
2111 Note: To make optimal use of the max-size limits you should order
2112 the cache_dir lines with the smallest max-size value first and the
2113 ones with no max-size specification last.
0976f8db 2114
41bd17a4 2115 Note for coss, max-size must be less than COSS_MEMBUF_SZ,
2116 which can be changed with the --with-coss-membuf-size=N configure
2117 option.
bebc043b 2118NOCOMMENT_START
dee5bef7 2119cache_dir ufs @DEFAULT_SWAP_DIR@ 100 16 256
bebc043b 2120NOCOMMENT_END
6b698a21 2121DOC_END
0976f8db 2122
41bd17a4 2123NAME: store_dir_select_algorithm
2124TYPE: string
2125LOC: Config.store_dir_select_algorithm
2126DEFAULT: least-load
6b698a21 2127DOC_START
41bd17a4 2128 Set this to 'round-robin' as an alternative.
6b698a21 2129DOC_END
0976f8db 2130
41bd17a4 2131NAME: max_open_disk_fds
2132TYPE: int
2133LOC: Config.max_open_disk_fds
2134DEFAULT: 0
6b698a21 2135DOC_START
41bd17a4 2136 To avoid having disk as the I/O bottleneck Squid can optionally
2137 bypass the on-disk cache if more than this amount of disk file
2138 descriptors are open.
2139
2140 A value of 0 indicates no limit.
6b698a21 2141DOC_END
0976f8db 2142
41bd17a4 2143NAME: minimum_object_size
6b698a21 2144COMMENT: (bytes)
47f6e231 2145TYPE: b_int64_t
6b698a21 2146DEFAULT: 0 KB
41bd17a4 2147LOC: Config.Store.minObjectSize
6b698a21 2148DOC_START
41bd17a4 2149 Objects smaller than this size will NOT be saved on disk. The
2150 value is specified in kilobytes, and the default is 0 KB, which
2151 means there is no minimum.
6b698a21 2152DOC_END
0976f8db 2153
41bd17a4 2154NAME: maximum_object_size
2155COMMENT: (bytes)
2156TYPE: b_int64_t
2157DEFAULT: 4096 KB
2158LOC: Config.Store.maxObjectSize
777831e0 2159DOC_START
41bd17a4 2160 Objects larger than this size will NOT be saved on disk. The
2161 value is specified in kilobytes, and the default is 4MB. If
2162 you wish to get a high BYTES hit ratio, you should probably
2163 increase this (one 32 MB object hit counts for 3200 10KB
2164 hits). If you wish to increase speed more than your want to
2165 save bandwidth you should leave this low.
777831e0 2166
41bd17a4 2167 NOTE: if using the LFUDA replacement policy you should increase
2168 this value to maximize the byte hit rate improvement of LFUDA!
2169 See replacement_policy below for a discussion of this policy.
6b698a21 2170DOC_END
0976f8db 2171
41bd17a4 2172NAME: cache_swap_low
2173COMMENT: (percent, 0-100)
5473c134 2174TYPE: int
41bd17a4 2175DEFAULT: 90
2176LOC: Config.Swap.lowWaterMark
2177DOC_NONE
2178
2179NAME: cache_swap_high
2180COMMENT: (percent, 0-100)
2181TYPE: int
2182DEFAULT: 95
2183LOC: Config.Swap.highWaterMark
6b698a21 2184DOC_START
41bd17a4 2185
2186 The low- and high-water marks for cache object replacement.
2187 Replacement begins when the swap (disk) usage is above the
2188 low-water mark and attempts to maintain utilization near the
2189 low-water mark. As swap utilization gets close to high-water
2190 mark object eviction becomes more aggressive. If utilization is
2191 close to the low-water mark less replacement is done each time.
2192
2193 Defaults are 90% and 95%. If you have a large cache, 5% could be
2194 hundreds of MB. If this is the case you may wish to set these
2195 numbers closer together.
6b698a21 2196DOC_END
0976f8db 2197
5473c134 2198COMMENT_START
41bd17a4 2199 LOGFILE OPTIONS
5473c134 2200 -----------------------------------------------------------------------------
2201COMMENT_END
0976f8db 2202
41bd17a4 2203NAME: logformat
2204TYPE: logformat
2205LOC: Config.Log.logformats
5473c134 2206DEFAULT: none
6b698a21 2207DOC_START
41bd17a4 2208 Usage:
0976f8db 2209
41bd17a4 2210 logformat <name> <format specification>
0976f8db 2211
41bd17a4 2212 Defines an access log format.
6b698a21 2213
41bd17a4 2214 The <format specification> is a string with embedded % format codes
5473c134 2215
41bd17a4 2216 % format codes all follow the same basic structure where all but
2217 the formatcode is optional. Output strings are automatically escaped
2218 as required according to their context and the output format
2219 modifiers are usually not needed, but can be specified if an explicit
2220 output format is desired.
6b698a21 2221
41bd17a4 2222 % ["|[|'|#] [-] [[0]width] [{argument}] formatcode
0976f8db 2223
41bd17a4 2224 " output in quoted string format
2225 [ output in squid text log format as used by log_mime_hdrs
2226 # output in URL quoted format
2227 ' output as-is
5473c134 2228
41bd17a4 2229 - left aligned
2230 width field width. If starting with 0 the
2231 output is zero padded
2232 {arg} argument such as header name etc
5473c134 2233
41bd17a4 2234 Format codes:
5473c134 2235
41bd17a4 2236 >a Client source IP address
2237 >A Client FQDN
2238 >p Client source port
2239 <A Server IP address or peer name
2240 la Local IP address (http_port)
2241 lp Local port number (http_port)
2242 ts Seconds since epoch
2243 tu subsecond time (milliseconds)
2244 tl Local time. Optional strftime format argument
2245 default %d/%b/%Y:%H:%M:%S %z
2246 tg GMT time. Optional strftime format argument
2247 default %d/%b/%Y:%H:%M:%S %z
2248 tr Response time (milliseconds)
2249 >h Request header. Optional header name argument
2250 on the format header[:[separator]element]
2251 <h Reply header. Optional header name argument
2252 as for >h
2253 un User name
2254 ul User name from authentication
2255 ui User name from ident
2256 us User name from SSL
2257 ue User name from external acl helper
2258 Hs HTTP status code
2259 Ss Squid request status (TCP_MISS etc)
2260 Sh Squid hierarchy status (DEFAULT_PARENT etc)
2261 mt MIME content type
2262 rm Request method (GET/POST etc)
2263 ru Request URL
2264 rp Request URL-Path excluding hostname
2265 rv Request protocol version
2266 et Tag returned by external acl
2267 ea Log string returned by external acl
2268 <st Reply size including HTTP headers
1a86db31
AJ
2269 >st Request size including HTTP headers
2270 st Request+Reply size including HTTP headers
41bd17a4 2271 <sH Reply high offset sent
2272 <sS Upstream object size
2273 % a literal % character
5473c134 2274
7d9acc3c
AJ
2275 The default formats available (which do not need re-defining) are:
2276
2277logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
2278logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
41bd17a4 2279logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
2280logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
5473c134 2281DOC_END
2282
41bd17a4 2283NAME: access_log cache_access_log
2284TYPE: access_log
2285LOC: Config.Log.accesslogs
5473c134 2286DEFAULT: none
2287DOC_START
41bd17a4 2288 These files log client request activities. Has a line every HTTP or
2289 ICP request. The format is:
2290 access_log <filepath> [<logformat name> [acl acl ...]]
2291 access_log none [acl acl ...]]
5473c134 2292
41bd17a4 2293 Will log to the specified file using the specified format (which
2294 must be defined in a logformat directive) those entries which match
2295 ALL the acl's specified (which must be defined in acl clauses).
2296 If no acl is specified, all requests will be logged to this file.
5473c134 2297
41bd17a4 2298 To disable logging of a request use the filepath "none", in which case
2299 a logformat name should not be specified.
5473c134 2300
41bd17a4 2301 To log the request via syslog specify a filepath of "syslog":
5473c134 2302
41bd17a4 2303 access_log syslog[:facility.priority] [format [acl1 [acl2 ....]]]
2304 where facility could be any of:
2305 authpriv, daemon, local0 .. local7 or user.
5473c134 2306
41bd17a4 2307 And priority could be any of:
2308 err, warning, notice, info, debug.
2309NOCOMMENT_START
2310access_log @DEFAULT_ACCESS_LOG@ squid
2311NOCOMMENT_END
2312DOC_END
5473c134 2313
5b0f5383 2314NAME: log_access
2315TYPE: acl_access
2316LOC: Config.accessList.log
2317DEFAULT: none
2318COMMENT: allow|deny acl acl...
2319DOC_START
2320 This options allows you to control which requests gets logged
2321 to access.log (see access_log directive). Requests denied for
2322 logging will also not be accounted for in performance counters.
2323DOC_END
2324
41bd17a4 2325NAME: cache_log
2326TYPE: string
2327DEFAULT: @DEFAULT_CACHE_LOG@
2328LOC: Config.Log.log
2329DOC_START
2330 Cache logging file. This is where general information about
2331 your cache's behavior goes. You can increase the amount of data
2332 logged to this file with the "debug_options" tag below.
2333DOC_END
5473c134 2334
41bd17a4 2335NAME: cache_store_log
2336TYPE: string
2337DEFAULT: @DEFAULT_STORE_LOG@
2338LOC: Config.Log.store
2339DOC_START
2340 Logs the activities of the storage manager. Shows which
2341 objects are ejected from the cache, and which objects are
2342 saved and for how long. To disable, enter "none". There are
2343 not really utilities to analyze this data, so you can safely
2344 disable it.
5473c134 2345DOC_END
2346
41bd17a4 2347NAME: cache_swap_state cache_swap_log
2348TYPE: string
2349LOC: Config.Log.swap
5473c134 2350DEFAULT: none
2351DOC_START
41bd17a4 2352 Location for the cache "swap.state" file. This index file holds
2353 the metadata of objects saved on disk. It is used to rebuild
2354 the cache during startup. Normally this file resides in each
2355 'cache_dir' directory, but you may specify an alternate
2356 pathname here. Note you must give a full filename, not just
2357 a directory. Since this is the index for the whole object
2358 list you CANNOT periodically rotate it!
5473c134 2359
41bd17a4 2360 If %s can be used in the file name it will be replaced with a
2361 a representation of the cache_dir name where each / is replaced
2362 with '.'. This is needed to allow adding/removing cache_dir
2363 lines when cache_swap_log is being used.
5473c134 2364
41bd17a4 2365 If have more than one 'cache_dir', and %s is not used in the name
2366 these swap logs will have names such as:
5473c134 2367
41bd17a4 2368 cache_swap_log.00
2369 cache_swap_log.01
2370 cache_swap_log.02
5473c134 2371
41bd17a4 2372 The numbered extension (which is added automatically)
2373 corresponds to the order of the 'cache_dir' lines in this
2374 configuration file. If you change the order of the 'cache_dir'
2375 lines in this file, these index files will NOT correspond to
2376 the correct 'cache_dir' entry (unless you manually rename
2377 them). We recommend you do NOT use this option. It is
2378 better to keep these index files in each 'cache_dir' directory.
5473c134 2379DOC_END
2380
41bd17a4 2381NAME: logfile_rotate
2382TYPE: int
2383DEFAULT: 10
2384LOC: Config.Log.rotateNumber
5473c134 2385DOC_START
41bd17a4 2386 Specifies the number of logfile rotations to make when you
2387 type 'squid -k rotate'. The default is 10, which will rotate
2388 with extensions 0 through 9. Setting logfile_rotate to 0 will
2389 disable the file name rotation, but the logfiles are still closed
2390 and re-opened. This will enable you to rename the logfiles
2391 yourself just before sending the rotate signal.
5473c134 2392
41bd17a4 2393 Note, the 'squid -k rotate' command normally sends a USR1
2394 signal to the running squid process. In certain situations
2395 (e.g. on Linux with Async I/O), USR1 is used for other
2396 purposes, so -k rotate uses another signal. It is best to get
2397 in the habit of using 'squid -k rotate' instead of 'kill -USR1
2398 <pid>'.
2399DOC_END
5473c134 2400
41bd17a4 2401NAME: emulate_httpd_log
2402COMMENT: on|off
2403TYPE: onoff
2404DEFAULT: off
2405LOC: Config.onoff.common_log
2406DOC_START
2407 The Cache can emulate the log file format which many 'httpd'
2408 programs use. To disable/enable this emulation, set
2409 emulate_httpd_log to 'off' or 'on'. The default
2410 is to use the native log format since it includes useful
2411 information Squid-specific log analyzers use.
5473c134 2412DOC_END
2413
41bd17a4 2414NAME: log_ip_on_direct
2415COMMENT: on|off
2416TYPE: onoff
5473c134 2417DEFAULT: on
41bd17a4 2418LOC: Config.onoff.log_ip_on_direct
5473c134 2419DOC_START
41bd17a4 2420 Log the destination IP address in the hierarchy log tag when going
2421 direct. Earlier Squid versions logged the hostname here. If you
2422 prefer the old way set this to off.
2423DOC_END
5473c134 2424
41bd17a4 2425NAME: mime_table
2426TYPE: string
2427DEFAULT: @DEFAULT_MIME_TABLE@
2428LOC: Config.mimeTablePathname
2429DOC_START
2430 Pathname to Squid's MIME table. You shouldn't need to change
2431 this, but the default file contains examples and formatting
2432 information if you do.
5473c134 2433DOC_END
2434
41bd17a4 2435NAME: log_mime_hdrs
2436COMMENT: on|off
2437TYPE: onoff
2438LOC: Config.onoff.log_mime_hdrs
2439DEFAULT: off
2440DOC_START
2441 The Cache can record both the request and the response MIME
2442 headers for each HTTP transaction. The headers are encoded
2443 safely and will appear as two bracketed fields at the end of
2444 the access log (for either the native or httpd-emulated log
2445 formats). To enable this logging set log_mime_hdrs to 'on'.
2446DOC_END
5473c134 2447
41bd17a4 2448NAME: useragent_log
2449TYPE: string
2450LOC: Config.Log.useragent
2451DEFAULT: none
2452IFDEF: USE_USERAGENT_LOG
5473c134 2453DOC_START
41bd17a4 2454 Squid will write the User-Agent field from HTTP requests
2455 to the filename specified here. By default useragent_log
2456 is disabled.
5473c134 2457DOC_END
2458
41bd17a4 2459NAME: referer_log referrer_log
2460TYPE: string
2461LOC: Config.Log.referer
2462DEFAULT: none
2463IFDEF: USE_REFERER_LOG
5473c134 2464DOC_START
41bd17a4 2465 Squid will write the Referer field from HTTP requests to the
2466 filename specified here. By default referer_log is disabled.
2467 Note that "referer" is actually a misspelling of "referrer"
2468 however the misspelt version has been accepted into the HTTP RFCs
2469 and we accept both.
5473c134 2470DOC_END
2471
41bd17a4 2472NAME: pid_filename
2473TYPE: string
2474DEFAULT: @DEFAULT_PID_FILE@
2475LOC: Config.pidFilename
5473c134 2476DOC_START
41bd17a4 2477 A filename to write the process-id to. To disable, enter "none".
5473c134 2478DOC_END
2479
41bd17a4 2480NAME: debug_options
fb6a61d1 2481TYPE: eol
41bd17a4 2482DEFAULT: ALL,1
2483LOC: Config.debugOptions
5473c134 2484DOC_START
41bd17a4 2485 Logging options are set as section,level where each source file
2486 is assigned a unique section. Lower levels result in less
2487 output, Full debugging (level 9) can result in a very large
2488 log file, so be careful. The magic word "ALL" sets debugging
2489 levels for all sections. We recommend normally running with
2490 "ALL,1".
5473c134 2491DOC_END
2492
41bd17a4 2493NAME: log_fqdn
2494COMMENT: on|off
2495TYPE: onoff
2496DEFAULT: off
2497LOC: Config.onoff.log_fqdn
5473c134 2498DOC_START
41bd17a4 2499 Turn this on if you wish to log fully qualified domain names
2500 in the access.log. To do this Squid does a DNS lookup of all
2501 IP's connecting to it. This can (in some situations) increase
2502 latency, which makes your cache seem slower for interactive
2503 browsing.
5473c134 2504DOC_END
2505
41bd17a4 2506NAME: client_netmask
2507TYPE: address
2508LOC: Config.Addrs.client_netmask
2509DEFAULT: 255.255.255.255
5473c134 2510DOC_START
41bd17a4 2511 A netmask for client addresses in logfiles and cachemgr output.
2512 Change this to protect the privacy of your cache clients.
2513 A netmask of 255.255.255.0 will log all IP's in that range with
2514 the last digit set to '0'.
5473c134 2515DOC_END
2516
41bd17a4 2517NAME: forward_log
2518IFDEF: WIP_FWD_LOG
2519TYPE: string
2520DEFAULT: none
2521LOC: Config.Log.forward
5473c134 2522DOC_START
41bd17a4 2523 Logs the server-side requests.
5473c134 2524
41bd17a4 2525 This is currently work in progress.
5473c134 2526DOC_END
2527
41bd17a4 2528NAME: strip_query_terms
5473c134 2529TYPE: onoff
41bd17a4 2530LOC: Config.onoff.strip_query_terms
5473c134 2531DEFAULT: on
2532DOC_START
41bd17a4 2533 By default, Squid strips query terms from requested URLs before
2534 logging. This protects your user's privacy.
5473c134 2535DOC_END
2536
41bd17a4 2537NAME: buffered_logs
2538COMMENT: on|off
2539TYPE: onoff
2540DEFAULT: off
2541LOC: Config.onoff.buffered_logs
5473c134 2542DOC_START
41bd17a4 2543 cache.log log file is written with stdio functions, and as such
2544 it can be buffered or unbuffered. By default it will be unbuffered.
2545 Buffering it can speed up the writing slightly (though you are
2546 unlikely to need to worry unless you run with tons of debugging
2547 enabled in which case performance will suffer badly anyway..).
6b698a21 2548DOC_END
0976f8db 2549
2b753521 2550NAME: netdb_filename
2551TYPE: string
2552DEFAULT: @DEFAULT_NETDB_FILE@
2553LOC: Config.netdbFilename
fb6a61d1 2554IFDEF: USE_ICMP
2b753521 2555DOC_START
2556 A filename where Squid stores it's netdb state between restarts.
2557 To disable, enter "none".
2558DOC_END
2559
41bd17a4 2560COMMENT_START
2561 OPTIONS FOR FTP GATEWAYING
2562 -----------------------------------------------------------------------------
2563COMMENT_END
2564
2565NAME: ftp_user
2566TYPE: string
2567DEFAULT: Squid@
2568LOC: Config.Ftp.anon_user
6b698a21 2569DOC_START
41bd17a4 2570 If you want the anonymous login password to be more informative
2571 (and enable the use of picky ftp servers), set this to something
2572 reasonable for your domain, like wwwuser@somewhere.net
7f7db318 2573
41bd17a4 2574 The reason why this is domainless by default is the
2575 request can be made on the behalf of a user in any domain,
2576 depending on how the cache is used.
2577 Some ftp server also validate the email address is valid
2578 (for example perl.com).
6b698a21 2579DOC_END
0976f8db 2580
41bd17a4 2581NAME: ftp_list_width
2582TYPE: size_t
2583DEFAULT: 32
2584LOC: Config.Ftp.list_width
6b698a21 2585DOC_START
41bd17a4 2586 Sets the width of ftp listings. This should be set to fit in
2587 the width of a standard browser. Setting this too small
2588 can cut off long filenames when browsing ftp sites.
6b698a21 2589DOC_END
9e7dbc51 2590
41bd17a4 2591NAME: ftp_passive
2592TYPE: onoff
2593DEFAULT: on
2594LOC: Config.Ftp.passive
6b698a21 2595DOC_START
41bd17a4 2596 If your firewall does not allow Squid to use passive
2597 connections, turn off this option.
a689bd4e 2598
2599 Use of ftp_epsv_all option requires this to be ON.
2600DOC_END
2601
2602NAME: ftp_epsv_all
2603TYPE: onoff
2604DEFAULT: off
2605LOC: Config.Ftp.epsv_all
2606DOC_START
2607 FTP Protocol extensions permit the use of a special "EPSV ALL" command.
2608
2609 NATs may be able to put the connection on a "fast path" through the
2610 translator, as the EPRT command will never be used and therefore,
2611 translation of the data portion of the segments will never be needed.
2612
2613 When a client only expects to do two-way FTP transfers this may be useful.
2614 If squid finds that it must do a three-way FTP transfer after issuing
2615 an EPSV ALL command, the FTP session will fail.
2616
2617 If you have any doubts about this option do not use it.
2618 Squid will nicely attempt all other connection methods.
2619
2620 Requires ftp_passive to be ON (default)
41bd17a4 2621DOC_END
9e7dbc51 2622
41bd17a4 2623NAME: ftp_sanitycheck
2624TYPE: onoff
2625DEFAULT: on
2626LOC: Config.Ftp.sanitycheck
2627DOC_START
2628 For security and data integrity reasons Squid by default performs
2629 sanity checks of the addresses of FTP data connections ensure the
2630 data connection is to the requested server. If you need to allow
2631 FTP connections to servers using another IP address for the data
2632 connection turn this off.
2633DOC_END
9e7dbc51 2634
41bd17a4 2635NAME: ftp_telnet_protocol
2636TYPE: onoff
2637DEFAULT: on
2638LOC: Config.Ftp.telnet
2639DOC_START
2640 The FTP protocol is officially defined to use the telnet protocol
2641 as transport channel for the control connection. However, many
2642 implementations are broken and does not respect this aspect of
2643 the FTP protocol.
2644
2645 If you have trouble accessing files with ASCII code 255 in the
2646 path or similar problems involving this ASCII code you can
2647 try setting this directive to off. If that helps, report to the
2648 operator of the FTP server in question that their FTP server
2649 is broken and does not follow the FTP standard.
2650DOC_END
2651
2652COMMENT_START
2653 OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
2654 -----------------------------------------------------------------------------
2655COMMENT_END
2656
2657NAME: diskd_program
2658TYPE: string
2659DEFAULT: @DEFAULT_DISKD@
2660LOC: Config.Program.diskd
2661DOC_START
2662 Specify the location of the diskd executable.
2663 Note this is only useful if you have compiled in
2664 diskd as one of the store io modules.
2665DOC_END
2666
2667NAME: unlinkd_program
2668IFDEF: USE_UNLINKD
2669TYPE: string
2670DEFAULT: @DEFAULT_UNLINKD@
2671LOC: Config.Program.unlinkd
2672DOC_START
2673 Specify the location of the executable for file deletion process.
2674DOC_END
2675
2676NAME: pinger_program
2677TYPE: string
2678DEFAULT: @DEFAULT_PINGER@
cc192b50 2679LOC: Config.pinger.program
41bd17a4 2680IFDEF: USE_ICMP
2681DOC_START
2682 Specify the location of the executable for the pinger process.
2683DOC_END
2684
cc192b50 2685NAME: pinger_enable
2686TYPE: onoff
2687DEFAULT: on
2688LOC: Config.pinger.enable
2689IFDEF: USE_ICMP
2690DOC_START
2691 Control whether the pinger is active at run-time.
2692 Enables turning ICMP pinger on and off with a simple squid -k reconfigure.
2693DOC_END
2694
2695
41bd17a4 2696COMMENT_START
2697 OPTIONS FOR URL REWRITING
2698 -----------------------------------------------------------------------------
2699COMMENT_END
2700
2701NAME: url_rewrite_program redirect_program
2702TYPE: wordlist
2703LOC: Config.Program.redirect
2704DEFAULT: none
2705DOC_START
2706 Specify the location of the executable for the URL rewriter.
2707 Since they can perform almost any function there isn't one included.
2708
2709 For each requested URL rewriter will receive on line with the format
2710
c71adec1 2711 URL <SP> client_ip "/" fqdn <SP> user <SP> method [<SP> kvpairs]<NL>
2712
2713 In the future, the rewriter interface will be extended with
2714 key=value pairs ("kvpairs" shown above). Rewriter programs
2715 should be prepared to receive and possibly ignore additional
2716 whitespace-separated tokens on each input line.
41bd17a4 2717
2718 And the rewriter may return a rewritten URL. The other components of
2719 the request line does not need to be returned (ignored if they are).
2720
2721 The rewriter can also indicate that a client-side redirect should
2722 be performed to the new URL. This is done by prefixing the returned
2723 URL with "301:" (moved permanently) or 302: (moved temporarily).
2724
2725 By default, a URL rewriter is not used.
2726DOC_END
2727
2728NAME: url_rewrite_children redirect_children
2729TYPE: int
2730DEFAULT: 5
2731LOC: Config.redirectChildren
2732DOC_START
2733 The number of redirector processes to spawn. If you start
2734 too few Squid will have to wait for them to process a backlog of
2735 URLs, slowing it down. If you start too many they will use RAM
2736 and other system resources.
2737DOC_END
2738
2739NAME: url_rewrite_concurrency redirect_concurrency
2740TYPE: int
2741DEFAULT: 0
2742LOC: Config.redirectConcurrency
2743DOC_START
2744 The number of requests each redirector helper can handle in
2745 parallel. Defaults to 0 which indicates the redirector
2746 is a old-style single threaded redirector.
2747DOC_END
2748
2749NAME: url_rewrite_host_header redirect_rewrites_host_header
2750TYPE: onoff
2751DEFAULT: on
2752LOC: Config.onoff.redir_rewrites_host
2753DOC_START
2754 By default Squid rewrites any Host: header in redirected
2755 requests. If you are running an accelerator this may
2756 not be a wanted effect of a redirector.
2757
2758 WARNING: Entries are cached on the result of the URL rewriting
2759 process, so be careful if you have domain-virtual hosts.
2760DOC_END
2761
2762NAME: url_rewrite_access redirector_access
2763TYPE: acl_access
2764DEFAULT: none
2765LOC: Config.accessList.redirector
2766DOC_START
2767 If defined, this access list specifies which requests are
2768 sent to the redirector processes. By default all requests
2769 are sent.
2770DOC_END
2771
2772NAME: url_rewrite_bypass redirector_bypass
2773TYPE: onoff
2774LOC: Config.onoff.redirector_bypass
2775DEFAULT: off
2776DOC_START
2777 When this is 'on', a request will not go through the
2778 redirector if all redirectors are busy. If this is 'off'
2779 and the redirector queue grows too large, Squid will exit
2780 with a FATAL error and ask you to increase the number of
2781 redirectors. You should only enable this if the redirectors
2782 are not critical to your caching system. If you use
2783 redirectors for access control, and you enable this option,
2784 users may have access to pages they should not
2785 be allowed to request.
2786DOC_END
2787
2788COMMENT_START
2789 OPTIONS FOR TUNING THE CACHE
2790 -----------------------------------------------------------------------------
2791COMMENT_END
2792
f04b37d8 2793NAME: cache no_cache
2794TYPE: acl_access
2795DEFAULT: none
2796LOC: Config.accessList.noCache
41bd17a4 2797DOC_START
240887f0 2798 A list of ACL elements which, if matched and denied, cause the request to
f04b37d8 2799 not be satisfied from the cache and the reply to not be cached.
2800 In other words, use this to force certain objects to never be cached.
41bd17a4 2801
240887f0 2802 You must use the words 'allow' or 'deny' to indicate whether items
2803 matching the ACL should be allowed or denied into the cache.
f04b37d8 2804
240887f0 2805 Default is to allow all to be cached.
41bd17a4 2806DOC_END
2807
2808NAME: refresh_pattern
2809TYPE: refreshpattern
2810LOC: Config.Refresh
2811DEFAULT: none
2812DOC_START
2813 usage: refresh_pattern [-i] regex min percent max [options]
9e7dbc51 2814
6b698a21 2815 By default, regular expressions are CASE-SENSITIVE. To make
2816 them case-insensitive, use the -i option.
9e7dbc51 2817
41bd17a4 2818 'Min' is the time (in minutes) an object without an explicit
2819 expiry time should be considered fresh. The recommended
2820 value is 0, any higher values may cause dynamic applications
2821 to be erroneously cached unless the application designer
2822 has taken the appropriate actions.
9e7dbc51 2823
41bd17a4 2824 'Percent' is a percentage of the objects age (time since last
2825 modification age) an object without explicit expiry time
2826 will be considered fresh.
5b807763 2827
41bd17a4 2828 'Max' is an upper limit on how long objects without an explicit
2829 expiry time will be considered fresh.
9e7dbc51 2830
41bd17a4 2831 options: override-expire
2832 override-lastmod
2833 reload-into-ims
2834 ignore-reload
2835 ignore-no-cache
2836 ignore-no-store
2837 ignore-private
2838 ignore-auth
2839 refresh-ims
a0ec9f68 2840
41bd17a4 2841 override-expire enforces min age even if the server
9b2ad080
HN
2842 sent an explicit expiry time (e.g., with the
2843 Expires: header or Cache-Control: max-age). Doing this
2844 VIOLATES the HTTP standard. Enabling this feature
2845 could make you liable for problems which it causes.
6468fe10 2846
41bd17a4 2847 override-lastmod enforces min age even on objects
2848 that were modified recently.
934b03fc 2849
41bd17a4 2850 reload-into-ims changes client no-cache or ``reload''
2851 to If-Modified-Since requests. Doing this VIOLATES the
2852 HTTP standard. Enabling this feature could make you
2853 liable for problems which it causes.
dba79ac5 2854
41bd17a4 2855 ignore-reload ignores a client no-cache or ``reload''
2856 header. Doing this VIOLATES the HTTP standard. Enabling
2857 this feature could make you liable for problems which
2858 it causes.
9bc73deb 2859
41bd17a4 2860 ignore-no-cache ignores any ``Pragma: no-cache'' and
2861 ``Cache-control: no-cache'' headers received from a server.
2862 The HTTP RFC never allows the use of this (Pragma) header
2863 from a server, only a client, though plenty of servers
2864 send it anyway.
2865
2866 ignore-no-store ignores any ``Cache-control: no-store''
2867 headers received from a server. Doing this VIOLATES
2868 the HTTP standard. Enabling this feature could make you
2869 liable for problems which it causes.
2870
2871 ignore-private ignores any ``Cache-control: private''
2872 headers received from a server. Doing this VIOLATES
2873 the HTTP standard. Enabling this feature could make you
2874 liable for problems which it causes.
2875
2876 ignore-auth caches responses to requests with authorization,
2877 as if the originserver had sent ``Cache-control: public''
2878 in the response header. Doing this VIOLATES the HTTP standard.
2879 Enabling this feature could make you liable for problems which
2880 it causes.
2881
2882 refresh-ims causes squid to contact the origin server
2883 when a client issues an If-Modified-Since request. This
2884 ensures that the client will receive an updated version
2885 if one is available.
2886
2887 Basically a cached object is:
2888
2889 FRESH if expires < now, else STALE
2890 STALE if age > max
2891 FRESH if lm-factor < percent, else STALE
2892 FRESH if age < min
2893 else STALE
2894
2895 The refresh_pattern lines are checked in the order listed here.
2896 The first entry which matches is used. If none of the entries
2897 match the default will be used.
2898
2899 Note, you must uncomment all the default lines if you want
2900 to change one. The default setting is only active if none is
2901 used.
2902
2903Suggested default:
2904NOCOMMENT_START
2905refresh_pattern ^ftp: 1440 20% 10080
2906refresh_pattern ^gopher: 1440 0% 1440
89db45fa 2907refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
41bd17a4 2908refresh_pattern . 0 20% 4320
2909NOCOMMENT_END
2910DOC_END
2911
2912NAME: quick_abort_min
2913COMMENT: (KB)
2914TYPE: kb_int64_t
2915DEFAULT: 16 KB
2916LOC: Config.quickAbort.min
2917DOC_NONE
2918
2919NAME: quick_abort_max
2920COMMENT: (KB)
2921TYPE: kb_int64_t
2922DEFAULT: 16 KB
2923LOC: Config.quickAbort.max
2924DOC_NONE
2925
2926NAME: quick_abort_pct
2927COMMENT: (percent)
2928TYPE: int
2929DEFAULT: 95
2930LOC: Config.quickAbort.pct
2931DOC_START
2932 The cache by default continues downloading aborted requests
2933 which are almost completed (less than 16 KB remaining). This
2934 may be undesirable on slow (e.g. SLIP) links and/or very busy
2935 caches. Impatient users may tie up file descriptors and
2936 bandwidth by repeatedly requesting and immediately aborting
2937 downloads.
2938
2939 When the user aborts a request, Squid will check the
2940 quick_abort values to the amount of data transfered until
2941 then.
2942
2943 If the transfer has less than 'quick_abort_min' KB remaining,
2944 it will finish the retrieval.
2945
2946 If the transfer has more than 'quick_abort_max' KB remaining,
2947 it will abort the retrieval.
2948
2949 If more than 'quick_abort_pct' of the transfer has completed,
2950 it will finish the retrieval.
2951
2952 If you do not want any retrieval to continue after the client
2953 has aborted, set both 'quick_abort_min' and 'quick_abort_max'
2954 to '0 KB'.
2955
2956 If you want retrievals to always continue if they are being
2957 cached set 'quick_abort_min' to '-1 KB'.
2958DOC_END
60d096f4 2959
41bd17a4 2960NAME: read_ahead_gap
2961COMMENT: buffer-size
2962TYPE: b_int64_t
2963LOC: Config.readAheadGap
2964DEFAULT: 16 KB
2965DOC_START
2966 The amount of data the cache will buffer ahead of what has been
2967 sent to the client when retrieving an object from another server.
2968DOC_END
53e738c6 2969
41bd17a4 2970NAME: negative_ttl
ac9cc053 2971IFDEF: HTTP_VIOLATIONS
41bd17a4 2972COMMENT: time-units
2973TYPE: time_t
2974LOC: Config.negativeTtl
ac9cc053 2975DEFAULT: 0 seconds
41bd17a4 2976DOC_START
ac9cc053
AJ
2977 Set the Default Time-to-Live (TTL) for failed requests.
2978 Certain types of failures (such as "connection refused" and
2979 "404 Not Found") are able to be negatively-cached for a short time.
2980 Modern web servers should provide Expires: header, however if they
2981 do not this can provide a minimum TTL.
2982 The default is not to cache errors with unknown expiry details.
2983
2984 Note that this is different from negative caching of DNS lookups.
39956c7c
AJ
2985
2986 WARNING: Doing this VIOLATES the HTTP standard. Enabling
2987 this feature could make you liable for problems which it
2988 causes.
41bd17a4 2989DOC_END
53e738c6 2990
41bd17a4 2991NAME: positive_dns_ttl
2992COMMENT: time-units
2993TYPE: time_t
2994LOC: Config.positiveDnsTtl
2995DEFAULT: 6 hours
2996DOC_START
2997 Upper limit on how long Squid will cache positive DNS responses.
2998 Default is 6 hours (360 minutes). This directive must be set
2999 larger than negative_dns_ttl.
3000DOC_END
c4ab8329 3001
41bd17a4 3002NAME: negative_dns_ttl
3003COMMENT: time-units
3004TYPE: time_t
3005LOC: Config.negativeDnsTtl
3006DEFAULT: 1 minutes
3007DOC_START
3008 Time-to-Live (TTL) for negative caching of failed DNS lookups.
3009 This also sets the lower cache limit on positive lookups.
3010 Minimum value is 1 second, and it is not recommendable to go
3011 much below 10 seconds.
3012DOC_END
7df0bfd7 3013
41bd17a4 3014NAME: range_offset_limit
3015COMMENT: (bytes)
3016TYPE: b_int64_t
3017LOC: Config.rangeOffsetLimit
3018DEFAULT: 0 KB
3019DOC_START
3020 Sets a upper limit on how far into the the file a Range request
3021 may be to cause Squid to prefetch the whole file. If beyond this
3022 limit Squid forwards the Range request as it is and the result
3023 is NOT cached.
c4ab8329 3024
41bd17a4 3025 This is to stop a far ahead range request (lets say start at 17MB)
3026 from making Squid fetch the whole object up to that point before
3027 sending anything to the client.
a7ad6e4e 3028
41bd17a4 3029 A value of -1 causes Squid to always fetch the object from the
3030 beginning so it may cache the result. (2.0 style)
a7ad6e4e 3031
41bd17a4 3032 A value of 0 causes Squid to never fetch more than the
3033 client requested. (default)
3034DOC_END
d95b862f 3035
41bd17a4 3036NAME: minimum_expiry_time
3037COMMENT: (seconds)
3038TYPE: time_t
3039LOC: Config.minimum_expiry_time
3040DEFAULT: 60 seconds
3041DOC_START
3042 The minimum caching time according to (Expires - Date)
3043 Headers Squid honors if the object can't be revalidated
649fa918 3044 defaults to 60 seconds. In reverse proxy environments it
41bd17a4 3045 might be desirable to honor shorter object lifetimes. It
3046 is most likely better to make your server return a
3047 meaningful Last-Modified header however. In ESI environments
3048 where page fragments often have short lifetimes, this will
3049 often be best set to 0.
3050DOC_END
c68e9c6b 3051
41bd17a4 3052NAME: store_avg_object_size
3053COMMENT: (kbytes)
3e62bd58 3054TYPE: kb_int64_t
41bd17a4 3055DEFAULT: 13 KB
3056LOC: Config.Store.avgObjectSize
3057DOC_START
3058 Average object size, used to estimate number of objects your
3059 cache can hold. The default is 13 KB.
cccac0a2 3060DOC_END
3061
41bd17a4 3062NAME: store_objects_per_bucket
3063TYPE: int
3064DEFAULT: 20
3065LOC: Config.Store.objectsPerBucket
3066DOC_START
3067 Target number of objects per bucket in the store hash table.
3068 Lowering this value increases the total number of buckets and
3069 also the storage maintenance rate. The default is 20.
3070DOC_END
3071
3072COMMENT_START
3073 HTTP OPTIONS
3074 -----------------------------------------------------------------------------
3075COMMENT_END
3076
f04b37d8 3077NAME: request_header_max_size
3078COMMENT: (KB)
3079TYPE: b_size_t
3080DEFAULT: 20 KB
3081LOC: Config.maxRequestHeaderSize
3082DOC_START
3083 This specifies the maximum size for HTTP headers in a request.
3084 Request headers are usually relatively small (about 512 bytes).
3085 Placing a limit on the request header size will catch certain
3086 bugs (for example with persistent connections) and possibly
3087 buffer-overflow or denial-of-service attacks.
3088DOC_END
3089
3090NAME: reply_header_max_size
3091COMMENT: (KB)
3092TYPE: b_size_t
3093DEFAULT: 20 KB
3094LOC: Config.maxReplyHeaderSize
3095DOC_START
3096 This specifies the maximum size for HTTP headers in a reply.
3097 Reply headers are usually relatively small (about 512 bytes).
3098 Placing a limit on the reply header size will catch certain
3099 bugs (for example with persistent connections) and possibly
3100 buffer-overflow or denial-of-service attacks.
3101DOC_END
3102
3103NAME: request_body_max_size
3104COMMENT: (bytes)
3105TYPE: b_int64_t
3106DEFAULT: 0 KB
3107LOC: Config.maxRequestBodySize
3108DOC_START
3109 This specifies the maximum size for an HTTP request body.
3110 In other words, the maximum size of a PUT/POST request.
3111 A user who attempts to send a request with a body larger
3112 than this limit receives an "Invalid Request" error message.
3113 If you set this parameter to a zero (the default), there will
3114 be no limit imposed.
3115DOC_END
3116
41bd17a4 3117NAME: broken_posts
cccac0a2 3118TYPE: acl_access
cccac0a2 3119DEFAULT: none
41bd17a4 3120LOC: Config.accessList.brokenPosts
cccac0a2 3121DOC_START
41bd17a4 3122 A list of ACL elements which, if matched, causes Squid to send
3123 an extra CRLF pair after the body of a PUT/POST request.
cccac0a2 3124
41bd17a4 3125 Some HTTP servers has broken implementations of PUT/POST,
3126 and rely on an extra CRLF pair sent by some WWW clients.
cccac0a2 3127
41bd17a4 3128 Quote from RFC2616 section 4.1 on this matter:
cccac0a2 3129
41bd17a4 3130 Note: certain buggy HTTP/1.0 client implementations generate an
3131 extra CRLF's after a POST request. To restate what is explicitly
3132 forbidden by the BNF, an HTTP/1.1 client must not preface or follow
3133 a request with an extra CRLF.
cccac0a2 3134
41bd17a4 3135Example:
3136 acl buggy_server url_regex ^http://....
3137 broken_posts allow buggy_server
3138DOC_END
cccac0a2 3139
41bd17a4 3140NAME: via
3141IFDEF: HTTP_VIOLATIONS
3142COMMENT: on|off
3143TYPE: onoff
3144DEFAULT: on
3145LOC: Config.onoff.via
3146DOC_START
3147 If set (default), Squid will include a Via header in requests and
3148 replies as required by RFC2616.
3149DOC_END
4cc6eb12 3150
41bd17a4 3151NAME: ie_refresh
3152COMMENT: on|off
3153TYPE: onoff
3154LOC: Config.onoff.ie_refresh
3155DEFAULT: off
3156DOC_START
3157 Microsoft Internet Explorer up until version 5.5 Service
3158 Pack 1 has an issue with transparent proxies, wherein it
3159 is impossible to force a refresh. Turning this on provides
3160 a partial fix to the problem, by causing all IMS-REFRESH
3161 requests from older IE versions to check the origin server
3162 for fresh content. This reduces hit ratio by some amount
3163 (~10% in my experience), but allows users to actually get
3164 fresh content when they want it. Note because Squid
3165 cannot tell if the user is using 5.5 or 5.5SP1, the behavior
3166 of 5.5 is unchanged from old versions of Squid (i.e. a
3167 forced refresh is impossible). Newer versions of IE will,
3168 hopefully, continue to have the new behavior and will be
3169 handled based on that assumption. This option defaults to
3170 the old Squid behavior, which is better for hit ratios but
3171 worse for clients using IE, if they need to be able to
3172 force fresh content.
3173DOC_END
b9d7fe3e 3174
41bd17a4 3175NAME: vary_ignore_expire
3176COMMENT: on|off
3177TYPE: onoff
3178LOC: Config.onoff.vary_ignore_expire
3179DEFAULT: off
3180DOC_START
3181 Many HTTP servers supporting Vary gives such objects
3182 immediate expiry time with no cache-control header
3183 when requested by a HTTP/1.0 client. This option
3184 enables Squid to ignore such expiry times until
3185 HTTP/1.1 is fully implemented.
3186 WARNING: This may eventually cause some varying
3187 objects not intended for caching to get cached.
cccac0a2 3188DOC_END
c4ab8329 3189
41bd17a4 3190NAME: request_entities
3191TYPE: onoff
3192LOC: Config.onoff.request_entities
3193DEFAULT: off
3194DOC_START
3195 Squid defaults to deny GET and HEAD requests with request entities,
3196 as the meaning of such requests are undefined in the HTTP standard
3197 even if not explicitly forbidden.
0976f8db 3198
41bd17a4 3199 Set this directive to on if you have clients which insists
3200 on sending request entities in GET or HEAD requests. But be warned
3201 that there is server software (both proxies and web servers) which
3202 can fail to properly process this kind of request which may make you
3203 vulnerable to cache pollution attacks if enabled.
cccac0a2 3204DOC_END
6b53c392 3205
41bd17a4 3206NAME: request_header_access
3207IFDEF: HTTP_VIOLATIONS
3208TYPE: http_header_access[]
3209LOC: Config.request_header_access
cccac0a2 3210DEFAULT: none
cccac0a2 3211DOC_START
41bd17a4 3212 Usage: request_header_access header_name allow|deny [!]aclname ...
0976f8db 3213
41bd17a4 3214 WARNING: Doing this VIOLATES the HTTP standard. Enabling
3215 this feature could make you liable for problems which it
3216 causes.
0976f8db 3217
41bd17a4 3218 This option replaces the old 'anonymize_headers' and the
3219 older 'http_anonymizer' option with something that is much
3220 more configurable. This new method creates a list of ACLs
3221 for each header, allowing you very fine-tuned header
3222 mangling.
934b03fc 3223
41bd17a4 3224 This option only applies to request headers, i.e., from the
3225 client to the server.
5401aa8d 3226
41bd17a4 3227 You can only specify known headers for the header name.
3228 Other headers are reclassified as 'Other'. You can also
3229 refer to all the headers with 'All'.
5401aa8d 3230
41bd17a4 3231 For example, to achieve the same behavior as the old
3232 'http_anonymizer standard' option, you should use:
5401aa8d 3233
41bd17a4 3234 request_header_access From deny all
3235 request_header_access Referer deny all
3236 request_header_access Server deny all
3237 request_header_access User-Agent deny all
3238 request_header_access WWW-Authenticate deny all
3239 request_header_access Link deny all
5401aa8d 3240
41bd17a4 3241 Or, to reproduce the old 'http_anonymizer paranoid' feature
3242 you should use:
5401aa8d 3243
41bd17a4 3244 request_header_access Allow allow all
3245 request_header_access Authorization allow all
3246 request_header_access WWW-Authenticate allow all
3247 request_header_access Proxy-Authorization allow all
3248 request_header_access Proxy-Authenticate allow all
3249 request_header_access Cache-Control allow all
3250 request_header_access Content-Encoding allow all
3251 request_header_access Content-Length allow all
3252 request_header_access Content-Type allow all
3253 request_header_access Date allow all
3254 request_header_access Expires allow all
3255 request_header_access Host allow all
3256 request_header_access If-Modified-Since allow all
3257 request_header_access Last-Modified allow all
3258 request_header_access Location allow all
3259 request_header_access Pragma allow all
3260 request_header_access Accept allow all
3261 request_header_access Accept-Charset allow all
3262 request_header_access Accept-Encoding allow all
3263 request_header_access Accept-Language allow all
3264 request_header_access Content-Language allow all
3265 request_header_access Mime-Version allow all
3266 request_header_access Retry-After allow all
3267 request_header_access Title allow all
3268 request_header_access Connection allow all
3269 request_header_access Proxy-Connection allow all
3270 request_header_access All deny all
5401aa8d 3271
41bd17a4 3272 although many of those are HTTP reply headers, and so should be
3273 controlled with the reply_header_access directive.
5401aa8d 3274
41bd17a4 3275 By default, all headers are allowed (no anonymizing is
3276 performed).
5401aa8d 3277DOC_END
3278
41bd17a4 3279NAME: reply_header_access
3280IFDEF: HTTP_VIOLATIONS
3281TYPE: http_header_access[]
3282LOC: Config.reply_header_access
cccac0a2 3283DEFAULT: none
3284DOC_START
41bd17a4 3285 Usage: reply_header_access header_name allow|deny [!]aclname ...
934b03fc 3286
41bd17a4 3287 WARNING: Doing this VIOLATES the HTTP standard. Enabling
3288 this feature could make you liable for problems which it
3289 causes.
934b03fc 3290
41bd17a4 3291 This option only applies to reply headers, i.e., from the
3292 server to the client.
934b03fc 3293
41bd17a4 3294 This is the same as request_header_access, but in the other
3295 direction.
6b53c392 3296
41bd17a4 3297 This option replaces the old 'anonymize_headers' and the
3298 older 'http_anonymizer' option with something that is much
3299 more configurable. This new method creates a list of ACLs
3300 for each header, allowing you very fine-tuned header
3301 mangling.
cccac0a2 3302
41bd17a4 3303 You can only specify known headers for the header name.
3304 Other headers are reclassified as 'Other'. You can also
3305 refer to all the headers with 'All'.
cccac0a2 3306
41bd17a4 3307 For example, to achieve the same behavior as the old
3308 'http_anonymizer standard' option, you should use:
cccac0a2 3309
41bd17a4 3310 reply_header_access From deny all
3311 reply_header_access Referer deny all
3312 reply_header_access Server deny all
3313 reply_header_access User-Agent deny all
3314 reply_header_access WWW-Authenticate deny all
3315 reply_header_access Link deny all
cccac0a2 3316
41bd17a4 3317 Or, to reproduce the old 'http_anonymizer paranoid' feature
3318 you should use:
cccac0a2 3319
41bd17a4 3320 reply_header_access Allow allow all
3321 reply_header_access Authorization allow all
3322 reply_header_access WWW-Authenticate allow all
3323 reply_header_access Proxy-Authorization allow all
3324 reply_header_access Proxy-Authenticate allow all
3325 reply_header_access Cache-Control allow all
3326 reply_header_access Content-Encoding allow all
3327 reply_header_access Content-Length allow all
3328 reply_header_access Content-Type allow all
3329 reply_header_access Date allow all
3330 reply_header_access Expires allow all
3331 reply_header_access Host allow all
3332 reply_header_access If-Modified-Since allow all
3333 reply_header_access Last-Modified allow all
3334 reply_header_access Location allow all
3335 reply_header_access Pragma allow all
3336 reply_header_access Accept allow all
3337 reply_header_access Accept-Charset allow all
3338 reply_header_access Accept-Encoding allow all
3339 reply_header_access Accept-Language allow all
3340 reply_header_access Content-Language allow all
3341 reply_header_access Mime-Version allow all
3342 reply_header_access Retry-After allow all
3343 reply_header_access Title allow all
3344 reply_header_access Connection allow all
3345 reply_header_access Proxy-Connection allow all
3346 reply_header_access All deny all
cccac0a2 3347
41bd17a4 3348 although the HTTP request headers won't be usefully controlled
3349 by this directive -- see request_header_access for details.
cccac0a2 3350
41bd17a4 3351 By default, all headers are allowed (no anonymizing is
3352 performed).
cccac0a2 3353DOC_END
3354
41bd17a4 3355NAME: header_replace
3356IFDEF: HTTP_VIOLATIONS
3357TYPE: http_header_replace[]
3358LOC: Config.request_header_access
cccac0a2 3359DEFAULT: none
41bd17a4 3360DOC_START
3361 Usage: header_replace header_name message
3362 Example: header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit)
cccac0a2 3363
41bd17a4 3364 This option allows you to change the contents of headers
3365 denied with header_access above, by replacing them with
3366 some fixed string. This replaces the old fake_user_agent
3367 option.
cccac0a2 3368
41bd17a4 3369 This only applies to request headers, not reply headers.
cccac0a2 3370
41bd17a4 3371 By default, headers are removed if denied.
3372DOC_END
cccac0a2 3373
41bd17a4 3374NAME: relaxed_header_parser
3375COMMENT: on|off|warn
3376TYPE: tristate
3377LOC: Config.onoff.relaxed_header_parser
3378DEFAULT: on
3379DOC_START
3380 In the default "on" setting Squid accepts certain forms
3381 of non-compliant HTTP messages where it is unambiguous
3382 what the sending application intended even if the message
3383 is not correctly formatted. The messages is then normalized
3384 to the correct form when forwarded by Squid.
cccac0a2 3385
41bd17a4 3386 If set to "warn" then a warning will be emitted in cache.log
3387 each time such HTTP error is encountered.
cccac0a2 3388
41bd17a4 3389 If set to "off" then such HTTP errors will cause the request
3390 or response to be rejected.
3391DOC_END
7d90757b 3392
41bd17a4 3393COMMENT_START
3394 TIMEOUTS
3395 -----------------------------------------------------------------------------
3396COMMENT_END
3397
3398NAME: forward_timeout
3399COMMENT: time-units
3400TYPE: time_t
3401LOC: Config.Timeout.forward
3402DEFAULT: 4 minutes
3403DOC_START
3404 This parameter specifies how long Squid should at most attempt in
3405 finding a forwarding path for the request before giving up.
cccac0a2 3406DOC_END
3407
41bd17a4 3408NAME: connect_timeout
3409COMMENT: time-units
3410TYPE: time_t
3411LOC: Config.Timeout.connect
3412DEFAULT: 1 minute
057f5854 3413DOC_START
41bd17a4 3414 This parameter specifies how long to wait for the TCP connect to
3415 the requested server or peer to complete before Squid should
3416 attempt to find another path where to forward the request.
057f5854 3417DOC_END
3418
41bd17a4 3419NAME: peer_connect_timeout
3420COMMENT: time-units
3421TYPE: time_t
3422LOC: Config.Timeout.peer_connect
3423DEFAULT: 30 seconds
cccac0a2 3424DOC_START
41bd17a4 3425 This parameter specifies how long to wait for a pending TCP
3426 connection to a peer cache. The default is 30 seconds. You
3427 may also set different timeout values for individual neighbors
3428 with the 'connect-timeout' option on a 'cache_peer' line.
3429DOC_END
7f7db318 3430
41bd17a4 3431NAME: read_timeout
3432COMMENT: time-units
3433TYPE: time_t
3434LOC: Config.Timeout.read
3435DEFAULT: 15 minutes
3436DOC_START
3437 The read_timeout is applied on server-side connections. After
3438 each successful read(), the timeout will be extended by this
3439 amount. If no data is read again after this amount of time,
3440 the request is aborted and logged with ERR_READ_TIMEOUT. The
3441 default is 15 minutes.
3442DOC_END
cccac0a2 3443
41bd17a4 3444NAME: request_timeout
3445TYPE: time_t
3446LOC: Config.Timeout.request
3447DEFAULT: 5 minutes
3448DOC_START
3449 How long to wait for an HTTP request after initial
3450 connection establishment.
3451DOC_END
cccac0a2 3452
41bd17a4 3453NAME: persistent_request_timeout
3454TYPE: time_t
3455LOC: Config.Timeout.persistent_request
3456DEFAULT: 2 minutes
3457DOC_START
3458 How long to wait for the next HTTP request on a persistent
3459 connection after the previous request completes.
3460DOC_END
cccac0a2 3461
41bd17a4 3462NAME: client_lifetime
3463COMMENT: time-units
3464TYPE: time_t
3465LOC: Config.Timeout.lifetime
3466DEFAULT: 1 day
3467DOC_START
3468 The maximum amount of time a client (browser) is allowed to
3469 remain connected to the cache process. This protects the Cache
3470 from having a lot of sockets (and hence file descriptors) tied up
3471 in a CLOSE_WAIT state from remote clients that go away without
3472 properly shutting down (either because of a network failure or
3473 because of a poor client implementation). The default is one
3474 day, 1440 minutes.
7d90757b 3475
41bd17a4 3476 NOTE: The default value is intended to be much larger than any
3477 client would ever need to be connected to your cache. You
3478 should probably change client_lifetime only as a last resort.
3479 If you seem to have many client connections tying up
3480 filedescriptors, we recommend first tuning the read_timeout,
3481 request_timeout, persistent_request_timeout and quick_abort values.
cccac0a2 3482DOC_END
3483
41bd17a4 3484NAME: half_closed_clients
3485TYPE: onoff
3486LOC: Config.onoff.half_closed_clients
3487DEFAULT: on
4eb368f9 3488DOC_START
41bd17a4 3489 Some clients may shutdown the sending side of their TCP
3490 connections, while leaving their receiving sides open. Sometimes,
3491 Squid can not tell the difference between a half-closed and a
3492 fully-closed TCP connection. By default, half-closed client
3493 connections are kept open until a read(2) or write(2) on the
3494 socket returns an error. Change this option to 'off' and Squid
3495 will immediately close client connections when read(2) returns
3496 "no more data to read."
4eb368f9 3497DOC_END
3498
41bd17a4 3499NAME: pconn_timeout
3500TYPE: time_t
3501LOC: Config.Timeout.pconn
3502DEFAULT: 1 minute
cccac0a2 3503DOC_START
41bd17a4 3504 Timeout for idle persistent connections to servers and other
3505 proxies.
3506DOC_END
cccac0a2 3507
41bd17a4 3508NAME: ident_timeout
3509TYPE: time_t
3510IFDEF: USE_IDENT
3511LOC: Config.Timeout.ident
3512DEFAULT: 10 seconds
3513DOC_START
3514 Maximum time to wait for IDENT lookups to complete.
cccac0a2 3515
41bd17a4 3516 If this is too high, and you enabled IDENT lookups from untrusted
3517 users, you might be susceptible to denial-of-service by having
3518 many ident requests going at once.
cccac0a2 3519DOC_END
3520
41bd17a4 3521NAME: shutdown_lifetime
3522COMMENT: time-units
3523TYPE: time_t
3524LOC: Config.shutdownLifetime
3525DEFAULT: 30 seconds
cccac0a2 3526DOC_START
41bd17a4 3527 When SIGTERM or SIGHUP is received, the cache is put into
3528 "shutdown pending" mode until all active sockets are closed.
3529 This value is the lifetime to set for all open descriptors
3530 during shutdown mode. Any active clients after this many
3531 seconds will receive a 'timeout' message.
cccac0a2 3532DOC_END
0976f8db 3533
cccac0a2 3534COMMENT_START
3535 ADMINISTRATIVE PARAMETERS
3536 -----------------------------------------------------------------------------
3537COMMENT_END
3538
3539NAME: cache_mgr
3540TYPE: string
3541DEFAULT: webmaster
3542LOC: Config.adminEmail
3543DOC_START
3544 Email-address of local cache manager who will receive
3545 mail if the cache dies. The default is "webmaster."
3546DOC_END
3547
abacf776 3548NAME: mail_from
3549TYPE: string
3550DEFAULT: none
3551LOC: Config.EmailFrom
3552DOC_START
3553 From: email-address for mail sent when the cache dies.
3554 The default is to use 'appname@unique_hostname'.
b8c0c06d 3555 Default appname value is "squid", can be changed into
abacf776 3556 src/globals.h before building squid.
3557DOC_END
3558
d084bf20 3559NAME: mail_program
3560TYPE: eol
3561DEFAULT: mail
3562LOC: Config.EmailProgram
3563DOC_START
3564 Email program used to send mail if the cache dies.
846a5e31 3565 The default is "mail". The specified program must comply
d084bf20 3566 with the standard Unix mail syntax:
846a5e31 3567 mail-program recipient < mailfile
3568
d084bf20 3569 Optional command line options can be specified.
3570DOC_END
3571
cccac0a2 3572NAME: cache_effective_user
3573TYPE: string
5483d916 3574DEFAULT: @DEFAULT_CACHE_EFFECTIVE_USER@
cccac0a2 3575LOC: Config.effectiveUser
e3d74828 3576DOC_START
3577 If you start Squid as root, it will change its effective/real
3578 UID/GID to the user specified below. The default is to change
5483d916 3579 to UID of @DEFAULT_CACHE_EFFECTIVE_USER@.
64e288bd 3580 see also; cache_effective_group
e3d74828 3581DOC_END
3582
cccac0a2 3583NAME: cache_effective_group
3584TYPE: string
3585DEFAULT: none
3586LOC: Config.effectiveGroup
3587DOC_START
64e288bd 3588 Squid sets the GID to the effective user's default group ID
3589 (taken from the password file) and supplementary group list
3590 from the groups membership.
3591
e3d74828 3592 If you want Squid to run with a specific GID regardless of
3593 the group memberships of the effective user then set this
3594 to the group (or GID) you want Squid to run as. When set
64e288bd 3595 all other group privileges of the effective user are ignored
e3d74828 3596 and only this GID is effective. If Squid is not started as
64e288bd 3597 root the user starting Squid MUST be member of the specified
e3d74828 3598 group.
64e288bd 3599
3600 This option is not recommended by the Squid Team.
3601 Our preference is for administrators to configure a secure
3602 user account for squid with UID/GID matching system policies.
cccac0a2 3603DOC_END
3604
d3caee79 3605NAME: httpd_suppress_version_string
3606COMMENT: on|off
3607TYPE: onoff
3608DEFAULT: off
3609LOC: Config.onoff.httpd_suppress_version_string
3610DOC_START
3611 Suppress Squid version string info in HTTP headers and HTML error pages.
3612DOC_END
3613
cccac0a2 3614NAME: visible_hostname
3615TYPE: string
3616LOC: Config.visibleHostname
3617DEFAULT: none
3618DOC_START
3619 If you want to present a special hostname in error messages, etc,
7f7db318 3620 define this. Otherwise, the return value of gethostname()
cccac0a2 3621 will be used. If you have multiple caches in a cluster and
3622 get errors about IP-forwarding you must set them to have individual
3623 names with this setting.
3624DOC_END
3625
cccac0a2 3626NAME: unique_hostname
3627TYPE: string
3628LOC: Config.uniqueHostname
3629DEFAULT: none
3630DOC_START
3631 If you want to have multiple machines with the same
7f7db318 3632 'visible_hostname' you must give each machine a different
3633 'unique_hostname' so forwarding loops can be detected.
cccac0a2 3634DOC_END
3635
cccac0a2 3636NAME: hostname_aliases
3637TYPE: wordlist
3638LOC: Config.hostnameAliases
3639DEFAULT: none
3640DOC_START
7f7db318 3641 A list of other DNS names your cache has.
cccac0a2 3642DOC_END
0976f8db 3643
c642c141
AJ
3644NAME: umask
3645TYPE: int
3646LOC: Config.umask
3647DEFAULT: 027
3648DOC_START
3649 Minimum umask which should be enforced while the proxy
3650 is running, in addition to the umask set at startup.
3651
3652 For a traditional octal representation of umasks, start
3653 your value with 0.
3654DOC_END
3655
cccac0a2 3656COMMENT_START
3657 OPTIONS FOR THE CACHE REGISTRATION SERVICE
3658 -----------------------------------------------------------------------------
3659
3660 This section contains parameters for the (optional) cache
3661 announcement service. This service is provided to help
3662 cache administrators locate one another in order to join or
3663 create cache hierarchies.
3664
3665 An 'announcement' message is sent (via UDP) to the registration
3666 service by Squid. By default, the announcement message is NOT
3667 SENT unless you enable it with 'announce_period' below.
3668
3669 The announcement message includes your hostname, plus the
3670 following information from this configuration file:
3671
3672 http_port
3673 icp_port
3674 cache_mgr
3675
3676 All current information is processed regularly and made
3677 available on the Web at http://www.ircache.net/Cache/Tracker/.
3678COMMENT_END
3679
3680NAME: announce_period
3681TYPE: time_t
3682LOC: Config.Announce.period
3683DEFAULT: 0
3684DOC_START
3685 This is how frequently to send cache announcements. The
3686 default is `0' which disables sending the announcement
3687 messages.
3688
3689 To enable announcing your cache, just uncomment the line
3690 below.
3691
3692NOCOMMENT_START
9e7dbc51 3693#To enable announcing your cache, just uncomment the line below.
3694#announce_period 1 day
cccac0a2 3695NOCOMMENT_END
3696DOC_END
3697
cccac0a2 3698NAME: announce_host
3699TYPE: string
3700DEFAULT: tracker.ircache.net
3701LOC: Config.Announce.host
3702DOC_NONE
3703
3704NAME: announce_file
3705TYPE: string
3706DEFAULT: none
3707LOC: Config.Announce.file
3708DOC_NONE
3709
3710NAME: announce_port
3711TYPE: ushort
3712DEFAULT: 3131
3713LOC: Config.Announce.port
3714DOC_START
3715 announce_host and announce_port set the hostname and port
3716 number where the registration message will be sent.
3717
3718 Hostname will default to 'tracker.ircache.net' and port will
3719 default default to 3131. If the 'filename' argument is given,
3720 the contents of that file will be included in the announce
3721 message.
3722DOC_END
3723
8d6275c0 3724COMMENT_START
3725 HTTPD-ACCELERATOR OPTIONS
3726 -----------------------------------------------------------------------------
3727COMMENT_END
3728
cccac0a2 3729NAME: httpd_accel_surrogate_id
f41735ea 3730IFDEF: USE_SQUID_ESI
cccac0a2 3731TYPE: string
3732LOC: Config.Accel.surrogate_id
3733DEFAULT: unset-id
3734DOC_START
3735 Surrogates (http://www.esi.org/architecture_spec_1.0.html)
3736 need an identification token to allow control targeting. Because
3737 a farm of surrogates may all perform the same tasks, they may share
3738 an identification token.
3739DOC_END
3740
3741NAME: http_accel_surrogate_remote
f41735ea 3742IFDEF: USE_SQUID_ESI
cccac0a2 3743COMMENT: on|off
3744TYPE: onoff
3745DEFAULT: off
3746LOC: Config.onoff.surrogate_is_remote
3747DOC_START
3748 Remote surrogates (such as those in a CDN) honour Surrogate-Control: no-store-remote.
3749 Set this to on to have squid behave as a remote surrogate.
3750DOC_END
3751
3752NAME: esi_parser
f41735ea 3753IFDEF: USE_SQUID_ESI
964b44c3 3754COMMENT: libxml2|expat|custom
cccac0a2 3755TYPE: string
3756LOC: ESIParser::Type
3757DEFAULT: custom
3758DOC_START
3759 ESI markup is not strictly XML compatible. The custom ESI parser
3760 will give higher performance, but cannot handle non ASCII character
3761 encodings.
3762DOC_END
0976f8db 3763
9edd9041 3764COMMENT_START
8d6275c0 3765 DELAY POOL PARAMETERS
9edd9041 3766 -----------------------------------------------------------------------------
3767COMMENT_END
3768
3769NAME: delay_pools
3770TYPE: delay_pool_count
3771DEFAULT: 0
3772IFDEF: DELAY_POOLS
3773LOC: Config.Delay
3774DOC_START
3775 This represents the number of delay pools to be used. For example,
3776 if you have one class 2 delay pool and one class 3 delays pool, you
3777 have a total of 2 delay pools.
3778DOC_END
3779
3780NAME: delay_class
3781TYPE: delay_pool_class
3782DEFAULT: none
3783IFDEF: DELAY_POOLS
3784LOC: Config.Delay
3785DOC_START
3786 This defines the class of each delay pool. There must be exactly one
3787 delay_class line for each delay pool. For example, to define two
3788 delay pools, one of class 2 and one of class 3, the settings above
3789 and here would be:
3790
3791Example:
3792 delay_pools 4 # 4 delay pools
3793 delay_class 1 2 # pool 1 is a class 2 pool
3794 delay_class 2 3 # pool 2 is a class 3 pool
3795 delay_class 3 4 # pool 3 is a class 4 pool
3796 delay_class 4 5 # pool 4 is a class 5 pool
3797
3798 The delay pool classes are:
3799
3800 class 1 Everything is limited by a single aggregate
3801 bucket.
3802
3803 class 2 Everything is limited by a single aggregate
3804 bucket as well as an "individual" bucket chosen
3805 from bits 25 through 32 of the IP address.
3806
3807 class 3 Everything is limited by a single aggregate
3808 bucket as well as a "network" bucket chosen
3809 from bits 17 through 24 of the IP address and a
3810 "individual" bucket chosen from bits 17 through
3811 32 of the IP address.
3812
3813 class 4 Everything in a class 3 delay pool, with an
3814 additional limit on a per user basis. This
3815 only takes effect if the username is established
3816 in advance - by forcing authentication in your
3817 http_access rules.
3818
3819 class 5 Requests are grouped according their tag (see
3820 external_acl's tag= reply).
3821
3822 NOTE: If an IP address is a.b.c.d
3823 -> bits 25 through 32 are "d"
3824 -> bits 17 through 24 are "c"
3825 -> bits 17 through 32 are "c * 256 + d"
3826DOC_END
3827
3828NAME: delay_access
3829TYPE: delay_pool_access
3830DEFAULT: none
3831IFDEF: DELAY_POOLS
3832LOC: Config.Delay
3833DOC_START
3834 This is used to determine which delay pool a request falls into.
3835
3836 delay_access is sorted per pool and the matching starts with pool 1,
3837 then pool 2, ..., and finally pool N. The first delay pool where the
3838 request is allowed is selected for the request. If it does not allow
3839 the request to any pool then the request is not delayed (default).
3840
3841 For example, if you want some_big_clients in delay
3842 pool 1 and lotsa_little_clients in delay pool 2:
3843
3844Example:
3845 delay_access 1 allow some_big_clients
3846 delay_access 1 deny all
3847 delay_access 2 allow lotsa_little_clients
3848 delay_access 2 deny all
3849 delay_access 3 allow authenticated_clients
3850DOC_END
3851
3852NAME: delay_parameters
3853TYPE: delay_pool_rates
3854DEFAULT: none
3855IFDEF: DELAY_POOLS
3856LOC: Config.Delay
3857DOC_START
3858 This defines the parameters for a delay pool. Each delay pool has
3859 a number of "buckets" associated with it, as explained in the
3860 description of delay_class. For a class 1 delay pool, the syntax is:
3861
3862delay_parameters pool aggregate
3863
3864 For a class 2 delay pool:
3865
3866delay_parameters pool aggregate individual
3867
3868 For a class 3 delay pool:
3869
3870delay_parameters pool aggregate network individual
3871
3872 For a class 4 delay pool:
3873
3874delay_parameters pool aggregate network individual user
3875
3876 For a class 5 delay pool:
3877
3878delay_parameters pool tag
3879
3880 The variables here are:
3881
3882 pool a pool number - ie, a number between 1 and the
3883 number specified in delay_pools as used in
3884 delay_class lines.
3885
3886 aggregate the "delay parameters" for the aggregate bucket
3887 (class 1, 2, 3).
3888
3889 individual the "delay parameters" for the individual
3890 buckets (class 2, 3).
3891
3892 network the "delay parameters" for the network buckets
3893 (class 3).
3894
3895 user the delay parameters for the user buckets
3896 (class 4).
3897
3898 tag the delay parameters for the tag buckets
3899 (class 5).
3900
3901 A pair of delay parameters is written restore/maximum, where restore is
3902 the number of bytes (not bits - modem and network speeds are usually
3903 quoted in bits) per second placed into the bucket, and maximum is the
3904 maximum number of bytes which can be in the bucket at any time.
3905
3906 For example, if delay pool number 1 is a class 2 delay pool as in the
3907 above example, and is being used to strictly limit each host to 64kbps
3908 (plus overheads), with no overall limit, the line is:
3909
3910delay_parameters 1 -1/-1 8000/8000
3911
3912 Note that the figure -1 is used to represent "unlimited".
3913
3914 And, if delay pool number 2 is a class 3 delay pool as in the above
3915 example, and you want to limit it to a total of 256kbps (strict limit)
3916 with each 8-bit network permitted 64kbps (strict limit) and each
3917 individual host permitted 4800bps with a bucket maximum size of 64kb
3918 to permit a decent web page to be downloaded at a decent speed
3919 (if the network is not being limited due to overuse) but slow down
3920 large downloads more significantly:
3921
3922delay_parameters 2 32000/32000 8000/8000 600/8000
3923
3924 There must be one delay_parameters line for each delay pool.
3925
3926 Finally, for a class 4 delay pool as in the example - each user will
3927 be limited to 128Kb no matter how many workstations they are logged into.:
3928
3929delay_parameters 4 32000/32000 8000/8000 600/64000 16000/16000
3930DOC_END
3931
3932NAME: delay_initial_bucket_level
3933COMMENT: (percent, 0-100)
3934TYPE: ushort
3935DEFAULT: 50
3936IFDEF: DELAY_POOLS
3937LOC: Config.Delay.initial
3938DOC_START
3939 The initial bucket percentage is used to determine how much is put
3940 in each bucket when squid starts, is reconfigured, or first notices
3941 a host accessing it (in class 2 and class 3, individual hosts and
3942 networks only have buckets associated with them once they have been
3943 "seen" by squid).
3944DOC_END
3945
cccac0a2 3946COMMENT_START
8d6275c0 3947 WCCPv1 AND WCCPv2 CONFIGURATION OPTIONS
cccac0a2 3948 -----------------------------------------------------------------------------
3949COMMENT_END
3950
8d6275c0 3951NAME: wccp_router
3952TYPE: address
3953LOC: Config.Wccp.router
3954DEFAULT: 0.0.0.0
3955IFDEF: USE_WCCP
3956DOC_NONE
3957NAME: wccp2_router
cc192b50 3958TYPE: IPAddress_list
8d6275c0 3959LOC: Config.Wccp2.router
cccac0a2 3960DEFAULT: none
8d6275c0 3961IFDEF: USE_WCCPv2
cccac0a2 3962DOC_START
8d6275c0 3963 Use this option to define your WCCP ``home'' router for
3964 Squid.
cccac0a2 3965
8d6275c0 3966 wccp_router supports a single WCCP(v1) router
cccac0a2 3967
8d6275c0 3968 wccp2_router supports multiple WCCPv2 routers
cccac0a2 3969
8d6275c0 3970 only one of the two may be used at the same time and defines
3971 which version of WCCP to use.
3972DOC_END
3973
3974NAME: wccp_version
cccac0a2 3975TYPE: int
8d6275c0 3976LOC: Config.Wccp.version
3977DEFAULT: 4
3978IFDEF: USE_WCCP
cccac0a2 3979DOC_START
8d6275c0 3980 This directive is only relevant if you need to set up WCCP(v1)
3981 to some very old and end-of-life Cisco routers. In all other
3982 setups it must be left unset or at the default setting.
3983 It defines an internal version in the WCCP(v1) protocol,
3984 with version 4 being the officially documented protocol.
cccac0a2 3985
8d6275c0 3986 According to some users, Cisco IOS 11.2 and earlier only
3987 support WCCP version 3. If you're using that or an earlier
3988 version of IOS, you may need to change this value to 3, otherwise
3989 do not specify this parameter.
cccac0a2 3990DOC_END
3991
8d6275c0 3992NAME: wccp2_rebuild_wait
3993TYPE: onoff
3994LOC: Config.Wccp2.rebuildwait
3995DEFAULT: on
3996IFDEF: USE_WCCPv2
3997DOC_START
3998 If this is enabled Squid will wait for the cache dir rebuild to finish
3999 before sending the first wccp2 HereIAm packet
4000DOC_END
cccac0a2 4001
8d6275c0 4002NAME: wccp2_forwarding_method
4003TYPE: int
4004LOC: Config.Wccp2.forwarding_method
4005DEFAULT: 1
4006IFDEF: USE_WCCPv2
cccac0a2 4007DOC_START
699acd19 4008 WCCP2 allows the setting of forwarding methods between the
8d6275c0 4009 router/switch and the cache. Valid values are as follows:
cccac0a2 4010
8d6275c0 4011 1 - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
4012 2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
cccac0a2 4013
8d6275c0 4014 Currently (as of IOS 12.4) cisco routers only support GRE.
4015 Cisco switches only support the L2 redirect assignment method.
cccac0a2 4016DOC_END
4017
8d6275c0 4018NAME: wccp2_return_method
4019TYPE: int
4020LOC: Config.Wccp2.return_method
4021DEFAULT: 1
4022IFDEF: USE_WCCPv2
cccac0a2 4023DOC_START
699acd19 4024 WCCP2 allows the setting of return methods between the
8d6275c0 4025 router/switch and the cache for packets that the cache
4026 decides not to handle. Valid values are as follows:
cccac0a2 4027
8d6275c0 4028 1 - GRE encapsulation (forward the packet in a GRE/WCCP tunnel)
4029 2 - L2 redirect (forward the packet using Layer 2/MAC rewriting)
cccac0a2 4030
8d6275c0 4031 Currently (as of IOS 12.4) cisco routers only support GRE.
4032 Cisco switches only support the L2 redirect assignment.
cccac0a2 4033
699acd19 4034 If the "ip wccp redirect exclude in" command has been
8d6275c0 4035 enabled on the cache interface, then it is still safe for
4036 the proxy server to use a l2 redirect method even if this
4037 option is set to GRE.
cccac0a2 4038DOC_END
4039
8d6275c0 4040NAME: wccp2_assignment_method
4041TYPE: int
4042LOC: Config.Wccp2.assignment_method
4043DEFAULT: 1
4044IFDEF: USE_WCCPv2
cccac0a2 4045DOC_START
8d6275c0 4046 WCCP2 allows the setting of methods to assign the WCCP hash
4047 Valid values are as follows:
cccac0a2 4048
8d6275c0 4049 1 - Hash assignment
4050 2 - Mask assignment
cccac0a2 4051
8d6275c0 4052 As a general rule, cisco routers support the hash assignment method
4053 and cisco switches support the mask assignment method.
4054DOC_END
cccac0a2 4055
8d6275c0 4056NAME: wccp2_service
4057TYPE: wccp2_service
4058LOC: Config.Wccp2.info
4059DEFAULT: none
4060DEFAULT_IF_NONE: standard 0
4061IFDEF: USE_WCCPv2
4062DOC_START
4063 WCCP2 allows for multiple traffic services. There are two
4064 types: "standard" and "dynamic". The standard type defines
4065 one service id - http (id 0). The dynamic service ids can be from
4066 51 to 255 inclusive. In order to use a dynamic service id
4067 one must define the type of traffic to be redirected; this is done
4068 using the wccp2_service_info option.
4069
4070 The "standard" type does not require a wccp2_service_info option,
4071 just specifying the service id will suffice.
4072
4073 MD5 service authentication can be enabled by adding
4074 "password=<password>" to the end of this service declaration.
4075
4076 Examples:
4077
4078 wccp2_service standard 0 # for the 'web-cache' standard service
4079 wccp2_service dynamic 80 # a dynamic service type which will be
4080 # fleshed out with subsequent options.
4081 wccp2_service standard 0 password=foo
4082
4083DOC_END
4084
4085NAME: wccp2_service_info
4086TYPE: wccp2_service_info
4087LOC: Config.Wccp2.info
4088DEFAULT: none
4089IFDEF: USE_WCCPv2
4090DOC_START
4091 Dynamic WCCPv2 services require further information to define the
4092 traffic you wish to have diverted.
4093
4094 The format is:
4095
4096 wccp2_service_info <id> protocol=<protocol> flags=<flag>,<flag>..
4097 priority=<priority> ports=<port>,<port>..
4098
4099 The relevant WCCPv2 flags:
4100 + src_ip_hash, dst_ip_hash
005fe566 4101 + source_port_hash, dst_port_hash
8d6275c0 4102 + src_ip_alt_hash, dst_ip_alt_hash
4103 + src_port_alt_hash, dst_port_alt_hash
4104 + ports_source
4105
4106 The port list can be one to eight entries.
4107
4108 Example:
4109
4110 wccp2_service_info 80 protocol=tcp flags=src_ip_hash,ports_source
4111 priority=240 ports=80
4112
4113 Note: the service id must have been defined by a previous
4114 'wccp2_service dynamic <id>' entry.
4115DOC_END
4116
4117NAME: wccp2_weight
4118TYPE: int
4119LOC: Config.Wccp2.weight
4120DEFAULT: 10000
4121IFDEF: USE_WCCPv2
4122DOC_START
4123 Each cache server gets assigned a set of the destination
4124 hash proportional to their weight.
4125DOC_END
4126
4127NAME: wccp_address
4128TYPE: address
4129LOC: Config.Wccp.address
4130DEFAULT: 0.0.0.0
4131IFDEF: USE_WCCP
4132DOC_NONE
4133NAME: wccp2_address
4134TYPE: address
4135LOC: Config.Wccp2.address
4136DEFAULT: 0.0.0.0
4137IFDEF: USE_WCCPv2
4138DOC_START
4139 Use this option if you require WCCP to use a specific
4140 interface address.
4141
4142 The default behavior is to not bind to any specific address.
4143DOC_END
4144
4145COMMENT_START
4146 PERSISTENT CONNECTION HANDLING
4147 -----------------------------------------------------------------------------
4148
4149 Also see "pconn_timeout" in the TIMEOUTS section
4150COMMENT_END
4151
4152NAME: client_persistent_connections
4153TYPE: onoff
4154LOC: Config.onoff.client_pconns
4155DEFAULT: on
4156DOC_NONE
4157
4158NAME: server_persistent_connections
4159TYPE: onoff
4160LOC: Config.onoff.server_pconns
4161DEFAULT: on
4162DOC_START
4163 Persistent connection support for clients and servers. By
4164 default, Squid uses persistent connections (when allowed)
4165 with its clients and servers. You can use these options to
4166 disable persistent connections with clients and/or servers.
4167DOC_END
4168
4169NAME: persistent_connection_after_error
4170TYPE: onoff
4171LOC: Config.onoff.error_pconns
4172DEFAULT: off
4173DOC_START
4174 With this directive the use of persistent connections after
4175 HTTP errors can be disabled. Useful if you have clients
4176 who fail to handle errors on persistent connections proper.
4177DOC_END
4178
4179NAME: detect_broken_pconn
4180TYPE: onoff
4181LOC: Config.onoff.detect_broken_server_pconns
4182DEFAULT: off
4183DOC_START
4184 Some servers have been found to incorrectly signal the use
4185 of HTTP/1.0 persistent connections even on replies not
4186 compatible, causing significant delays. This server problem
4187 has mostly been seen on redirects.
4188
4189 By enabling this directive Squid attempts to detect such
4190 broken replies and automatically assume the reply is finished
4191 after 10 seconds timeout.
4192DOC_END
4193
4194COMMENT_START
4195 CACHE DIGEST OPTIONS
4196 -----------------------------------------------------------------------------
4197COMMENT_END
4198
4199NAME: digest_generation
4200IFDEF: USE_CACHE_DIGESTS
4201TYPE: onoff
4202LOC: Config.onoff.digest_generation
4203DEFAULT: on
4204DOC_START
4205 This controls whether the server will generate a Cache Digest
4206 of its contents. By default, Cache Digest generation is
13e917b5 4207 enabled if Squid is compiled with --enable-cache-digests defined.
8d6275c0 4208DOC_END
4209
4210NAME: digest_bits_per_entry
4211IFDEF: USE_CACHE_DIGESTS
4212TYPE: int
4213LOC: Config.digest.bits_per_entry
4214DEFAULT: 5
4215DOC_START
4216 This is the number of bits of the server's Cache Digest which
4217 will be associated with the Digest entry for a given HTTP
4218 Method and URL (public key) combination. The default is 5.
4219DOC_END
4220
4221NAME: digest_rebuild_period
4222IFDEF: USE_CACHE_DIGESTS
4223COMMENT: (seconds)
4224TYPE: time_t
4225LOC: Config.digest.rebuild_period
4226DEFAULT: 1 hour
4227DOC_START
749ceff8 4228 This is the wait time between Cache Digest rebuilds.
8d6275c0 4229DOC_END
4230
4231NAME: digest_rewrite_period
4232COMMENT: (seconds)
4233IFDEF: USE_CACHE_DIGESTS
4234TYPE: time_t
4235LOC: Config.digest.rewrite_period
4236DEFAULT: 1 hour
4237DOC_START
749ceff8 4238 This is the wait time between Cache Digest writes to
8d6275c0 4239 disk.
4240DOC_END
4241
4242NAME: digest_swapout_chunk_size
4243COMMENT: (bytes)
4244TYPE: b_size_t
4245IFDEF: USE_CACHE_DIGESTS
4246LOC: Config.digest.swapout_chunk_size
4247DEFAULT: 4096 bytes
4248DOC_START
4249 This is the number of bytes of the Cache Digest to write to
4250 disk at a time. It defaults to 4096 bytes (4KB), the Squid
4251 default swap page.
4252DOC_END
4253
4254NAME: digest_rebuild_chunk_percentage
4255COMMENT: (percent, 0-100)
4256IFDEF: USE_CACHE_DIGESTS
4257TYPE: int
4258LOC: Config.digest.rebuild_chunk_percentage
4259DEFAULT: 10
4260DOC_START
4261 This is the percentage of the Cache Digest to be scanned at a
4262 time. By default it is set to 10% of the Cache Digest.
4263DOC_END
4264
1db9eacd 4265COMMENT_START
5473c134 4266 SNMP OPTIONS
1db9eacd 4267 -----------------------------------------------------------------------------
4268COMMENT_END
4269
5473c134 4270NAME: snmp_port
4271TYPE: ushort
4272LOC: Config.Port.snmp
87630341 4273DEFAULT: 0
5473c134 4274IFDEF: SQUID_SNMP
8d6275c0 4275DOC_START
87630341 4276 The port number where Squid listens for SNMP requests. To enable
4277 SNMP support set this to a suitable port number. Port number
4278 3401 is often used for the Squid SNMP agent. By default it's
4279 set to "0" (disabled)
4280NOCOMMENT_START
4281#snmp_port 3401
4282NOCOMMENT_END
8d6275c0 4283DOC_END
4284
5473c134 4285NAME: snmp_access
4286TYPE: acl_access
4287LOC: Config.accessList.snmp
8d6275c0 4288DEFAULT: none
5473c134 4289DEFAULT_IF_NONE: deny all
4290IFDEF: SQUID_SNMP
8d6275c0 4291DOC_START
5473c134 4292 Allowing or denying access to the SNMP port.
8d6275c0 4293
5473c134 4294 All access to the agent is denied by default.
4295 usage:
8d6275c0 4296
5473c134 4297 snmp_access allow|deny [!]aclname ...
8d6275c0 4298
5473c134 4299Example:
4300 snmp_access allow snmppublic localhost
4301 snmp_access deny all
cccac0a2 4302DOC_END
4303
5473c134 4304NAME: snmp_incoming_address
4305TYPE: address
4306LOC: Config.Addrs.snmp_incoming
4307DEFAULT: 0.0.0.0
4308IFDEF: SQUID_SNMP
4309DOC_NONE
4310NAME: snmp_outgoing_address
4311TYPE: address
4312LOC: Config.Addrs.snmp_outgoing
4313DEFAULT: 255.255.255.255
4314IFDEF: SQUID_SNMP
cccac0a2 4315DOC_START
5473c134 4316 Just like 'udp_incoming_address' above, but for the SNMP port.
cccac0a2 4317
5473c134 4318 snmp_incoming_address is used for the SNMP socket receiving
4319 messages from SNMP agents.
4320 snmp_outgoing_address is used for SNMP packets returned to SNMP
4321 agents.
cccac0a2 4322
5473c134 4323 The default snmp_incoming_address (0.0.0.0) is to listen on all
4324 available network interfaces.
cccac0a2 4325
5473c134 4326 If snmp_outgoing_address is set to 255.255.255.255 (the default)
4327 it will use the same socket as snmp_incoming_address. Only
4328 change this if you want to have SNMP replies sent using another
4329 address than where this Squid listens for SNMP queries.
cccac0a2 4330
5473c134 4331 NOTE, snmp_incoming_address and snmp_outgoing_address can not have
4332 the same value since they both use port 3401.
cccac0a2 4333DOC_END
4334
5473c134 4335COMMENT_START
4336 ICP OPTIONS
4337 -----------------------------------------------------------------------------
4338COMMENT_END
4339
4340NAME: icp_port udp_port
4341TYPE: ushort
4342DEFAULT: 0
4343LOC: Config.Port.icp
cccac0a2 4344DOC_START
5473c134 4345 The port number where Squid sends and receives ICP queries to
4346 and from neighbor caches. The standard UDP port for ICP is 3130.
4347 Default is disabled (0).
4348NOCOMMENT_START
4349icp_port @DEFAULT_ICP_PORT@
4350NOCOMMENT_END
cccac0a2 4351DOC_END
4352
5473c134 4353NAME: htcp_port
4354IFDEF: USE_HTCP
4355TYPE: ushort
87630341 4356DEFAULT: 0
5473c134 4357LOC: Config.Port.htcp
cccac0a2 4358DOC_START
5473c134 4359 The port number where Squid sends and receives HTCP queries to
87630341 4360 and from neighbor caches. To turn it on you want to set it to
4361 4827. By default it is set to "0" (disabled).
4362NOCOMMENT_START
4363#htcp_port 4827
4364NOCOMMENT_END
cccac0a2 4365DOC_END
4366
4367NAME: log_icp_queries
4368COMMENT: on|off
4369TYPE: onoff
4370DEFAULT: on
4371LOC: Config.onoff.log_udp
4372DOC_START
4373 If set, ICP queries are logged to access.log. You may wish
4374 do disable this if your ICP load is VERY high to speed things
4375 up or to simplify log analysis.
4376DOC_END
4377
5473c134 4378NAME: udp_incoming_address
4379TYPE: address
4380LOC:Config.Addrs.udp_incoming
4381DEFAULT: 0.0.0.0
8524d4b2 4382DOC_START
4383 udp_incoming_address is used for UDP packets received from other
4384 caches.
4385
4386 The default behavior is to not bind to any specific address.
4387
4388 Only change this if you want to have all UDP queries received on
4389 a specific interface/address.
4390
4391 NOTE: udp_incoming_address is used by the ICP, HTCP, and DNS
4392 modules. Altering it will affect all of them in the same manner.
4393
4394 see also; udp_outgoing_address
4395
4396 NOTE, udp_incoming_address and udp_outgoing_address can not
4397 have the same value since they both use the same port.
4398DOC_END
cccac0a2 4399
5473c134 4400NAME: udp_outgoing_address
4401TYPE: address
4402LOC: Config.Addrs.udp_outgoing
4403DEFAULT: 255.255.255.255
cccac0a2 4404DOC_START
8524d4b2 4405 udp_outgoing_address is used for UDP packets sent out to other
5473c134 4406 caches.
cccac0a2 4407
5473c134 4408 The default behavior is to not bind to any specific address.
cccac0a2 4409
8524d4b2 4410 Instead it will use the same socket as udp_incoming_address.
4411 Only change this if you want to have UDP queries sent using another
4412 address than where this Squid listens for UDP queries from other
5473c134 4413 caches.
4414
8524d4b2 4415 NOTE: udp_outgoing_address is used by the ICP, HTCP, and DNS
4416 modules. Altering it will affect all of them in the same manner.
4417
4418 see also; udp_incoming_address
4419
5473c134 4420 NOTE, udp_incoming_address and udp_outgoing_address can not
8524d4b2 4421 have the same value since they both use the same port.
cccac0a2 4422DOC_END
4423
3d1e3e43 4424NAME: icp_hit_stale
4425COMMENT: on|off
4426TYPE: onoff
4427DEFAULT: off
4428LOC: Config.onoff.icp_hit_stale
4429DOC_START
4430 If you want to return ICP_HIT for stale cache objects, set this
4431 option to 'on'. If you have sibling relationships with caches
4432 in other administrative domains, this should be 'off'. If you only
4433 have sibling relationships with caches under your control,
4434 it is probably okay to set this to 'on'.
4435 If set to 'on', your siblings should use the option "allow-miss"
4436 on their cache_peer lines for connecting to you.
4437DOC_END
4438
5473c134 4439NAME: minimum_direct_hops
cccac0a2 4440TYPE: int
5473c134 4441DEFAULT: 4
4442LOC: Config.minDirectHops
cccac0a2 4443DOC_START
5473c134 4444 If using the ICMP pinging stuff, do direct fetches for sites
4445 which are no more than this many hops away.
cccac0a2 4446DOC_END
4447
5473c134 4448NAME: minimum_direct_rtt
4449TYPE: int
4450DEFAULT: 400
4451LOC: Config.minDirectRtt
cccac0a2 4452DOC_START
5473c134 4453 If using the ICMP pinging stuff, do direct fetches for sites
4454 which are no more than this many rtt milliseconds away.
cccac0a2 4455DOC_END
4456
cccac0a2 4457NAME: netdb_low
4458TYPE: int
4459DEFAULT: 900
4460LOC: Config.Netdb.low
4461DOC_NONE
4462
4463NAME: netdb_high
4464TYPE: int
4465DEFAULT: 1000
4466LOC: Config.Netdb.high
4467DOC_START
4468 The low and high water marks for the ICMP measurement
4469 database. These are counts, not percents. The defaults are
4470 900 and 1000. When the high water mark is reached, database
4471 entries will be deleted until the low mark is reached.
4472DOC_END
4473
cccac0a2 4474NAME: netdb_ping_period
4475TYPE: time_t
4476LOC: Config.Netdb.period
4477DEFAULT: 5 minutes
4478DOC_START
4479 The minimum period for measuring a site. There will be at
4480 least this much delay between successive pings to the same
4481 network. The default is five minutes.
4482DOC_END
4483
cccac0a2 4484NAME: query_icmp
4485COMMENT: on|off
4486TYPE: onoff
4487DEFAULT: off
4488LOC: Config.onoff.query_icmp
4489DOC_START
4490 If you want to ask your peers to include ICMP data in their ICP
4491 replies, enable this option.
4492
4493 If your peer has configured Squid (during compilation) with
7f7db318 4494 '--enable-icmp' that peer will send ICMP pings to origin server
4495 sites of the URLs it receives. If you enable this option the
cccac0a2 4496 ICP replies from that peer will include the ICMP data (if available).
4497 Then, when choosing a parent cache, Squid will choose the parent with
4498 the minimal RTT to the origin server. When this happens, the
4499 hierarchy field of the access.log will be
4500 "CLOSEST_PARENT_MISS". This option is off by default.
4501DOC_END
4502
4503NAME: test_reachability
4504COMMENT: on|off
4505TYPE: onoff
4506DEFAULT: off
4507LOC: Config.onoff.test_reachability
4508DOC_START
4509 When this is 'on', ICP MISS replies will be ICP_MISS_NOFETCH
4510 instead of ICP_MISS if the target host is NOT in the ICMP
4511 database, or has a zero RTT.
4512DOC_END
4513
5473c134 4514NAME: icp_query_timeout
4515COMMENT: (msec)
4516DEFAULT: 0
4517TYPE: int
4518LOC: Config.Timeout.icp_query
4c3ef9b2 4519DOC_START
5473c134 4520 Normally Squid will automatically determine an optimal ICP
4521 query timeout value based on the round-trip-time of recent ICP
4522 queries. If you want to override the value determined by
4523 Squid, set this 'icp_query_timeout' to a non-zero value. This
4524 value is specified in MILLISECONDS, so, to use a 2-second
4525 timeout (the old default), you would write:
4c3ef9b2 4526
5473c134 4527 icp_query_timeout 2000
4c3ef9b2 4528DOC_END
4529
5473c134 4530NAME: maximum_icp_query_timeout
4531COMMENT: (msec)
4532DEFAULT: 2000
4533TYPE: int
4534LOC: Config.Timeout.icp_query_max
cccac0a2 4535DOC_START
5473c134 4536 Normally the ICP query timeout is determined dynamically. But
4537 sometimes it can lead to very large values (say 5 seconds).
4538 Use this option to put an upper limit on the dynamic timeout
4539 value. Do NOT use this option to always use a fixed (instead
4540 of a dynamic) timeout value. To set a fixed timeout see the
4541 'icp_query_timeout' directive.
cccac0a2 4542DOC_END
4543
5473c134 4544NAME: minimum_icp_query_timeout
4545COMMENT: (msec)
4546DEFAULT: 5
4547TYPE: int
4548LOC: Config.Timeout.icp_query_min
cccac0a2 4549DOC_START
5473c134 4550 Normally the ICP query timeout is determined dynamically. But
4551 sometimes it can lead to very small timeouts, even lower than
4552 the normal latency variance on your link due to traffic.
4553 Use this option to put an lower limit on the dynamic timeout
4554 value. Do NOT use this option to always use a fixed (instead
4555 of a dynamic) timeout value. To set a fixed timeout see the
4556 'icp_query_timeout' directive.
cccac0a2 4557DOC_END
4558
5473c134 4559NAME: background_ping_rate
4560COMMENT: time-units
4561TYPE: time_t
4562DEFAULT: 10 seconds
4563LOC: Config.backgroundPingRate
cccac0a2 4564DOC_START
5473c134 4565 Controls how often the ICP pings are sent to siblings that
4566 have background-ping set.
cccac0a2 4567DOC_END
4568
5473c134 4569COMMENT_START
4570 MULTICAST ICP OPTIONS
4571 -----------------------------------------------------------------------------
4572COMMENT_END
4573
4574NAME: mcast_groups
4575TYPE: wordlist
4576LOC: Config.mcast_group_list
8c01ada0 4577DEFAULT: none
4578DOC_START
5473c134 4579 This tag specifies a list of multicast groups which your server
4580 should join to receive multicasted ICP queries.
8c01ada0 4581
5473c134 4582 NOTE! Be very careful what you put here! Be sure you
4583 understand the difference between an ICP _query_ and an ICP
4584 _reply_. This option is to be set only if you want to RECEIVE
4585 multicast queries. Do NOT set this option to SEND multicast
4586 ICP (use cache_peer for that). ICP replies are always sent via
4587 unicast, so this option does not affect whether or not you will
4588 receive replies from multicast group members.
8c01ada0 4589
5473c134 4590 You must be very careful to NOT use a multicast address which
4591 is already in use by another group of caches.
8c01ada0 4592
5473c134 4593 If you are unsure about multicast, please read the Multicast
4594 chapter in the Squid FAQ (http://www.squid-cache.org/FAQ/).
8c01ada0 4595
5473c134 4596 Usage: mcast_groups 239.128.16.128 224.0.1.20
8c01ada0 4597
5473c134 4598 By default, Squid doesn't listen on any multicast groups.
4599DOC_END
8c01ada0 4600
5473c134 4601NAME: mcast_miss_addr
4602IFDEF: MULTICAST_MISS_STREAM
4603TYPE: address
4604LOC: Config.mcast_miss.addr
4605DEFAULT: 255.255.255.255
4606DOC_START
4607 If you enable this option, every "cache miss" URL will
4608 be sent out on the specified multicast address.
cccac0a2 4609
5473c134 4610 Do not enable this option unless you are are absolutely
4611 certain you understand what you are doing.
cccac0a2 4612DOC_END
4613
5473c134 4614NAME: mcast_miss_ttl
4615IFDEF: MULTICAST_MISS_STREAM
4616TYPE: ushort
4617LOC: Config.mcast_miss.ttl
4618DEFAULT: 16
cccac0a2 4619DOC_START
5473c134 4620 This is the time-to-live value for packets multicasted
4621 when multicasting off cache miss URLs is enabled. By
4622 default this is set to 'site scope', i.e. 16.
4623DOC_END
cccac0a2 4624
5473c134 4625NAME: mcast_miss_port
4626IFDEF: MULTICAST_MISS_STREAM
4627TYPE: ushort
4628LOC: Config.mcast_miss.port
4629DEFAULT: 3135
4630DOC_START
4631 This is the port number to be used in conjunction with
4632 'mcast_miss_addr'.
4633DOC_END
cccac0a2 4634
5473c134 4635NAME: mcast_miss_encode_key
4636IFDEF: MULTICAST_MISS_STREAM
4637TYPE: string
4638LOC: Config.mcast_miss.encode_key
4639DEFAULT: XXXXXXXXXXXXXXXX
4640DOC_START
4641 The URLs that are sent in the multicast miss stream are
4642 encrypted. This is the encryption key.
4643DOC_END
8c01ada0 4644
5473c134 4645NAME: mcast_icp_query_timeout
4646COMMENT: (msec)
4647DEFAULT: 2000
4648TYPE: int
4649LOC: Config.Timeout.mcast_icp_query
4650DOC_START
4651 For multicast peers, Squid regularly sends out ICP "probes" to
4652 count how many other peers are listening on the given multicast
4653 address. This value specifies how long Squid should wait to
4654 count all the replies. The default is 2000 msec, or 2
4655 seconds.
cccac0a2 4656DOC_END
4657
5473c134 4658COMMENT_START
4659 INTERNAL ICON OPTIONS
4660 -----------------------------------------------------------------------------
4661COMMENT_END
4662
cccac0a2 4663NAME: icon_directory
4664TYPE: string
4665LOC: Config.icons.directory
4666DEFAULT: @DEFAULT_ICON_DIR@
4667DOC_START
4668 Where the icons are stored. These are normally kept in
4669 @DEFAULT_ICON_DIR@
4670DOC_END
4671
f024c970 4672NAME: global_internal_static
4673TYPE: onoff
4674LOC: Config.onoff.global_internal_static
4675DEFAULT: on
4676DOC_START
4677 This directive controls is Squid should intercept all requests for
4678 /squid-internal-static/ no matter which host the URL is requesting
4679 (default on setting), or if nothing special should be done for
4680 such URLs (off setting). The purpose of this directive is to make
4681 icons etc work better in complex cache hierarchies where it may
4682 not always be possible for all corners in the cache mesh to reach
4683 the server generating a directory listing.
4684DOC_END
4685
5473c134 4686NAME: short_icon_urls
4687TYPE: onoff
4688LOC: Config.icons.use_short_names
4689DEFAULT: on
4690DOC_START
4691 If this is enabled Squid will use short URLs for icons.
4692 If disabled it will revert to the old behavior of including
4693 it's own name and port in the URL.
4694
4695 If you run a complex cache hierarchy with a mix of Squid and
4696 other proxies you may need to disable this directive.
4697DOC_END
4698
4699COMMENT_START
4700 ERROR PAGE OPTIONS
4701 -----------------------------------------------------------------------------
4702COMMENT_END
4703
4704NAME: error_directory
4705TYPE: string
4706LOC: Config.errorDirectory
4707DEFAULT: @DEFAULT_ERROR_DIR@
4708DOC_START
4709 If you wish to create your own versions of the default
4710 (English) error files, either to customize them to suit your
4711 language or company copy the template English files to another
4712 directory and point this tag at them.
4713
4714 The squid developers are interested in making squid available in
4715 a wide variety of languages. If you are making translations for a
4716 langauge that Squid does not currently provide please consider
4717 contributing your translation back to the project.
4718DOC_END
4719
4720NAME: err_html_text
4721TYPE: eol
4722LOC: Config.errHtmlText
4723DEFAULT: none
4724DOC_START
4725 HTML text to include in error messages. Make this a "mailto"
4726 URL to your admin address, or maybe just a link to your
4727 organizations Web page.
4728
4729 To include this in your error messages, you must rewrite
4730 the error template files (found in the "errors" directory).
4731 Wherever you want the 'err_html_text' line to appear,
4732 insert a %L tag in the error template file.
4733DOC_END
4734
4735NAME: email_err_data
4736COMMENT: on|off
4737TYPE: onoff
4738LOC: Config.onoff.emailErrData
4739DEFAULT: on
4740DOC_START
4741 If enabled, information about the occurred error will be
4742 included in the mailto links of the ERR pages (if %W is set)
4743 so that the email body contains the data.
4744 Syntax is <A HREF="mailto:%w%W">%w</A>
4745DOC_END
4746
4747NAME: deny_info
4748TYPE: denyinfo
4749LOC: Config.denyInfoList
4750DEFAULT: none
4751DOC_START
4752 Usage: deny_info err_page_name acl
4753 or deny_info http://... acl
4754 Example: deny_info ERR_CUSTOM_ACCESS_DENIED bad_guys
4755
4756 This can be used to return a ERR_ page for requests which
4757 do not pass the 'http_access' rules. Squid remembers the last
4758 acl it evaluated in http_access, and if a 'deny_info' line exists
4759 for that ACL Squid returns a corresponding error page.
4760
4761 The acl is typically the last acl on the http_access deny line which
4762 denied access. The exceptions to this rule are:
4763 - When Squid needs to request authentication credentials. It's then
4764 the first authentication related acl encountered
4765 - When none of the http_access lines matches. It's then the last
4766 acl processed on the last http_access line.
4767
4768 You may use ERR_ pages that come with Squid or create your own pages
4769 and put them into the configured errors/ directory.
4770
4771 Alternatively you can specify an error URL. The browsers will
4772 get redirected (302) to the specified URL. %s in the redirection
4773 URL will be replaced by the requested URL.
4774
4775 Alternatively you can tell Squid to reset the TCP connection
4776 by specifying TCP_RESET.
4777DOC_END
4778
4779COMMENT_START
4780 OPTIONS INFLUENCING REQUEST FORWARDING
4781 -----------------------------------------------------------------------------
4782COMMENT_END
4783
4784NAME: nonhierarchical_direct
e72a0ec0 4785TYPE: onoff
5473c134 4786LOC: Config.onoff.nonhierarchical_direct
e72a0ec0 4787DEFAULT: on
4788DOC_START
5473c134 4789 By default, Squid will send any non-hierarchical requests
4790 (matching hierarchy_stoplist or not cacheable request type) direct
4791 to origin servers.
e72a0ec0 4792
5473c134 4793 If you set this to off, Squid will prefer to send these
4794 requests to parents.
0b0cfcf2 4795
5473c134 4796 Note that in most configurations, by turning this off you will only
4797 add latency to these request without any improvement in global hit
4798 ratio.
0b0cfcf2 4799
5473c134 4800 If you are inside an firewall see never_direct instead of
4801 this directive.
8d6275c0 4802DOC_END
0b0cfcf2 4803
5473c134 4804NAME: prefer_direct
8d6275c0 4805TYPE: onoff
5473c134 4806LOC: Config.onoff.prefer_direct
8d6275c0 4807DEFAULT: off
4808DOC_START
5473c134 4809 Normally Squid tries to use parents for most requests. If you for some
4810 reason like it to first try going direct and only use a parent if
4811 going direct fails set this to on.
0b0cfcf2 4812
5473c134 4813 By combining nonhierarchical_direct off and prefer_direct on you
4814 can set up Squid to use a parent as a backup path if going direct
4815 fails.
4816
4817 Note: If you want Squid to use parents for all requests see
4818 the never_direct directive. prefer_direct only modifies how Squid
4819 acts on cacheable requests.
cccac0a2 4820DOC_END
4821
5473c134 4822NAME: always_direct
8d6275c0 4823TYPE: acl_access
5473c134 4824LOC: Config.accessList.AlwaysDirect
0b0cfcf2 4825DEFAULT: none
0b0cfcf2 4826DOC_START
5473c134 4827 Usage: always_direct allow|deny [!]aclname ...
0b0cfcf2 4828
5473c134 4829 Here you can use ACL elements to specify requests which should
4830 ALWAYS be forwarded by Squid to the origin servers without using
4831 any peers. For example, to always directly forward requests for
4832 local servers ignoring any parents or siblings you may have use
4833 something like:
0b0cfcf2 4834
5473c134 4835 acl local-servers dstdomain my.domain.net
4836 always_direct allow local-servers
0b0cfcf2 4837
5473c134 4838 To always forward FTP requests directly, use
f16fbc82 4839
5473c134 4840 acl FTP proto FTP
4841 always_direct allow FTP
cccac0a2 4842
5473c134 4843 NOTE: There is a similar, but opposite option named
4844 'never_direct'. You need to be aware that "always_direct deny
4845 foo" is NOT the same thing as "never_direct allow foo". You
4846 may need to use a deny rule to exclude a more-specific case of
4847 some other rule. Example:
8d6275c0 4848
5473c134 4849 acl local-external dstdomain external.foo.net
4850 acl local-servers dstdomain .foo.net
4851 always_direct deny local-external
4852 always_direct allow local-servers
8d6275c0 4853
5473c134 4854 NOTE: If your goal is to make the client forward the request
4855 directly to the origin server bypassing Squid then this needs
4856 to be done in the client configuration. Squid configuration
4857 can only tell Squid how Squid should fetch the object.
8d6275c0 4858
5473c134 4859 NOTE: This directive is not related to caching. The replies
4860 is cached as usual even if you use always_direct. To not cache
4861 the replies see no_cache.
4862
4863 This option replaces some v1.1 options such as local_domain
4864 and local_ip.
cccac0a2 4865DOC_END
0976f8db 4866
5473c134 4867NAME: never_direct
4868TYPE: acl_access
4869LOC: Config.accessList.NeverDirect
4870DEFAULT: none
8d6275c0 4871DOC_START
5473c134 4872 Usage: never_direct allow|deny [!]aclname ...
4873
4874 never_direct is the opposite of always_direct. Please read
4875 the description for always_direct if you have not already.
4876
4877 With 'never_direct' you can use ACL elements to specify
4878 requests which should NEVER be forwarded directly to origin
4879 servers. For example, to force the use of a proxy for all
4880 requests, except those in your local domain use something like:
4881
4882 acl local-servers dstdomain .foo.net
4883 acl all src 0.0.0.0/0.0.0.0
4884 never_direct deny local-servers
4885 never_direct allow all
4886
4887 or if Squid is inside a firewall and there are local intranet
4888 servers inside the firewall use something like:
4889
4890 acl local-intranet dstdomain .foo.net
4891 acl local-external dstdomain external.foo.net
4892 always_direct deny local-external
4893 always_direct allow local-intranet
4894 never_direct allow all
4895
4896 This option replaces some v1.1 options such as inside_firewall
4897 and firewall_ip.
8d6275c0 4898DOC_END
0976f8db 4899
5473c134 4900COMMENT_START
4901 ADVANCED NETWORKING OPTIONS
4902 -----------------------------------------------------------------------------
4903COMMENT_END
4904
cccac0a2 4905NAME: incoming_icp_average
4906TYPE: int
4907DEFAULT: 6
4908LOC: Config.comm_incoming.icp_average
4909DOC_NONE
4910
4911NAME: incoming_http_average
4912TYPE: int
4913DEFAULT: 4
4914LOC: Config.comm_incoming.http_average
4915DOC_NONE
4916
4917NAME: incoming_dns_average
4918TYPE: int
4919DEFAULT: 4
4920LOC: Config.comm_incoming.dns_average
4921DOC_NONE
4922
4923NAME: min_icp_poll_cnt
4924TYPE: int
4925DEFAULT: 8
4926LOC: Config.comm_incoming.icp_min_poll
4927DOC_NONE
4928
4929NAME: min_dns_poll_cnt
4930TYPE: int
4931DEFAULT: 8
4932LOC: Config.comm_incoming.dns_min_poll
4933DOC_NONE
4934
4935NAME: min_http_poll_cnt
4936TYPE: int
4937DEFAULT: 8
4938LOC: Config.comm_incoming.http_min_poll
4939DOC_START
5473c134 4940 Heavy voodoo here. I can't even believe you are reading this.
4941 Are you crazy? Don't even think about adjusting these unless
4942 you understand the algorithms in comm_select.c first!
4943DOC_END
4944
4945NAME: accept_filter
5473c134 4946TYPE: string
4947DEFAULT: none
4948LOC: Config.accept_filter
4949DOC_START
0b4d4be5 4950 FreeBSD:
4951
5473c134 4952 The name of an accept(2) filter to install on Squid's
4953 listen socket(s). This feature is perhaps specific to
4954 FreeBSD and requires support in the kernel.
4955
4956 The 'httpready' filter delays delivering new connections
2324cda2 4957 to Squid until a full HTTP request has been received.
0b4d4be5 4958 See the accf_http(9) man page for details.
4959
4960 The 'dataready' filter delays delivering new connections
4961 to Squid until there is some data to process.
4962 See the accf_dataready(9) man page for details.
4963
4964 Linux:
4965
4966 The 'data' filter delays delivering of new connections
4967 to Squid until there is some data to process by TCP_ACCEPT_DEFER.
4968 You may optionally specify a number of seconds to wait by
4969 'data=N' where N is the number of seconds. Defaults to 30
4970 if not specified. See the tcp(7) man page for details.
5473c134 4971EXAMPLE:
0b4d4be5 4972# FreeBSD
5473c134 4973accept_filter httpready
0b4d4be5 4974# Linux
4975accept_filter data
5473c134 4976DOC_END
4977
4978NAME: tcp_recv_bufsize
4979COMMENT: (bytes)
4980TYPE: b_size_t
4981DEFAULT: 0 bytes
4982LOC: Config.tcpRcvBufsz
4983DOC_START
4984 Size of receive buffer to set for TCP sockets. Probably just
4985 as easy to change your kernel's default. Set to zero to use
4986 the default buffer size.
4987DOC_END
4988
4989COMMENT_START
4990 ICAP OPTIONS
4991 -----------------------------------------------------------------------------
4992COMMENT_END
4993
4994NAME: icap_enable
4995TYPE: onoff
4996IFDEF: ICAP_CLIENT
4997COMMENT: on|off
4998LOC: TheICAPConfig.onoff
4999DEFAULT: off
5000DOC_START
53e738c6 5001 If you want to enable the ICAP module support, set this to on.
5473c134 5002DOC_END
5003
5004NAME: icap_connect_timeout
5005TYPE: time_t
5006DEFAULT: none
5007LOC: TheICAPConfig.connect_timeout_raw
5008IFDEF: ICAP_CLIENT
5009DOC_START
5010 This parameter specifies how long to wait for the TCP connect to
5011 the requested ICAP server to complete before giving up and either
5012 terminating the HTTP transaction or bypassing the failure.
5013
5014 The default for optional services is peer_connect_timeout.
5015 The default for essential services is connect_timeout.
5016 If this option is explicitly set, its value applies to all services.
5017DOC_END
5018
5019NAME: icap_io_timeout
5020COMMENT: time-units
5021TYPE: time_t
5022DEFAULT: none
5023LOC: TheICAPConfig.io_timeout_raw
5024IFDEF: ICAP_CLIENT
5025DOC_START
5026 This parameter specifies how long to wait for an I/O activity on
5027 an established, active ICAP connection before giving up and
5028 either terminating the HTTP transaction or bypassing the
5029 failure.
5030
5031 The default is read_timeout.
5032DOC_END
5033
5034NAME: icap_service_failure_limit
5035TYPE: int
5036IFDEF: ICAP_CLIENT
5037LOC: TheICAPConfig.service_failure_limit
5038DEFAULT: 10
5039DOC_START
5040 The limit specifies the number of failures that Squid tolerates
5041 when establishing a new TCP connection with an ICAP service. If
5042 the number of failures exceeds the limit, the ICAP service is
5043 not used for new ICAP requests until it is time to refresh its
5044 OPTIONS. The per-service failure counter is reset to zero each
5045 time Squid fetches new service OPTIONS.
5046
5047 A negative value disables the limit. Without the limit, an ICAP
5048 service will not be considered down due to connectivity failures
5049 between ICAP OPTIONS requests.
cccac0a2 5050DOC_END
5051
5473c134 5052NAME: icap_service_revival_delay
cccac0a2 5053TYPE: int
5473c134 5054IFDEF: ICAP_CLIENT
5055LOC: TheICAPConfig.service_revival_delay
5056DEFAULT: 180
cccac0a2 5057DOC_START
5473c134 5058 The delay specifies the number of seconds to wait after an ICAP
5059 OPTIONS request failure before requesting the options again. The
5060 failed ICAP service is considered "down" until fresh OPTIONS are
5061 fetched.
cccac0a2 5062
5473c134 5063 The actual delay cannot be smaller than the hardcoded minimum
5064 delay of 30 seconds.
cccac0a2 5065DOC_END
5066
5473c134 5067NAME: icap_preview_enable
cccac0a2 5068TYPE: onoff
5473c134 5069IFDEF: ICAP_CLIENT
5070COMMENT: on|off
5071LOC: TheICAPConfig.preview_enable
ac7a62f9 5072DEFAULT: on
cccac0a2 5073DOC_START
ac7a62f9 5074 The ICAP Preview feature allows the ICAP server to handle the
5075 HTTP message by looking only at the beginning of the message body
5076 or even without receiving the body at all. In some environments,
5077 previews greatly speedup ICAP processing.
5078
5079 During an ICAP OPTIONS transaction, the server may tell Squid what
5080 HTTP messages should be previewed and how big the preview should be.
5081 Squid will not use Preview if the server did not request one.
5082
5083 To disable ICAP Preview for all ICAP services, regardless of
5084 individual ICAP server OPTIONS responses, set this option to "off".
5085Example:
5086icap_preview_enable off
cccac0a2 5087DOC_END
5088
5473c134 5089NAME: icap_preview_size
5090TYPE: int
5091IFDEF: ICAP_CLIENT
5092LOC: TheICAPConfig.preview_size
5093DEFAULT: -1
cccac0a2 5094DOC_START
53e738c6 5095 The default size of preview data to be sent to the ICAP server.
5096 -1 means no preview. This value might be overwritten on a per server
5097 basis by OPTIONS requests.
cccac0a2 5098DOC_END
5099
5473c134 5100NAME: icap_default_options_ttl
5101TYPE: int
5102IFDEF: ICAP_CLIENT
5103LOC: TheICAPConfig.default_options_ttl
5104DEFAULT: 60
cccac0a2 5105DOC_START
53e738c6 5106 The default TTL value for ICAP OPTIONS responses that don't have
5473c134 5107 an Options-TTL header.
cccac0a2 5108DOC_END
5109
5473c134 5110NAME: icap_persistent_connections
5111TYPE: onoff
5112IFDEF: ICAP_CLIENT
5113COMMENT: on|off
5114LOC: TheICAPConfig.reuse_connections
5115DEFAULT: on
cccac0a2 5116DOC_START
5473c134 5117 Whether or not Squid should use persistent connections to
5118 an ICAP server.
cccac0a2 5119DOC_END
5120
5473c134 5121NAME: icap_send_client_ip
5122TYPE: onoff
5123IFDEF: ICAP_CLIENT
5124COMMENT: on|off
5125LOC: TheICAPConfig.send_client_ip
5126DEFAULT: off
cccac0a2 5127DOC_START
53e738c6 5128 This adds the header "X-Client-IP" to ICAP requests.
cccac0a2 5129DOC_END
5130
5473c134 5131NAME: icap_send_client_username
5132TYPE: onoff
5133IFDEF: ICAP_CLIENT
5134COMMENT: on|off
5135LOC: TheICAPConfig.send_client_username
5136DEFAULT: off
cccac0a2 5137DOC_START
5473c134 5138 This sends authenticated HTTP client username (if available) to
5139 the ICAP service. The username value is encoded based on the
5140 icap_client_username_encode option and is sent using the header
5141 specified by the icap_client_username_header option.
cccac0a2 5142DOC_END
5143
5473c134 5144NAME: icap_client_username_header
cccac0a2 5145TYPE: string
5473c134 5146IFDEF: ICAP_CLIENT
5147LOC: TheICAPConfig.client_username_header
5148DEFAULT: X-Client-Username
cccac0a2 5149DOC_START
5473c134 5150 ICAP request header name to use for send_client_username.
cccac0a2 5151DOC_END
5152
5473c134 5153NAME: icap_client_username_encode
cccac0a2 5154TYPE: onoff
5473c134 5155IFDEF: ICAP_CLIENT
5156COMMENT: on|off
5157LOC: TheICAPConfig.client_username_encode
5158DEFAULT: off
cccac0a2 5159DOC_START
5473c134 5160 Whether to base64 encode the authenticated client username.
cccac0a2 5161DOC_END
5162
5473c134 5163NAME: icap_service
5164TYPE: icap_service_type
5165IFDEF: ICAP_CLIENT
5166LOC: TheICAPConfig
5167DEFAULT: none
cccac0a2 5168DOC_START
53e738c6 5169 Defines a single ICAP service
cccac0a2 5170
53e738c6 5171 icap_service servicename vectoring_point bypass service_url
7d90757b 5172
53e738c6 5173 vectoring_point = reqmod_precache|reqmod_postcache|respmod_precache|respmod_postcache
f3db09e2 5174 This specifies at which point of transaction processing the
5175 ICAP service should be activated. *_postcache vectoring points
5176 are not yet supported.
53e738c6 5177 bypass = 1|0
f3db09e2 5178 If set to 1, the ICAP service is treated as optional. If the
5179 service cannot be reached or malfunctions, Squid will try to
5180 ignore any errors and process the message as if the service
5181 was not enabled. No all ICAP errors can be bypassed.
5182 If set to 0, the ICAP service is treated as essential and all
5183 ICAP errors will result in an error page returned to the
5184 HTTP client.
53e738c6 5185 service_url = icap://servername:port/service
5473c134 5186
5473c134 5187Example:
5188icap_service service_1 reqmod_precache 0 icap://icap1.mydomain.net:1344/reqmod
5189icap_service service_2 respmod_precache 0 icap://icap2.mydomain.net:1344/respmod
cccac0a2 5190DOC_END
5191
5473c134 5192NAME: icap_class
5193TYPE: icap_class_type
5194IFDEF: ICAP_CLIENT
5195LOC: TheICAPConfig
5196DEFAULT: none
cccac0a2 5197DOC_START
62c7f90e
AR
5198 This depricated option was documented to define an ICAP service
5199 chain, even though it actually defined a set of similar, redundant
5200 services, and the chains were not supported.
5473c134 5201
62c7f90e
AR
5202 To define a set of redundant services, please use the
5203 adaptation_service_set directive.
5473c134 5204
62c7f90e
AR
5205 If you need adaptation service chains, patches or sponsorship
5206 is welcome.
cccac0a2 5207DOC_END
5208
5473c134 5209NAME: icap_access
5210TYPE: icap_access_type
5211IFDEF: ICAP_CLIENT
5212LOC: TheICAPConfig
cccac0a2 5213DEFAULT: none
cccac0a2 5214DOC_START
62c7f90e
AR
5215 This option is depricated. Please use adaptation_access, which
5216 has the same ICAP functionality, but comes with better
5217 documentation, and eCAP support.
cccac0a2 5218DOC_END
5219
57afc994
AR
5220COMMENT_START
5221 eCAP OPTIONS
5222 -----------------------------------------------------------------------------
5223COMMENT_END
5224
5225NAME: loadable_modules
5226TYPE: wordlist
5227IFDEF: USE_LOADABLE_MODULES
5228LOC: Config.loadable_module_names
5229DEFAULT: none
5230DOC_START
5231 Instructs Squid to load the specified dynamic module(s) or activate
5232 preloaded module(s).
5233Example:
5234loadable_modules @DEFAULT_PREFIX@/lib/MinimalAdapter.so
5235DOC_END
5236
62c7f90e
AR
5237COMMENT_START
5238 MESSAGE ADAPTATION OPTIONS
5239 -----------------------------------------------------------------------------
5240COMMENT_END
5241
5242NAME: adaptation_service_set
5243TYPE: adaptation_service_set_type
5244IFDEF: USE_ADAPTATION
5245LOC: none
5246DEFAULT: none
5247DOC_START
5248
5249 Defines a named adaptation service set. The set is populated in
5250 the order of adaptation_service_set directives in this file.
5251 When adaptation ACLs are processed, the first and only the first
5252 applicable adaptation service from the set will be used. Thus,
5253 the set should group similar, redundant services, rather than a
5254 chain of complementary services.
5255
5256 If you have a single adaptation service, you do not need to
5257 define a set containing it because adaptation_access accepts
5258 service names.
5259
5260 See also: adaptation_access
5261
5262Example:
5263adaptation_service_set svcBlocker urlFilterPrimary urlFilterBackup
5264adaptation service_set svcLogger loggerLocal loggerRemote
5265DOC_END
5266
5267NAME: adaptation_access
5268TYPE: adaptation_access_type
5269IFDEF: USE_ADAPTATION
5270LOC: none
5271DEFAULT: none
5272DOC_START
5273 Sends an HTTP transaction to an ICAP or eCAP adaptation service.
5274
5275 adaptation_access service_name allow|deny [!]aclname...
5276 adaptation_access set_name allow|deny [!]aclname...
5277
5278 At each supported vectoring point, the adaptation_access
5279 statements are processed in the order they appear in this
5280 configuration file. Statements pointing to the following services
5281 are ignored (i.e., skipped without checking their ACL):
5282
5283 - services serving different vectoring points
5284 - "broken-but-bypassable" services
5285 - "up" services configured to ignore such transactions
5286 (e.g., based on the ICAP Transfer-Ignore header).
5287
5288 When a set_name is used, all services in the set are checked
5289 using the same rules, to find the first applicable one. See
5290 adaptation_service_set for details.
5291
5292 If an access list is checked and there is a match, the
5293 processing stops: For an "allow" rule, the corresponding
5294 adaptation service is used for the transaction. For a "deny"
5295 rule, no adaptation service is activated.
5296
5297 It is currently not possible to apply more than one adaptation
5298 service at the same vectoring point to the same HTTP transaction.
5299
5300 See also: icap_service and ecap_service
5301
5302Example:
5303adaptation_access service_1 allow all
5304DOC_END
5305
5473c134 5306COMMENT_START
5307 DNS OPTIONS
5308 -----------------------------------------------------------------------------
5309COMMENT_END
5310
5311NAME: check_hostnames
cccac0a2 5312TYPE: onoff
cccac0a2 5313DEFAULT: off
5473c134 5314LOC: Config.onoff.check_hostnames
cccac0a2 5315DOC_START
5473c134 5316 For security and stability reasons Squid can check
5317 hostnames for Internet standard RFC compliance. If you want
5318 Squid to perform these checks turn this directive on.
cccac0a2 5319DOC_END
5320
5473c134 5321NAME: allow_underscore
cccac0a2 5322TYPE: onoff
cccac0a2 5323DEFAULT: on
5473c134 5324LOC: Config.onoff.allow_underscore
cccac0a2 5325DOC_START
5473c134 5326 Underscore characters is not strictly allowed in Internet hostnames
5327 but nevertheless used by many sites. Set this to off if you want
5328 Squid to be strict about the standard.
5329 This check is performed only when check_hostnames is set to on.
cccac0a2 5330DOC_END
5331
5473c134 5332NAME: cache_dns_program
cccac0a2 5333TYPE: string
5473c134 5334IFDEF: USE_DNSSERVERS
5335DEFAULT: @DEFAULT_DNSSERVER@
5336LOC: Config.Program.dnsserver
cccac0a2 5337DOC_START
5473c134 5338 Specify the location of the executable for dnslookup process.
cccac0a2 5339DOC_END
5340
5473c134 5341NAME: dns_children
5342TYPE: int
5343IFDEF: USE_DNSSERVERS
5344DEFAULT: 5
5345LOC: Config.dnsChildren
58850d15 5346DOC_START
5473c134 5347 The number of processes spawn to service DNS name lookups.
5348 For heavily loaded caches on large servers, you should
5349 probably increase this value to at least 10. The maximum
5350 is 32. The default is 5.
58850d15 5351
5473c134 5352 You must have at least one dnsserver process.
58850d15 5353DOC_END
5354
5473c134 5355NAME: dns_retransmit_interval
5356TYPE: time_t
5357DEFAULT: 5 seconds
5358LOC: Config.Timeout.idns_retransmit
5359IFDEF: !USE_DNSSERVERS
cccac0a2 5360DOC_START
5473c134 5361 Initial retransmit interval for DNS queries. The interval is
5362 doubled each time all configured DNS servers have been tried.
cccac0a2 5363
cccac0a2 5364DOC_END
5365
5473c134 5366NAME: dns_timeout
5367TYPE: time_t
5368DEFAULT: 2 minutes
5369LOC: Config.Timeout.idns_query
5370IFDEF: !USE_DNSSERVERS
cccac0a2 5371DOC_START
5473c134 5372 DNS Query timeout. If no response is received to a DNS query
5373 within this time all DNS servers for the queried domain
5374 are assumed to be unavailable.
cccac0a2 5375DOC_END
5376
5473c134 5377NAME: dns_defnames
5378COMMENT: on|off
cccac0a2 5379TYPE: onoff
cccac0a2 5380DEFAULT: off
5473c134 5381LOC: Config.onoff.res_defnames
cccac0a2 5382DOC_START
5473c134 5383 Normally the RES_DEFNAMES resolver option is disabled
5384 (see res_init(3)). This prevents caches in a hierarchy
5385 from interpreting single-component hostnames locally. To allow
5386 Squid to handle single-component names, enable this option.
cccac0a2 5387DOC_END
5388
5473c134 5389NAME: dns_nameservers
5390TYPE: wordlist
5391DEFAULT: none
5392LOC: Config.dns_nameservers
cccac0a2 5393DOC_START
5473c134 5394 Use this if you want to specify a list of DNS name servers
5395 (IP addresses) to use instead of those given in your
5396 /etc/resolv.conf file.
5397 On Windows platforms, if no value is specified here or in
5398 the /etc/resolv.conf file, the list of DNS name servers are
5399 taken from the Windows registry, both static and dynamic DHCP
5400 configurations are supported.
cccac0a2 5401
5473c134 5402 Example: dns_nameservers 10.0.0.1 192.172.0.4
cccac0a2 5403DOC_END
5404
5473c134 5405NAME: hosts_file
cccac0a2 5406TYPE: string
5473c134 5407DEFAULT: @DEFAULT_HOSTS@
5408LOC: Config.etcHostsPath
cccac0a2 5409DOC_START
5473c134 5410 Location of the host-local IP name-address associations
5411 database. Most Operating Systems have such a file on different
5412 default locations:
5413 - Un*X & Linux: /etc/hosts
5414 - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts
5415 (%SystemRoot% value install default is c:\winnt)
5416 - Windows XP/2003: %SystemRoot%\system32\drivers\etc\hosts
5417 (%SystemRoot% value install default is c:\windows)
5418 - Windows 9x/Me: %windir%\hosts
5419 (%windir% value is usually c:\windows)
5420 - Cygwin: /etc/hosts
cccac0a2 5421
5473c134 5422 The file contains newline-separated definitions, in the
5423 form ip_address_in_dotted_form name [name ...] names are
5424 whitespace-separated. Lines beginning with an hash (#)
5425 character are comments.
cccac0a2 5426
5473c134 5427 The file is checked at startup and upon configuration.
5428 If set to 'none', it won't be checked.
5429 If append_domain is used, that domain will be added to
5430 domain-local (i.e. not containing any dot character) host
5431 definitions.
cccac0a2 5432DOC_END
5433
5473c134 5434NAME: dns_testnames
5435TYPE: wordlist
5436LOC: Config.dns_testname_list
5437DEFAULT: none
5438DEFAULT_IF_NONE: netscape.com internic.net nlanr.net microsoft.com
5439DOC_START
5440 The DNS tests exit as soon as the first site is successfully looked up
5441
5442 This test can be disabled with the -D command line option.
cccac0a2 5443DOC_END
5444
5473c134 5445NAME: append_domain
5446TYPE: string
5447LOC: Config.appendDomain
5448DEFAULT: none
6a2f3fcf 5449DOC_START
5473c134 5450 Appends local domain name to hostnames without any dots in
5451 them. append_domain must begin with a period.
5452
5453 Be warned there are now Internet names with no dots in
5454 them using only top-domain names, so setting this may
5455 cause some Internet sites to become unavailable.
5456
5457Example:
5458 append_domain .yourdomain.com
6a2f3fcf 5459DOC_END
5460
5473c134 5461NAME: ignore_unknown_nameservers
5462TYPE: onoff
5463LOC: Config.onoff.ignore_unknown_nameservers
df6fd596 5464DEFAULT: on
5465DOC_START
5473c134 5466 By default Squid checks that DNS responses are received
5467 from the same IP addresses they are sent to. If they
5468 don't match, Squid ignores the response and writes a warning
5469 message to cache.log. You can allow responses from unknown
5470 nameservers by setting this option to 'off'.
df6fd596 5471DOC_END
5472
cc192b50 5473NAME: dns_v4_fallback
5474TYPE: onoff
5475DEFAULT: on
5476LOC: Config.onoff.dns_require_A
5477DOC_START
5478 Standard practice with DNS is to lookup either A or AAAA records
5479 and use the results if it succeeds. Only looking up the other if
5480 the first attempt fails or otherwise produces no results.
5481
5482 That policy however will cause squid to produce error pages for some
5483 servers that advertise AAAA but are unreachable over IPv6.
5484
5485 If this is ON squid will always lookup both AAAA and A, using both.
5486 If this is OFF squid will lookup AAAA and only try A if none found.
5487
5488 WARNING: There are some possibly unwanted side-effects with this on:
5489 *) Doubles the load placed by squid on the DNS network.
5490 *) May negatively impact connection delay times.
5491DOC_END
5492
6bc15a4f 5493NAME: ipcache_size
5494COMMENT: (number of entries)
5495TYPE: int
5496DEFAULT: 1024
5497LOC: Config.ipcache.size
5498DOC_NONE
5499
5500NAME: ipcache_low
5501COMMENT: (percent)
5502TYPE: int
5503DEFAULT: 90
5504LOC: Config.ipcache.low
5505DOC_NONE
5506
5507NAME: ipcache_high
5508COMMENT: (percent)
5509TYPE: int
5510DEFAULT: 95
5511LOC: Config.ipcache.high
5512DOC_START
5513 The size, low-, and high-water marks for the IP cache.
5514DOC_END
5515
5516NAME: fqdncache_size
5517COMMENT: (number of entries)
5518TYPE: int
5519DEFAULT: 1024
5520LOC: Config.fqdncache.size
5521DOC_START
5522 Maximum number of FQDN cache entries.
5523DOC_END
5524
a58ff010 5525COMMENT_START
5473c134 5526 MISCELLANEOUS
a58ff010 5527 -----------------------------------------------------------------------------
5528COMMENT_END
5529
5473c134 5530NAME: memory_pools
a58ff010 5531COMMENT: on|off
5473c134 5532TYPE: onoff
5533DEFAULT: on
5534LOC: Config.onoff.mem_pools
a58ff010 5535DOC_START
5473c134 5536 If set, Squid will keep pools of allocated (but unused) memory
5537 available for future use. If memory is a premium on your
5538 system and you believe your malloc library outperforms Squid
5539 routines, disable this.
a58ff010 5540DOC_END
5541
5473c134 5542NAME: memory_pools_limit
5543COMMENT: (bytes)
5544TYPE: b_size_t
5545DEFAULT: 5 MB
5546LOC: Config.MemPools.limit
ec1245f8 5547DOC_START
5473c134 5548 Used only with memory_pools on:
5549 memory_pools_limit 50 MB
ec1245f8 5550
5473c134 5551 If set to a non-zero value, Squid will keep at most the specified
5552 limit of allocated (but unused) memory in memory pools. All free()
5553 requests that exceed this limit will be handled by your malloc
5554 library. Squid does not pre-allocate any memory, just safe-keeps
5555 objects that otherwise would be free()d. Thus, it is safe to set
5556 memory_pools_limit to a reasonably high value even if your
5557 configuration will use less memory.
ec1245f8 5558
5473c134 5559 If set to zero, Squid will keep all memory it can. That is, there
5560 will be no limit on the total amount of memory used for safe-keeping.
ec1245f8 5561
5473c134 5562 To disable memory allocation optimization, do not set
5563 memory_pools_limit to 0. Set memory_pools to "off" instead.
5564
5565 An overhead for maintaining memory pools is not taken into account
5566 when the limit is checked. This overhead is close to four bytes per
5567 object kept. However, pools may actually _save_ memory because of
5568 reduced memory thrashing in your malloc library.
ec1245f8 5569DOC_END
5570
5473c134 5571NAME: forwarded_for
67c06f0d
AJ
5572COMMENT: on|off|transparent|truncate|delete
5573TYPE: string
5473c134 5574DEFAULT: on
5575LOC: opt_forwarded_for
5f8252d2 5576DOC_START
67c06f0d
AJ
5577 If set to "on", Squid will append your client's IP address
5578 in the HTTP requests it forwards. By default it looks like:
5f8252d2 5579
5473c134 5580 X-Forwarded-For: 192.1.2.3
5581
67c06f0d 5582 If set to "off", it will appear as
5473c134 5583
5584 X-Forwarded-For: unknown
67c06f0d
AJ
5585
5586 If set to "transparent", Squid will not alter the
5587 X-Forwarded-For header in any way.
5588
5589 If set to "delete", Squid will delete the entire
5590 X-Forwarded-For header.
5591
5592 If set to "truncate", Squid will remove all existing
5593 X-Forwarded-For entries, and place itself as the sole entry.
5f8252d2 5594DOC_END
5595
5473c134 5596NAME: cachemgr_passwd
5597TYPE: cachemgrpasswd
5598DEFAULT: none
5599LOC: Config.passwd_list
5f8252d2 5600DOC_START
5473c134 5601 Specify passwords for cachemgr operations.
5f8252d2 5602
5473c134 5603 Usage: cachemgr_passwd password action action ...
5604
5605 Some valid actions are (see cache manager menu for a full list):
5606 5min
5607 60min
5608 asndb
5609 authenticator
5610 cbdata
5611 client_list
5612 comm_incoming
5613 config *
5614 counters
5615 delay
5616 digest_stats
5617 dns
5618 events
5619 filedescriptors
5620 fqdncache
5621 histograms
5622 http_headers
5623 info
5624 io
5625 ipcache
5626 mem
5627 menu
5628 netdb
5629 non_peers
5630 objects
5631 offline_toggle *
5632 pconn
5633 peer_select
b360c477 5634 reconfigure *
5473c134 5635 redirector
5636 refresh
5637 server_list
5638 shutdown *
5639 store_digest
5640 storedir
5641 utilization
5642 via_headers
5643 vm_objects
5644
5645 * Indicates actions which will not be performed without a
5646 valid password, others can be performed if not listed here.
5647
5648 To disable an action, set the password to "disable".
5649 To allow performing an action without a password, set the
5650 password to "none".
5651
5652 Use the keyword "all" to set the same password for all actions.
5653
5654Example:
5655 cachemgr_passwd secret shutdown
5656 cachemgr_passwd lesssssssecret info stats/objects
5657 cachemgr_passwd disable all
5f8252d2 5658DOC_END
5659
5473c134 5660NAME: client_db
a58ff010 5661COMMENT: on|off
5473c134 5662TYPE: onoff
5663DEFAULT: on
5664LOC: Config.onoff.client_db
a58ff010 5665DOC_START
5473c134 5666 If you want to disable collecting per-client statistics,
5667 turn off client_db here.
a58ff010 5668DOC_END
5669
5473c134 5670NAME: refresh_all_ims
5671COMMENT: on|off
5672TYPE: onoff
5673DEFAULT: off
5674LOC: Config.onoff.refresh_all_ims
a58ff010 5675DOC_START
5473c134 5676 When you enable this option, squid will always check
5677 the origin server for an update when a client sends an
5678 If-Modified-Since request. Many browsers use IMS
5679 requests when the user requests a reload, and this
5680 ensures those clients receive the latest version.
a58ff010 5681
5473c134 5682 By default (off), squid may return a Not Modified response
5683 based on the age of the cached version.
78e8cfc4 5684DOC_END
5685
5473c134 5686NAME: reload_into_ims
5687IFDEF: HTTP_VIOLATIONS
12b91c99 5688COMMENT: on|off
5473c134 5689TYPE: onoff
5690DEFAULT: off
5691LOC: Config.onoff.reload_into_ims
12b91c99 5692DOC_START
5473c134 5693 When you enable this option, client no-cache or ``reload''
5694 requests will be changed to If-Modified-Since requests.
5695 Doing this VIOLATES the HTTP standard. Enabling this
5696 feature could make you liable for problems which it
5697 causes.
5698
5699 see also refresh_pattern for a more selective approach.
12b91c99 5700DOC_END
5701
5473c134 5702NAME: maximum_single_addr_tries
5703TYPE: int
5704LOC: Config.retry.maxtries
5705DEFAULT: 1
a58ff010 5706DOC_START
5473c134 5707 This sets the maximum number of connection attempts for a
5708 host that only has one address (for multiple-address hosts,
5709 each address is tried once).
5710
5711 The default value is one attempt, the (not recommended)
5712 maximum is 255 tries. A warning message will be generated
5713 if it is set to a value greater than ten.
5714
5715 Note: This is in addition to the request re-forwarding which
5716 takes place if Squid fails to get a satisfying response.
a58ff010 5717DOC_END
5718
5473c134 5719NAME: retry_on_error
a58ff010 5720TYPE: onoff
5473c134 5721LOC: Config.retry.onerror
a58ff010 5722DEFAULT: off
5723DOC_START
5473c134 5724 If set to on Squid will automatically retry requests when
5725 receiving an error response. This is mainly useful if you
5726 are in a complex cache hierarchy to work around access
5727 control errors.
5f8252d2 5728DOC_END
5729
5473c134 5730NAME: as_whois_server
5f8252d2 5731TYPE: string
5473c134 5732LOC: Config.as_whois_server
5733DEFAULT: whois.ra.net
5734DEFAULT_IF_NONE: whois.ra.net
5f8252d2 5735DOC_START
5473c134 5736 WHOIS server to query for AS numbers. NOTE: AS numbers are
5737 queried only when Squid starts up, not for every request.
5f8252d2 5738DOC_END
5739
5473c134 5740NAME: offline_mode
5f8252d2 5741TYPE: onoff
5473c134 5742LOC: Config.onoff.offline
5f8252d2 5743DEFAULT: off
5744DOC_START
5473c134 5745 Enable this option and Squid will never try to validate cached
5746 objects.
a58ff010 5747DOC_END
5748
5473c134 5749NAME: uri_whitespace
5750TYPE: uri_whitespace
5751LOC: Config.uri_whitespace
5752DEFAULT: strip
a58ff010 5753DOC_START
5473c134 5754 What to do with requests that have whitespace characters in the
5755 URI. Options:
a58ff010 5756
5473c134 5757 strip: The whitespace characters are stripped out of the URL.
5758 This is the behavior recommended by RFC2396.
5759 deny: The request is denied. The user receives an "Invalid
5760 Request" message.
5761 allow: The request is allowed and the URI is not changed. The
5762 whitespace characters remain in the URI. Note the
5763 whitespace is passed to redirector processes if they
5764 are in use.
5765 encode: The request is allowed and the whitespace characters are
5766 encoded according to RFC1738. This could be considered
5767 a violation of the HTTP/1.1
5768 RFC because proxies are not allowed to rewrite URI's.
5769 chop: The request is allowed and the URI is chopped at the
5770 first whitespace. This might also be considered a
5771 violation.
5772DOC_END
a58ff010 5773
5473c134 5774NAME: coredump_dir
5775TYPE: string
5776LOC: Config.coredump_dir
5777DEFAULT: none
5778DEFAULT_IF_NONE: none
5779DOC_START
5780 By default Squid leaves core files in the directory from where
5781 it was started. If you set 'coredump_dir' to a directory
5782 that exists, Squid will chdir() to that directory at startup
5783 and coredump files will be left there.
a58ff010 5784
5473c134 5785NOCOMMENT_START
5786# Leave coredumps in the first cache dir
5787coredump_dir @DEFAULT_SWAP_DIR@
5788NOCOMMENT_END
5789DOC_END
a58ff010 5790
5473c134 5791NAME: chroot
5792TYPE: string
5793LOC: Config.chroot_dir
a58ff010 5794DEFAULT: none
5795DOC_START
5473c134 5796 Use this to have Squid do a chroot() while initializing. This
5797 also causes Squid to fully drop root privileges after
5798 initializing. This means, for example, if you use a HTTP
5799 port less than 1024 and try to reconfigure, you will may get an
5800 error saying that Squid can not open the port.
5801DOC_END
a58ff010 5802
5473c134 5803NAME: balance_on_multiple_ip
5804TYPE: onoff
5805LOC: Config.onoff.balance_on_multiple_ip
cc192b50 5806DEFAULT: off
5473c134 5807DOC_START
cc192b50 5808 Modern IP resolvers in squid sort lookup results by preferred access.
5809 By default squid will use these IP in order and only rotates to
5810 the next listed when the most preffered fails.
5811
5473c134 5812 Some load balancing servers based on round robin DNS have been
5813 found not to preserve user session state across requests
5814 to different IP addresses.
a58ff010 5815
cc192b50 5816 Enabling this directive Squid rotates IP's per request.
a58ff010 5817DOC_END
5818
5473c134 5819NAME: pipeline_prefetch
5820TYPE: onoff
5821LOC: Config.onoff.pipeline_prefetch
5822DEFAULT: off
a58ff010 5823DOC_START
5473c134 5824 To boost the performance of pipelined requests to closer
5825 match that of a non-proxied environment Squid can try to fetch
5826 up to two requests in parallel from a pipeline.
a58ff010 5827
5473c134 5828 Defaults to off for bandwidth management and access logging
5829 reasons.
5830DOC_END
a58ff010 5831
5473c134 5832NAME: high_response_time_warning
5833TYPE: int
5834COMMENT: (msec)
5835LOC: Config.warnings.high_rptm
5836DEFAULT: 0
5837DOC_START
5838 If the one-minute median response time exceeds this value,
5839 Squid prints a WARNING with debug level 0 to get the
5840 administrators attention. The value is in milliseconds.
a58ff010 5841DOC_END
5842
5473c134 5843NAME: high_page_fault_warning
5844TYPE: int
5845LOC: Config.warnings.high_pf
5846DEFAULT: 0
cc9f92d4 5847DOC_START
5473c134 5848 If the one-minute average page fault rate exceeds this
5849 value, Squid prints a WARNING with debug level 0 to get
5850 the administrators attention. The value is in page faults
5851 per second.
5852DOC_END
cc9f92d4 5853
5473c134 5854NAME: high_memory_warning
5855TYPE: b_size_t
5856LOC: Config.warnings.high_memory
904971da 5857DEFAULT: 0 KB
5473c134 5858DOC_START
5859 If the memory usage (as determined by mallinfo) exceeds
904971da 5860 this amount, Squid prints a WARNING with debug level 0 to get
5473c134 5861 the administrators attention.
5862DOC_END
cc9f92d4 5863
5473c134 5864NAME: sleep_after_fork
5865COMMENT: (microseconds)
5866TYPE: int
5867LOC: Config.sleep_after_fork
5868DEFAULT: 0
5869DOC_START
5870 When this is set to a non-zero value, the main Squid process
5871 sleeps the specified number of microseconds after a fork()
5872 system call. This sleep may help the situation where your
5873 system reports fork() failures due to lack of (virtual)
5874 memory. Note, however, if you have a lot of child
5875 processes, these sleep delays will add up and your
5876 Squid will not service requests for some amount of time
5877 until all the child processes have been started.
5878 On Windows value less then 1000 (1 milliseconds) are
5879 rounded to 1000.
cc9f92d4 5880DOC_END
5881
b6696974
GS
5882NAME: windows_ipaddrchangemonitor
5883COMMENT: on|off
5884TYPE: onoff
5885DEFAULT: on
5886LOC: Config.onoff.WIN32_IpAddrChangeMonitor
5887DOC_START
5888 On Windows Squid by default will monitor IP address changes and will
5889 reconfigure itself after any detected event. This is very useful for
5890 proxies connected to internet with dial-up interfaces.
5891 In some cases (a Proxy server acting as VPN gateway is one) it could be
5892 desiderable to disable this behaviour setting this to 'off'.
5893 Note: after changing this, Squid service must be restarted.
5894DOC_END
5895
cccac0a2 5896EOF