Wednesday, February 2, 2011

PROXY PUNGO with UBUNTU squid 2.7 stable9

PROXY PUNGO with UBUNTU squid 2.7 stable9

Link Download Ubuntu disini :http://ubuntu.pesat.net.id/releases/...erver-i386.iso


Quote:
1. Langkah-langlah Instalasi dan Tunning sedot disini : http://untuk-kamu.googlecode.com/fil...01.01.2011.rar
Quote:
2. Install Paket yg Diperlukan
# sudo apt-get update
# sudo apt-get install squid squidclient squid-cgi
# sudo apt-get install gcc
# sudo apt-get install build-essential
# sudo apt-get install sharutils
# sudo apt-get install ccze
# sudo apt-get install libzip-dev
# sudo apt-get install automake1.9

Download Squid 7 Stable 9 di sini : #'"wget http://untuk-kamu.googlecode.com/files/squid-2.7.STABLE9%2Bpatch.tar.gz"'

# tar xvf squid-2.7.STABLE9+patch.tar.gz
# cd squid-2.7.STABLE9

# tahap compile nya :

./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

kemudian :
# make
# sudo make install

Edit squid.conf

agar perintah sudo /etc/init.d/squid stop jalan di ubuntu 10.10
#copy file squid yg di download tadi ke /etc/init.d/

jgn lupa di :
#sudo chmod +x /etc/init.d/squid
#sudo /etc/init.d/squid stop

#paste file squid.conf dan storeurl.pl yg di download tadi kedalam folder /etc/squid
# Memberikan permission pada folder cache

Code:
chown proxy:proxy /cache1
chown proxy:proxy /cache2
chown proxy:proxy /cache3
chmod 777 /cache1
chmod 777 /cache2
chmod 777 /cache3
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
squid -f /etc/squid/squid.conf -z
/etc/init.d/squid restart

Reboot CPU Ubuntu, TAMAT

Ref : FMI

No comments:

Post a Comment