Ubuntu 20.04 LTS repository for Squid 4

If recompilation of Squid is not desirable you can always use the online repository at https://squid413-ubuntu20.diladele.com. To use the repository for the first time run the following commands as root user:


# all packages are installed as root
if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1

# add diladele apt key
wget -qO - https://packages.diladele.com/diladele_pub.asc | sudo apt-key add -

# add new repo
echo "deb https://squid413-ubuntu20.diladele.com/ubuntu/ focal main" \
    > /etc/apt/sources.list.d/squid413-ubuntu20.diladele.com.list

# and install
apt-get update && apt-get install -y \
    squid-common \
    squid-openssl \
    squidclient \
    libecap3 libecap3-dev

# change the number of default file descriptors

mkdir -p $OVERRIDE_DIR

# generate the override file
echo "[Service]"         >> $OVERRIDE_CNF
echo "LimitNOFILE=65535" >> $OVERRIDE_CNF

# and reload the systemd
systemctl daemon-reload

If you have installed previous version of Squid 4 from this repo then please run “sudo apt-get update && sudo apt-get upgrade”. Please also check that your current squid.conf file from previous version is not overwritten.


Once again, all scripts mentioned in this tutorial can be downloaded from our GitHub repository. The same version of Squid is used in fully configured web filtering virtual appliance available at our site.