The Squid Team are pleased to announce the release of Squid-5.6.
This new release is available for download from http://www.squid-cache.org/Versions/v5/ or the mirrors.
We welcome feedback and bug reports. If you find a bug, please see http://wiki.squid-cache.org/SquidFaq/BugReporting for how to submit a report with a stack trace.
Although this release is deemed good enough for use in many setups, please note the existence of open bugs against Squid-5.
The Squid-5 change history can be viewed here.
Squid-5 represents a new feature release above Squid-4.
The most important of these new features are:
Most user-facing changes are reflected in squid.conf (see below).
Details in Draft: ICAP Trailers
The Trailers feature from HTTP is being proposed for addition to ICAP, with some modifications.
This implementation complies with version -01 of that draft:
For now Squid logs and ignores all parsed ICAP header fields.
Squid now uses a received IP address as soon as it is needed for request forwarding instead of waiting for all of the potential forwarding destinations to be fully resolved (i.e. complete both IPv4 and IPv6 domain name resolution) before beginning to forward the request.
Instead of obeying dns_v4_first settings, IP family usage order is now primarily controlled by DNS response time: If a DNS AAAA response comes first while Squid is waiting for an IP address, then Squid will use the received IPv6 address(es) first. For previously cached IPs, Squid tries IPv6 addresses first. To control IP address families used by Squid, admins are expected to use firewalls, DNS recursive-resolver configuration, and/or --disable-ipv6. When planning you configuration changes, please keep in mind that the upcoming Happy Eyeballs improvements will favor faster TCP connection establishment, decreasing the impact of DNS resolution timing.
These Happy Eyeballs changes do not affect peer selection: Squid still does not move on to the next selected destination until all IP addresses for the previous destination have been received and tried.
The Cache Manager mgr:ipcache report no longer contains "IPcache Entries In Use" but that info is now available as "cbdata ipcache_entry" row on the mgr:mem page.
This release adds a sample Kerberos group authentication external_acl helper called ext_kerberos_sid_group_acl. It uses ldapsearch from OpenLDAP to lookup the name of an AD group SID.
This helper must be used in with the negotiate_kerberos_auth helper in a Microsft AD or Samba environment.
It reads from the standard input the domain username and a list of group SIDs and tries to match the group SIDs to the AD group SIDs.
This release deprecates use of BerkleyDB in favour of TrivialDB.
The BerkleyDB library code has been moved under a copyright licence which causes problems for many OS distributors. The result of that is that most are no longer providing the latest security supported libdb version.
TrivialDB by comparison has better OS support and security updates along with functionality differences that resolve some long standing issues libdb suffered with parallel concurrent access to the database.
The ext_session_acl and ext_time_quota_acl helpers may now be built with either libdb or libtdb. Preferring libtdb if both are enabled or auto-detected at build time. Use the --without-tdb build option to retain BerkleyDB support.
Please note that the database formats are not guaranteed to be identical. So when migrating it is recommended to erase the database file(s) and use the helpers functionality to rebuild it as needed.
Details in RFC 8586
Squid now uses the CDN-Loop header as a source for loop detection.
This header is only relevant to CDN installations. For which the surrogate_id configuration directive specifies the authoritative ID.
Squid does not add this header by default, preferring to use the Via mechanism instead. Administrators may add it to requests with the request_header_add directive or remove with request_header_remove.
Squid now supports forwarding of bumped, re-encrypted HTTPS requests through a cache_peer using a standard HTTP CONNECT tunnel.
No support for triggering client authentication when a cache_peer configuration instructs the bumping Squid to relay authentication info contained in client CONNECT request. The bumping Squid still responds with HTTP 200 (Connection Established) to the client CONNECT request (to see TLS client handshake) before selecting the cache_peer.
HTTPS cache_peers are not yet supported primarily because Squid cannot yet do TLS-in-TLS.
There have been changes to Squid's configuration file since Squid-4.
This section gives a thorough account of those changes in three categories:
New access control to customize authentication schemes presence and order in Squid generated HTTP 401 (Unauthorized) and 407 (Proxy Authentication Required) responses.
New access control to restrict collapsed forwarding to a subset of eligible HTTP, ICP and HTCP requests.
New directive to specify the minimum delay between opening spare connections to any server.
New directive to specify the maximum number of spare connections to any server.
New directive to specify the minimum delay between opening a primary to-server connection and opening a spare to-server connection for the same transaction.
New directive to control client-initiated and server-confirmed switching from HTTP to another protocol using HTTP/1.1 Upgrade mechanism.
New access control to apply a Netfilter CONNMARK value to a TCP client connection.
New access control to apply a Netfilter MARK value to packets being transmitted on a client TCP connection.
New access control to configure client response bandwidth limits. This feature is a port and update of the class 6 / Client Delay Pools feature planned for the abandoned Squid-2.8 series.
New access control to determines whether a specific named response delay pool is used for the HTTP transaction.
Replacement for collapsed_forwarding_shared_entries_limit.
The CONNECT ACL definition is now built-in.
New annotate_client type to annotate a client TCP connection. These annotations can be used by other ACLs, logs or helpers and persist until the client TCP connection is closed.
New annotate_transaction type to annotate an HTTP transaction. Annotations can be used by other ACLs or helpers and persist until logging of the HTTP transaction is completed.
New value GeneratingCONNECT for the at_step type to match when Squid is about to send a CONNECT request to a cache peer.
Replaced clientside_mark with client_connection_mark type to match Netfilter CONNMARK of the client TCP connection.
New reservation-timeout= option to allow NTLM and Negotiate helpers to forget about clients with outstanding authentication requests.
Added support for CP1251 charset conversion when utf8 option is configured.
Now disabled when --disable-auth build parameter is used.
Now disabled when --disable-auth build parameter is used.
Now disabled when --disable-auth build parameter is used.
New code A to display Squid listening IP address the client TCP connection was connected to.
Squid-4 removal of the custom parser introduced a bug which caused the default ESI parser library to be unpredictable. Squid-5.5 release restores the documented default of libxml2 as most preferred, with libexpat as alternative.
New worker-queues option to have TCP stack maintain dedicated listening queue for each worker in SMP.
New worker-queues option to have TCP stack maintain dedicated listening queue for each worker in SMP.
New CONDITIONAL_AUTH flag for sslflags= option to request client certificate(s) but not reject clients without any.
Squid-5.5 will no longer use tls-clientca= certificates as possible intermediary CA for the server CA certificate chain when OpenSSL library supports SSL_MODE_NO_AUTO_CHAIN mode.
New ssl::<cert macro code to display received server X.509 certificate in PEM format.
New proxy_protocol::>h code to display received PROXY protocol version 2 TLV values.
New master_xaction code to display Squids internal transaction ID.
New CF value for Ss code to indicate the response was handled by Collapsed Forwarding.
New TLS/1.3 value for ssl::>negotiated_version code to indicate the request was received from client using TLS/1.3.
New TLS/1.3 value for ssl::<negotiated_version code to indicate the response was received from server using TLS/1.3.
Codes rm, <rm and >rm display "-" instead of the made-up method NONE.
Replaced by mark_client_packet.
Replaced by shared_transient_entries_limit.
Removed. The new "Happy Eyeballs" algorithm uses received IP addresses as soon as they are needed.
Firewall rules prohibiting IPv6 TCP connections remain the preferred configuration method for 'disabling' IPv6 connectivity, with DNS recursive-resolver configuration also available.
There have been some changes to Squid's build configuration since Squid-4.
This section gives an account of those changes in three categories:
New option to determine whether TrivialDB support is used, and build against local custom installs.
Samba TrivialDB is now the preferred database used by the ext_session_acl and ext_time_quota_acl helpers, deprecating use of BerkleyDB.
No longer implies --disable-inline option (which is removed).
New helper type kerberos_sid_group to match group= annotations AD Domain group SID.
Removed. Use compiler flags instead if necessary.
Removed compiler flag. Use run-time environment variable MEMPOOLS=1 to enable chunked memory pools instead.
Some squid.conf options which were available in Squid-2.7 are not yet available in Squid-5
If you need something to do then porting one of these from Squid-2 is most welcome.
Not yet ported from 2.6
monitorinterval= not yet ported from 2.6
monitorsize= not yet ported from 2.6
monitortimeout= not yet ported from 2.6
monitorurl= not yet ported from 2.6
Not yet ported from 2.6
Not yet ported from 2.6
Not yet ported from 2.7
Not yet ported from 2.6
Not yet ported from 2.6
Not yet ported from 2.6
Not yet ported from 2.6
stale-while-revalidate= not yet ported from 2.7
ignore-stale-while-revalidate= not yet ported from 2.7
negative-ttl= not yet ported from 2.7
Not yet ported from 2.7
Not yet ported from 2.7
Copyright (C) 1996-2022 The Squid Software Foundation and contributors
Squid software is distributed under GPLv2+ license and includes contributions from numerous individuals and organizations. Please see the COPYING and CONTRIBUTORS files for details.