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