Install Squid Proxy on Ubuntu

>> 1. Squid stores web files from previous requests to speed up future transfers.
>> 2. ACLs (Access Control Lists) for user resources.
>> 3. Bypassing website / domain filters.

First Install Dependencies

# apt-get install build-essential
[for configure: error: Basic auth helper LDAP … found but cannot be built]
# apt-get build-dep squid3

Download & Configure
# wget -c http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.12.tar.gz -O – | tar -xz -C /home

# ./configure --build="x86_64-linux-gnu" --prefix="/usr" --includedir="${prefix}/include" --mandir="${prefix}/share/man" --infodir="${prefix}/share/info" --sysconfdir="/etc" --localstatedir="/var" --libexecdir="${prefix}/lib/squid3" --srcdir="." --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules BUILDCXXFLAGS="-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" --datadir="/usr/share/squid" --sysconfdir="/etc/squid" --libexecdir="/usr/lib/squid" --mandir="/usr/share/man" --enable-inline --disable-arch-native --enable-async-io="8" --enable-storeio="ufs,aufs,diskd,rock" --enable-removal-policies="lru,heap" --enable-delay-pools --enable-cache-digests --enable-icap-client --enable-follow-x-forwarded-for --enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB" --enable-auth-digest="file,LDAP" --enable-auth-negotiate="kerberos,wrapper" --enable-auth-ntlm="fake,smb_lm" --enable-external-acl-helpers="file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group" --enable-url-rewrite-helpers="fake" --enable-eui --enable-esi --enable-icmp --enable-zph-qos --enable-ecap --disable-translation --with-swapdir="/var/spool/squid" --with-logdir="/var/log/squid" --with-pidfile="/var/run/squid.pid" --with-filedescriptors="65536" --with-large-files --with-default-user="proxy" --enable-build-info="Ubuntu linux" --enable-linux-netfilter build_alias="x86_64-linux-gnu" CFLAGS="-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall" LDFLAGS="-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" CXXFLAGS="-DMAXTCPLISTENPORTS=450 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security"

# make & make install

root@server:~# squid -v
Squid Cache: Version 3.5.12
Service Name: squid
Ubuntu linux