Lusca FMI for Ubuntu Server 10.10

Tuesday, March 6, 2012

print this page
send email

Penggunaan squid proxy sudah hal umum bagi pengusaha warnet/rtrw net, karena dengan menggunakan proxy server bisa menghemat bandwidth dan mempercepat browsing. Sebenernya pengen nulis tuts sendiri, tapi karena prosesnya panjang dan ribet jadi malas. kebetulan nemu tuts ini setelah googling, mudah2an bisa membantu.
> Pertanyaan berikutnya, kok lusca? lusca sendiri sebenernya pengembangan/side project dari squid. kenapa lusca FMI? karena di gadang-gadang lusca FMI sudah oke tanpa perlu patch patch lagi untuk caching dynamic content.
> Bagus mana dengan squid 2.7stable9+patch? menurut ane sama bagusnya, squid juga dengan setting yang tepat sudah bisa men-cache content dynamic. sesuaikan selera saja.

Untuk Releases Ubuntu Terbaru :
http://releases.ubuntu.com/
>Sebelum Memulai Download File-file yang dibutuhkan :
http://code.google.com/p/proxy-ku/downloads/list
Setelah selesai menginstal ubuntu server, masuk ke terminal lalu lanjutkan :

Code:

# Update & upgrade repositor #
==============================
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install squid -y && apt-get install squid squidclient squid-cgi -y && apt-get install gcc -y && apt-get install build-essential -y && apt-get install sharutils -y && apt-get install ccze -y && apt-get install libzip-dev -y && apt-get install automake1.9 -y && wget http://proxy-ku.googlecode.com/files/LUSCA_FMI.tar.gz && tar xzvf LUSCA_FMI.tar.gz && cd LUSCA_FMI/ && make distclean
-------------------------------

# lakukan perintah compile #
============================
./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-http-gzip --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 && make && make install
-----------------------------


<Setelah proses selesai lanjutkan pada proses berikut>

# Copy file-file berikut dengan WinSCP #
========================================
- File "squid.conf" yang telah disesuaikan ke folder: /etc/squid/
- File "storeurl.pl" ke folder: /etc/squid/
- File "squid" ke folder: /etc/init.d/
----------------------------------------

# Memberikan izin akses kepada user squid #
===========================================
chmod +x /etc/init.d/squid && /etc/init.d/squid stop
-------------------------------------------

# Memberikan permission pada folder cache #
===========================================
chown proxy:proxy /cache1 && chmod 777 /cache1 && chown proxy:proxy /cache2 && chmod 777 /cache2 && chown proxy:proxy /etc/squid/storeurl.pl && chmod 777 /etc/squid/storeurl.pl && chmod +x /etc/init.d/squid
-------------------------------------------

# Membuat folder swap/cache di dalam folder cache #
===================================================
/etc/init.d/squid stop
squid -f /etc/squid/squid.conf -z && /etc/init.d/squid restart

# Agar proses shutdown dapat langsung dijalankan dengan menekan tombol Power gunakan perintah berikut:
===========================================================
apt-get install acpid

------- reboot -------

#------ SELESAI ------#

Pengujian:
<browser> http://www.whatismyip.com/
<putty> tail -f /var/log/squid/access.log | ccze


=+=+=+=+=+=+=+=+=+=     S E L E S A I     =+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


# Install Unbound via Putty #
=============================
apt-get install unbound -y && cd /etc/unbound && wget ftp://FTP.INTERNIC.NET/domain/named.cache && unbound-control-setup && chown unbound:root unbound_* && chmod 440 unbound_*
------------------------------
# Copy file dengan WinSCP #
===========================
File "unbound.conf" ke /etc/unbound/
---------------------------

<reboot ubuntu>

# Periksa Status Unbound #
==========================
unbound-control status
unbound-control stats
--------------------------

# Restart Unbound Service #
===========================
/etc/init.d/unbound restart
---------------------------

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+ S E L E S A I +=+=+=+=+=+=+=+=+=+=+=
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


Note :


Tuts dalam tag code bukan hasil tulisan ane, credits bagi mereka yang sudah menulis dan mereka yang menyediakan bahan untuk tuts ini. semua di ambil dari sumber :


http://code.google.com/p/proxy-ku/



sumber : kaskus.us

No comments:

Post a Comment