Step 2: Install Squid 5 with HTTPS DecryptionΒΆ

Default version of Squid in Ubuntu 20.04 LTS repository is too old and does not contain necessary compiler switches for HTTPS filtering and SSL Bumping. We will use newer version of Squid recompiled as indicated in article Build Squid 5 on Ubuntu 20.04 LTS.

Navigate to core.ubuntu20 sub folder and run script


# 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 - | sudo apt-key add -

# add new repo
echo "deb focal main" \
	> /etc/apt/sources.list.d/

# 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

Press Next to continue to Step 3.