Header Ads

Super Proxy Lusca Squid Ubuntu Versi 3

Untuk melakukan instalasi Super Proxy Lusca Squid 3 pada Ubuntu, hal pertama adalah lakukan proses update dan instalasi dependensi pendukung untuk squid. Ubuntu yang digunakan dalam hal ini adalah Ubuntu Server 12.04.4, namun hal ini dapat diterapkan pada ubuntu versi lain.

sudo apt-get update
sudo apt-get install -y squid squidclient squid-cgi gcc build-essential sharutils ccze libzip-dev automake1.9
 
Donwload LUSCA_HEAD-r14809 + Patch
cd /tmp
wget -c http://superproxy.googlecode.com/files/LUSCA_HEAD-r14809-patch.tar.bz2
tar -xvjf LUSCA_HEAD-r14809-patch.tar.bz2
cd LUSCA_HEAD-r14809
make clean
 
Tahap Configure
./configure --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=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536
 
Install Lusca Head
make
sudo make install
 
Download Service Squid
cd /etc/init.d/
mv squid squid.original
wget -c http://superproxy.googlecode.com/files/squid.init.ubuntu
mv squid.init.ubuntu squid
sudo chmod +x /etc/init.d/squid
/etc/init.d/squid stop
 
Buat direktori tunning lusca squid:
 
mkdir -p /usr/local/share/squid
chmod 777 /usr/local/share/squid
cd /usr/local/share/squid
wget http://superproxy.googlecode.com/files/storeurl.pl
wget http://superproxy.googlecode.com/files/tunning.conf
wget http://superproxy.googlecode.com/files/refresh.conf
mv /etc/squid/squid.conf /etc/squid/squid.conf.original
cd /etc/squid
wget http://superproxy.googlecode.com/files/squid.conf
chmod 644 squid.conf
Konfigurasi cache direktory squid, disini saya menggunakan 19.5 GB untuk masing-masing cache direktory squid maka hiraki folder cache squid adalah dengan rumusan sebagai berikut:
nano squid.conf
# =========== 19.5 GB ==========
cache_dir aufs /cache1 16357 38 256
cache_dir aufs /cache2 16357 38 256
# =========== 19.5 GB ==========
 
Pemberian akses partisi / folder cache untuk squid
chown proxy:proxy /cache1
chown proxy:proxy /cache2
chmod 777 /cache1
chmod 777 /cache2
 
Tunnelling squid cache
chown proxy:proxy /usr/local/share/squid/tunning.conf
chmod 777 /usr/local/share/squid/tunning.conf
chown proxy:proxy /usr/local/share/squid/storeurl.pl
chmod 777 /usr/local/share/squid/storeurl.pl
chown proxy:proxy /usr/local/share/squid/refresh.conf
chmod 777 /usr/local/share/squid/refresh.conf
Build squid direktori dan debugging squid
squid -f /etc/squid/squid.conf -z
sudo /etc/init.d/squid restart
squid -NDd1
squidclient mgr:info
tail -f /var/log/squid/access.log | ccze
Selesei…
Restart mesin proxy anda
shutdown -r now
tail -f /cache1/access.log | ccze
Diberdayakan oleh Blogger.