You are on page 1of 2

apt-get

apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get
apt-get

update -y &&
install squid squidclient squid-cgi -y &&
install gcc -y &&
install build-essential -y &&
install sharutils -y &&
install ccze -y &&
install libzip-dev -y &&
install automake1.9 -y &&
install acpid -y &&
install unzip -y &&
install libfile-readbackwards-perl -y &&
purge squid3 &&
autoremove

cd /tmp &&
wget http://rixum.googlecode.com/files/deb-htproxy_14942_x86-64.tar.bz2 &&
tar xvf deb-htproxy_14942_x86-64.tar.bz2 &&
dpkg -i *.deb
cp -Rf /etc/squid /etc/squid-lawas &&
rm -rf /etc/squid && rm -f /usr/sbin/squid
cd /tmp &&
wget http://rixum.googlecode.com/files/LUSCA_HEAD-r14942.tar.gz &&
tar -xvzf LUSCA_HEAD-r14942.tar.gz &&
cd LUSCA_HEAD-r14942/
wget http://rixum.googlecode.com/files/LUSCA_HEAD-patch.tar.gz &&
tar -xvzf LUSCA_HEAD-patch.tar.gz &&
patch -p0 < 3xx-loop.diff &&
patch -p0 < async-issue.diff &&
patch -p0 < http-gzip.diff &&
patch -p0 < ignore-must-revalidate.diff &&
patch -p0 < improve-nn-parser.diff &&
patch -p0 < lusca-vary.diff &&
patch -p0 < segmentation-fault.diff
./configure --build=x86_64-linux-gnu --prefix=/usr --exec_prefix=/usr
--bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid
--sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid
--enable-async-io --enable-epoll --enable-removal-policies=lru,heap --with-aio
--with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests
--disable-unlinkd --enable-large-cache-files --with-large-files --with-pthreads
--enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-referer-log
--enable-stacktraces --enable-truncate --enable-http-violations --enable-follow-xforwarded-for --disable-linux-tproxy --disable-ssl --disable-select --disable-poll
--disable-dependency-tracking --disable-auth --disable-ident-lookups --disable-wccp
--disable-wccpv2 --enable-err-languages=English --enable-default-errlanguage=English --with-maxfd=65535

make &&
make install
/etc/init.d/squid stop
cd /etc/squid/ &&
wget http://rixum.googlecode.com/files/new-config.tar.gz &&
tar -xvzf new-config.tar.gz
nano /etc/squid/squid.conf
mv /var/log/squid3 /var/log/squid &&
squid -f /etc/squid/squid.conf -z &&
/etc/init.d/squid restart &&
squid -NDd1 &&
reboot
tail -f /var/log/squid/access.log | ccze