Selasa, 26 Maret 2013

Super Proxy Lusca Squid Ubuntu v3

Untuk melakukan instalasi Super Proxy Lusca Squid pada Ubuntu, hal pertama adalah lakukan proses update dan instalasi dependensi pendukung untuk squid. Ubuntu yang digunakan dalam hal ini adalah Ubuntu Server 11.04, namun hal ini dapat diterapkan pada ubuntu versi lain.
?
1
2
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
?
1
2
3
4
5
6
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
?
1
2
./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
?
1
2
3
make
sudo make install
Download Service Squid
?
1
2
3
4
5
6
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:
?
1
2
3
4
5
6
7
8
9
10
11
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:
?
1
2
3
4
5
6
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
?
1
2
3
4
5
chown proxy:proxy /cache1
chown proxy:proxy /cache2
chmod 777 /cache1
chmod 777 /cache2
Tunnelling squid cache
?
1
2
3
4
5
6
7
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
?
1
2
3
4
5
6
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
?
1
2
3
shutdown -r now
tail -f /cache1/access.log | ccze

0 komentar:

About Me

Selamat Datang Di_Blog Ini

Time converter
Diberdayakan oleh Blogger.
Share

Share

twitterfacebookgoogle pluslinkedinrss feedemail