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