Breaking News
Loading...
04 September 2012

Install Proxy Lusca Di Ubuntu Server 12.04 64bit

10:06 AM
Hardware : 
CPU IBM System X3100 M3
Hardisk 250 GB
Memori 4GB
downloand ubuntu 12.04 di sini

Pembagian Partisi 
1          Primary            30.0 GB                       F          ext4     /
2          Primary            500,2  MB       B          F          ext4     /boot
3          logical              5 GB                F          ext4     /usr
4          logical              20GB               F          ext4     /var
5          logical              5 GB                F          ext4     /tmp
6          logical              5 GB                F          ext4     /usr/local
7          logical              5 GB                F          ext4     /opt
8          logical              5 GB                F          ext4     /svr
9          logical             25GB              f           btrfs     /cache1
10        logical             25GB              f           btrfs     /cache2
11        logical             25GB              f           btrfs     /cache3
12        logical             25GB              f           btrfs     /cache4
13        logical             25GB              f           btrfs     /cache5
14        logical              10 GB              F          ext4     /home
15        logical              36 GB              F          ext4     /sharing
3          Primary            8192 MB         F          swap    swap

Untuk memudahkan perhitungan disk cache, pada konfigurasi squid  menggunakan Squid Calculator
5 partisi untuk cache masing-masing 25GB 
   cache_dir aufs /cache1 25000 51 256
   cache_dir aufs /cache2 25000 51 256
   cache_dir aufs /cache3 25000 51 256
   cache_dir aufs /cache4 25000 51 256
   cache_dir aufs /cache5 25000 51 256
Oke Brow..  Kita Mulai Install Proxy Lusca Di Ubuntu Server 12.04..!!???
Untuk memudahkan proses adalah me-remote PC Proxy Server dari PC lain dalam satu jaringan, menggunakan PUTTY dan WINSCP 

Gunakan PUTTY :
sudo su
apt-get update
apt-get upgrade
sudo aptitude install squidclient squid-cgi
sudo aptitude install libzip-dev sharutils ccze libzip-dev automake1.9 gcc build-essential
apt-get install lusca

Gunakan WINSCP
edit squid.conf (/etc/lusca/squid.conf)  copy paste squid.conf di bawah
edit storeurl.pl (/etc/squid/storeurl.pl)  copy paste storeurl.pl  di bawah

Gunakan PUTTY

chown proxy:proxy /cache1
chown proxy:proxy /cache2
chown proxy:proxy /cache3
chown proxy:proxy /cache4
chown proxy:proxy /cache5
chmod 777 /cache1
chmod 777 /cache2
chmod 777 /cache3
chmod 777 /cache4
chmod 777 /cache5

chown proxy:proxy /etc/lusca/squid.conf
chmod 777 /etc/lusca/squid.conf
sudo chmod 755 /etc/squid/storeurl.pl
sudo chown -R proxy.proxy /etc/squid/storeurl.pl

lusca -f /etc/lusca/squid.conf –z
chown proxy:proxy /var/log/lusca/access.log
chown proxy:proxy /var/log/lusca/cache.log

chmod +x /etc/init.d/lusca
/etc/init.d/lusca stop

cek error lusca
lusca -d1

/etc/init.d/lusca restart
apt-get install squidclient
squidclient mgr:info

reboot
tail -f /var/log/lusca/access.log | ccze

Selesai..!!????
                                                    squid.conf

                                               storeurl.pl
 
selesai

0 komentar:

Post a Comment

 
Toggle Footer