install ubuntu 12.04 LTS
ip proxy 192.168.100.2
ip dns_nameserver 192.168.100.1
buat partisi
256 MB untuk /boot
30 GB untuk /
10 GB unyuk /home
30 GB unyuk /usr
10 GB unyuk /var
100 GB untuk /usr/var/cache1
100 GB untuk /usr/var/cache2
100 GB untuk /usr/var/cache3
100 GB untuk /usr/var/cache4
8.g GB /swap
sisanya /tmp
sudo passwd
pico /etc/default/grub
sudo update-grub
reboot
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install lusca build-essential sharutils libzip-dev automake1.9 multitail acpid gcc ccze -y
sudo chown proxy.proxy /cache{1,2,3,4}
sudo chmod 777 /cache{1,2,3,4}
sudo chown proxy:proxy /etc/lusca/storeurl.pl
sudo chown proxy:proxy /var/log/lusca/access.log
sudo chown proxy:proxy /var/log/lusca/cache.log
sudo chmod +x /etc/init.d/lusca
lusca -z
lusca -k parse
lusca -f /etc/lusca/squid.conf -z
sudo /etc/init.d/lusca restart
sudo /etc/init.d/lusca stop
untuk test
lusca -d 8
lusca -k rotate
lusca -N -d 1 -D
lusca -NCd1
lusca -k reconfigure
tail -f -n100 /var/log/squid/access.log
tail -f /var/log/lusca/access.log |ccze
init 0
tail -f /var/log/lusca/access.log |grep HIT
lihat hardisk/SDA
df -h
ls /dev/sd*
lihat IP
ip a
sudo pico /etc/network/interfaces
sudo /etc/init.d/networking restart
cat /var/log/lusca/access.log
tail -f /var/log/lusca/access.log
tail -f /var/log/lusca/cache.log
tail -n 80 /var/log/lusca/cache.log
tail -f /var/log/messages
squidclient mgr:storedir
cat /var/log/lusca/access.log | ./squidmon.py
cat /var/log/lusca/access.log | python squidmon.py
solusinya coba jalankan di terminal tail -f /var/log/messages untuk melihat error
kemudian buka terminal ke dua untuk menjalankan service squid, sambil perhatikan error di messages
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src 127.0.0.0/8 # RFC1918 possible internal network
cek squid mgr :
http://192.168.100.2/cgi-bin/cachemgr.cgi