Step 2: Install Squid ProxyΒΆ
Run the following commands to install the Squid proxy with OpenSSL HTTPS decryption support.
#!/bin/bash
# all packages are installed as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
# install squid
apt install -y squid-openssl squidclient sudo
# change the number of default file descriptors
OVERRIDE_DIR=/etc/systemd/system/squid.service.d
OVERRIDE_CNF=$OVERRIDE_DIR/override.conf
mkdir -p $OVERRIDE_DIR
# generate the override file
rm $OVERRIDE_CNF
echo "[Service]" >> $OVERRIDE_CNF
echo "LimitNOFILE=65535" >> $OVERRIDE_CNF
# and reload the systemd
systemctl daemon-reload
Press Next to continue to Step 3.