Advertisement
Guest User

Untitled

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