The very very quick guide to install Squid cache

Very easy steps folks, the old copy-paste:

Step 1: Download the sources:

Squid versions
Example:

wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE12.tar.gz

Step 2: Unpack the sources:

tar xzvf squid-2.5.STABLE12.tar.gz
cd squid-2.5.STABLE12

Step 3: Build the sources:

./configure --prefix=/usr/local/squid --bindir=/bin \
--sbindir=/sbin --sysconfdir=/etc/squid \
--mandir=/usr/man --localstatedir=/var \
--enable-err-languages="English Spanish" \
--enable-linux-netfilter --enable-kill-parent-hack

Step 4: Install:

make && make install

Step 5: Configure:

/etc/squid/squid.conf

http_port 3128
cache_dir ufs /home/cache 1000 16 256 #1000MB = 1GB cache storage
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
acl all src 0.0.0.0/0.0.0.0
acl mynetwork src 192.168.0.0/24
http_access allow mynetwork
http_access deny all
cache_mgr your-email@your-isp.com
cache_effective_user squid
cache_effective_group squid

Step 6: System set-up:

# Create squid user and group
groupadd -g 8000 squid
useradd -d /home/cache -g 8000 -m -s /bin/false squid

# Create log directory and set permissions
mkdir -p /var/log/squid
chown squid /var/log/squid
chmod u+wr /var/log/squid

# Initialize the cache
/sbin/squid -z

Step 7: Start Squid:

/sbin/squid &