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