IT: ProxyServer: Squid (squid-cache)

 

http://www.squid-cache.org/

Squid: Optimising Web Delivery

Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.

Making the most of your Internet Connection

Squid is used by hundreds of Internet Providers world-wide to provide their users with the best possible web access. Squid optimises the data flow between client and server to improve performance and caches frequently-used content to save bandwidth. Squid can also route content requests to servers in a wide variety of ways to build cache server hierarchies which optimise network throughput.

Website Content Acceleration and Distribution

Thousands of web-sites around the Internet use Squid to drastically increase their content delivery. Squid can reduce your server load and improve delivery speeds to clients. Squid can also be used to deliver content from around the world - copying only the content being used, rather than inefficiently copying everything. Finally, Squid's advanced content routing configuration allows you to build content clusters to route and load balance requests via a variety of web servers.

[The Squid systems] are currently running at a hit-rate of approximately 75%, effectively quadrupling the capacity of the Apache servers behind them. This is particularly noticeable when a large surge of traffic arrives directed to a particular page via a web link from another site, as the caching efficiency for that page will be nearly 100%. - Wikimedia Deployment Information.

Want to learn more?

The Squid project provides a number of resources to assist users design, implement and support Squid installations. Please browse the Documentation and Support sections for more information.


http://www.squid-cache.org/Download/

Getting Squid

Obtaining Squid is easy! You have a number of choices:

Many operating systems include Squid in their ports/packages system. This is an easy way to get Squid up and running quickly, and a good way to keep up-to-date with new Squid versions.

You might also like to download an official source code release from here or one of the mirror sites. This allows you to customize your Squid installation when you compile it. After downloading, refer to Compiling Squid for assistance with compiling the source code.

In some cases, you may want (or be forced) to download a binary package of Squid. They are available for a variety of platforms, including Windows.

Finally, if you are a developer, or want to closely track the source code, feel free to get it from the Squid server.

 


Binary Packages for Squid

 

 

 

Do you have pre-compiled binaries available?

The squid core team members do not have the resources to make pre-compiled binaries available. Instead, we invest effort into making the source code very portable and rely on others to provide such packaging as needed.

 

How do I install a binary for ...

Most operating system distributions provide packages in the formats appropriate for direct install on those systems. Please thank them.

 

CentOS

Squid bundles with CentOS. However there is apparently no publicly available information about where to find the packages or who is bundling them. EPEL, DAG and RPMforge repositories appear to no longer contain any files. Other sources imply that CentOS is an alias for RHEL (we know otherwise). Although, yes, the RHEL packages should work on CentOS.

Maintainer: unknown

Bug Reporting: http://bugs.centos.org/search.php?category=squid&sortby=last_updated&hide_status_id=-2

Eliezer: 25/Apr/2017 - I have tested CentOS 7 RPMs for squid 3.5.25 on a small scale and it seems to be stable enough for 200-300 users as a forward proxy and basic features.

 

 

Stable Repository Package (like epel-release)

To install run the command:

yum install http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm -y

or

rpm -i http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm

and then install squid using the command:

yum install squid

 

Squid Beta release

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS 7.

  • Current Beta: 4.0.21-1 based on the latest release.

The RPMs was separated into three files:

  • squid-VERSION.rpm
  • squid-helpers-VERSION.rpm
  • squid-debuginfo-VERSION.rpm

The core squid rpm will provide the basic squid forward, intercept and tproxy modes while also allowing ssl-bump. The helpers package contains all sorts of other helpers which are bundled with squid sources but are not essential for a basic and simple proxy.

 

[squid]
name=Squid repo for CentOS Linux - 7 
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/$releasever/beta/$basearch/
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid

 

Squid-3.5

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS 6 and 7

  • Current: 3.5.25-1 based on the latest release.

The RPMs was separated into three files:

  • squid-VERSION.rpm
  • squid-helpers-VERSION.rpm
  • squid-debuginfo-VERSION.rpm

The core squid rpm will provide the basic squid forward, intercept and tproxy modes while also allowing ssl-bump. The helpers package contains all sorts of other helpers which are bundled with squid sources but are not essential for a basic and simple proxy.

 

[squid]
name=Squid repo for CentOS Linux - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/$releasever/$basearch/
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid

 

Squid-3.4

  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS 6

  • Eliezer: As of 3.4.0.2 I am releasing the squid RPMs for two CPU classes OS, i686 and x86_64.

  • Since somewhere in the 3.4 tree there was a change in the way the squid was packaged by me:

The RPMs was separated into three files:

  • squid-VERSION.rpm
  • squid-helpers-VERSION.rpm
  • squid-debuginfo-VERSION.rpm

The core squid rpm will provides the basic squid forward, intercept and tproxy modes while also allowing ssl-bump. The helpers package contains all sorts of other helpers which are bundled with squid sources but are not essential for a basic and simple proxy.

There are couple issues that needs to be fixed since there was some data loss in the transition from my old server to another.

 

[squid]
name=Squid repo for CentOS Linux 6 - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0

Install Procedure:

yum update
yum install squid

 

Squid-3.3

  • Official package bundled with CentOS 7

Install Procedure:

yum update
yum install squid
  • Maintainer: Unofficial packages built by Eliezer Croitoru which can be used on CentOS 6

 

[squid]
name=Squid repo for CentOS Linux 6 - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/6/$basearch
failovermethod=priority
enabled=1
gpgcheck=0
  • {i}Eliezer: a nice build from a friend that is hosted on SUSE servers.

at: http://software.opensuse.org/download.html?project=home%3Aairties%3Aserver&package=squid3

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:airties:server/CentOS_CentOS-6/home:airties:server.repo
yum install squid3

 

Squid-3.1

  • Official package bundled with CentOS 6.6

Install Procedure:

yum update
yum install squid

Debian

Packages available for Squid on multiple architectures.

Maintainer: Luigi Gangitano

 

Squid-4

Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid

  • {i} Debian Stretch or newer required.

    {i}Squid-4 is still a beta release so packages in Debian are still experimental.

Add this to /etc/apt/sources.list.d/experimental to enable the Debian experimental repository

deb http://deb.debian.org/debian experimental main

Install Procedure:

 aptitude -t experimental install squid

The Debian squid team use git to manage these packages creation. If the latest code is not yet in the apt repository you can build your own cutting-edge package as follows:

# install build dependencies
sudo apt-get -t experimental build-dep squid3 squid
sudo apt-get install git git-buildpackage

# fetch the Debian package repository managed by the Debian pkg-squid team
git clone https://anonscm.debian.org/git/pkg-squid/pkg-squid.git/
cd pkg-squid && git checkout experimental

# the actual build
gbp buildpackage --git-debian-branch=experimental --git-upstream-tag=HEAD
cd ..

 

  • /!\ the gbp command may fail to sign the packages if you are not a Debian maintainer yourself. That is okay.

Install Procedure:

 sudo dpkg -i squid-common_4.*.deb squid_4.*.deb

 

Squid-3.5

Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid

  • {i} Debian Stretch or newer

Install Procedure:

 aptitude install squid

 

Squid-3.4 / Squid-3.1

Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid3

  • {i} Debian Jesse or older.

Install Procedure:

 aptitude install squid3

 

Squid-2.7

Bug Reports: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=squid

  • {i} Debian Jesse or older.

Install Procedure:

 aptitude install squid

Fedora

Binary RPMs for Fedora are available via the Fedora download/update servers for all active Fedora versions like most other free software.

Package information: https://apps.fedoraproject.org/packages/squid

Bug Reports: https://apps.fedoraproject.org/packages/squid/bugs

 

Squid-3.5

Available on Fedora 22 - 25.

Install Procedure:

yum install squid

 

Squid-3.4

Available on Fedora 21.

Install Procedure:

yum install squid

 

Squid-3.3

Available on Fedora 19 - 20.

Install Procedure:

yum install squid

Fink

Packages available in binary or source for Squid on i86 64-bit, i86 32-bit and PowerPC architectures.

Package Information: http://pdb.finkproject.org/pdb/package.php/squid-unified

Maintainer: Benjamin Reed

 

 

 

Squid-3.1

Package in source distribution.

Install Procedure:

apt-get install squid-unified

 

Squid-2.6

Packaged in 10.5 binary distribution.

Install Procedure:

apt-get install squid-unified

 

Squid-2.5

Packaged in 10.4 binary distribution.

Install Procedure:

apt-get install squid-unified

FreeBSD

Binaries for Alpha and Intel platforms, from the FreeBSD ports collection. http://www.freebsd.org/cgi/ports.cgi?query=^squid&stype=name

Maintainer: Thomas-Martin Seck

There are (as of June 2014) three different Squid packages to choose from:

 

Squid-3.3

Bug Reports: http://www.freebsd.org/cgi/query-pr-summary.cgi?text=squid33

Install Procedure:

 pkg_add -r squid33

 

Squid-3.2

Bug Reports: http://www.freebsd.org/cgi/query-pr-summary.cgi?text=squid32

Install Procedure:

 pkg_add -r squid32

 

Squid-2.7

Bug Reports: http://www.freebsd.org/cgi/query-pr-summary.cgi?text=squid

Install Procedure:

 pkg_add -r squid

Gentoo

Maintainer: Eray Aslan

Bug Reporting: http://bugs.gentoo.org/buglist.cgi?quicksearch=squid-

Install Procedure (for the latest version in your selected portage tree):

 emerge squid

 

Squid-3.3

Install Procedure:

 emerge =squid-3.3*

 

Squid-3.2

Install Procedure:

 emerge =squid-3.2*

 

Squid-3.1

Install Procedure:

 emerge =squid-3.1*

 

Version Notice

If you try and install a version not available in portage, such as 2.5, you will see the following notice:

emerge: there are no ebuilds to satisfy "=net-proxy/squid-2.5*".

Mandrivia

Packager: Oden Eriksson

Maintainer: Luis Daniel Lucio Quiroz

Bug Reporting: https://qa.mandriva.com/buglist.cgi?quicksearch=squid

 

Squid-3.1

  • /!\ experimental packages. Not yet in official distribution.

Maintainer: Luis Daniel Lucio Quiroz

Download: http://kenobi.mandriva.com/~dlucio/

Install Procedure:

 (unknown)

 

Squid-3.0

Maintainer: Luis Daniel Lucio Quiroz

Download: http://www.rpmfind.net//linux/RPM/mandriva/2009.1/i586/media/main/release/squid-3.0-14mdv2009.1.i586.html

Install Procedure:

 (unknown)

 

Squid-2.7

Install Procedure:

 urpmi squid

NetBSD

OpenSUSE

 

 

Maintainer: appears to be Christian Wittmer

Bug Reporting: https://bugzilla.novell.com/buglist.cgi?quicksearch=squid

Latest Package: https://build.opensuse.org/package/show/server:proxy/squid

 

Squid-3.5

https://software.opensuse.org/package/squid

Install Procedure:

 

 

 

 

RedHat Enterprise Linux (RHEL)

 

Eliezer Croitoru maintains squid packages for Red Hat Enterprise Linux. These packages are unofficial and are not supported by Red Hat. They are intended for RHEL users who would like to try newer squid packages than the version Red Hat supplies.

Lubos Uhliarik is the maintainer of the Red Hat official packages as of 2015-04-21.

 

Squid-3.5

 

Squid-3.4

Slackware

There are apparently no official Slackware distributed packages of Squid. Packages are instead built and supplied by volunteers from the slackware user community.

 

 

 

 

 

 

 

 

 

 

Squid-3.4

Maintainer: David Somero

Source: SlackBuilds

 

Squid-3.3

Unofficial package provided by Helmut Hullen can be found in:

 

Squid-3.1

Maintainer: David Somero

Source: SlackBuilds

 

 

 

 

 

 

Squid-3.x

Maintainer: David Somero

Bug Reporting: http://slackbuilds.org/howto/

 

 

 

 

 

Solaris

Squid-2 is distributed as part of the standard Solaris packages repository. To install it, simply use (as root)

 pkg install SUNWsquid

Configuration files will then be stored in /etc/squid, user-accessible executables such as squidclient in /usr/bin, while the main squid executable will be in /usr/squid/sbin.

http://www.opencsw.org/packages/squid/ also hosts binary Squid packages.

Squid-2.7

 

 pkg-get -i squid

SLES

  • /!\ Seeking information:

    • what exactly are the available versions on SLES? both official and semi-official

Maintainer: unknown

 

Squid-2.7

Bug Reporting: https://bugzilla.novell.com/buglist.cgi?quicksearch=squid

Install Procedure:

 

 

 

Ubuntu

Packages available for Squid on multiple architectures.

  • Maintainer: Luigi Gangitano

 

Squid-3.3

Bug Reports: https://bugs.launchpad.net/ubuntu/+source/squid3

  • {i} Ubuntu 12.04 (Precise) or newer.

Install Procedure:

 

 aptitude install squid

 

Squid-3.1

Bug Reports: https://bugs.launchpad.net/ubuntu/+source/squid3

  • {i} Ubuntu 11.10 (Oneiric) or older.

Install Procedure:

 

 aptitude install squid3

Windows

Packages available for Squid on multiple environments.

 

Squid-3.5

Maintainer: Rafael Akchurin, Diladele B.V.

Bug Reporting: (about the installer only) https://github.com/diladele/squid3-windows/issues

 

MSI installer packages for Windows are at:

 

Squid-3.3

 

Bug Reporting: see https://cygwin.com/problems.html

Binary packages for the Cygwin environment on Windows are at:

 

Squid-2.7

Maintainer: GuidoSerassio of Acme Consulting S.r.l.

Bug Reports: http://bugs.squid-cache.org/

Binary packages built using the Microsoft toolchain for Windows NT/2000/XP/2003 are at http://squid.acmeconsulting.it/

 

 


 

SquidFaq/BinaryPackages (last edited 2011-07-05 11:38:54 by AmosJeffries)


 

Tags