Make build system and compile Squid 3.5
1) Install Debian 9 (amd64) from net install ISO. Make a minimal installation.
2) apt-get -y update ; apt-get -y upgrade ; apt-get -y install openssh-server net-tools
3) apt-get -y install openssl devscripts build-essential fakeroot libdbi-perl libssl1.0-dev
4) cd ~ ; apt-get source -y squid3 # You may ignore the following warning: W: Download is performed unsandboxed as root as file 'squid3_3.5.23-5+deb9u1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
5) apt-get build-dep -y squid3
6) cd squid3-3.5.23
7) vi debian/rules # Make sure the following is defined in the end for "DEB_CONFIGURE_EXTRA_FLAGS":
--with-default-user=proxy \
--enable-ssl \
--enable-ssl-crtd \
--with-openssl \
--disable-ipv6
8) debuild -us -uc # .deb packages will be in ~/

Installation of .deb packages
*) If target machine is different from where you built Squid, install Debian 9 (amd64) from net install ISO. Make a minimal installation.
1) apt-get -y install logrotate net-tools firewalld openssh-server apache2-utils openssl libdbi-perl devscripts
› Continue reading...