Jumat, 09 Maret 2012

clear os thunder cache

Sebelumnya minta maaf temen2 cosi… berhubung engk biasa nulis… Jadi harap dimaklumi..
Hehehe….
Langsung aja dech kita mulai…
Sebelumnya pastikan squid 3.1.3 sudah berjalan dengan normal…
Dan tinggal memasang thundercache 3…
Langkah awal
download file thundercache 3 terlebih dahulu…
ini alamat linknya http://www.4shared.com/folder/wcVFnDrr/_online.html
setelah mas2 download file thundercachenya pastikan exstraxt terlebih dulu file tersebut....
setelah anda exstraxt buat folder dengan nama thunder3-32bits dan file hasil exstraxt tadi masukkan ke folder thunder3-32bits yang anda buat tadi…

jangan lupa folder thunder3-32bits copykan ke folder root

baru dech… kita lanjut ke tahap pemasangan thundercache 3… hehehehe
1. install paket thundercache 3
#yum install bind9 squid apache2 libapache2-mod-php5 php5 php5-mysql php-db php5-cli php5-gd php5-sqlite mysql-server sqlite3 libsqlite3-dev libstdc++6 freeradius-mysql lynx ffmpeg sarg nmap sudo gawk gcc g++ unzip bzip2 webmin

2. lanjut ke penginstalan thundercache 3
#cd /root
#wget http://www.biazus.com/forum/download/file.php?id=179 -O thunder3-32bits.tar.bz2
#mkdir thunder3-32bits
#tar xjvf thunder3-32bits.tar.bz2 -C thunder3-32bits
#cd thunder3-32bits
#mkdir /usr/local/sbin
#cp -R /root/thunder3-32bits/sbin/* /usr/local/sbin
#chmod a+x /usr/local/sbin/thunder
#strip -s /usr/local/sbin/thunder
#mkdir /var/log/thunder
#mkdir /var/tmp/thunder
#mkdir /var/run/thunder
#chmod a+rwx /var/log/thunder
#chmod a+rwx /var/tmp/thunder
#chmod a+rwx /var/run/thunder
#cp -R /root/thunder3-32bits/etc/init.d/* /etc/init.d
#chmod a+x /etc/init.d/thunder
#cp -R /root/thunder3-32bits/etc/thunder /etc/thunder
#touch /etc/thunder/whitelist
#touch /etc/thunder/blacklist
#mkdir /thunder
#chmod a+rwx /thunder
#chown -R apache:apache /thunder/
#chmod -R 777 /thunder/
#umask 000 /thunder/

3. Selanjutnya menambahkan beberapa baris pada php.ini (masukkan perintah ini ke putty)
#echo "extension=pdo.so" >> /etc/php.ini
#echo "extension=pdo_sqlite.so" >> /etc/php.ini

4. Buat link agar hasil cache bisa dilihat di webbrowser
#ln -s /etc/thunder/thunder.php /var/www/html/thunder3.php

5. Autostart setiap kali COS booting...tambahan perintah pada /etc/rc.d/rc.local
service thunder start

6. nah… selanjutnya adalah mengedit file squid.conf.. (letak kan perintah tersebut di paling bawah isi file squid.conf)
# Thundercache 3
acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
cache deny thunder_lst
cache_peer 127.0.0.1 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access 127.0.0.1 allow thunder_lst
cache_peer_access 127.0.0.1 deny all
# Fin de modificaciones para Thundercache

7. Selanjutnya adalah instalasi Gcc
#mkdir /usr/src/gcc
#cd /usr/src/gcc
#wget ftp://ftp.slackware.org.uk/slackware/slackware-12.1/slackware/d/gcc-#g++-4.2.3-i486-1.tgz
#tar zvxf gcc-g++-4.2.3-i486-1.tgz
#cp /usr/src/gcc/usr/lib/libstdc++.so.6.0.9 /usr/lib/
#rm -f /usr/lib/libstdc++.so.6
#ln -s /usr/lib/libstdc++.so.6.0.9 /usr/lib/libstdc++.so.6

8. Configurasi squid:
#sed -i 's/hierarchy\_stoplist\ cgi\-bin/\#hierarchy\_stoplist\ cgi\-bin/g' /etc/squid/squid.conf
#sed -i 's/http_port\ 3128/\http_port\ 3128\ transparent/g' /etc/squid/squid.conf
#sed -i 's/\#\ max_filedesc\ 1024/max_filedesc\ 4096/g' /etc/squid/squid.conf

9. Sesuaikan dengan Ethernet yang anda gunakan.
#echo 1 > /proc/sys/net/ipv4/ip_forward
#/sbin/iptables -A INPUT -i eth1 -p tcp --dport 3128 -j ACCEPT
#/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp -s 0/0 --dport 80 -j REDIRECT --to-port 3128




10. melihat hasil port 8080 dan thundercachenya terlebih dahulu……
#nmap localhost
#ps ax | grep thunder

11. Tahap terakhir merestart squid dan thundercachenya…
#Service squid restart
#service thunder restart

Selesai dech….sampai disini dulu temen2 cosi…
mohon dikoreksi apabila ada yang salah…. Terima kasih saya ucapkan kepada mas hendra lin yang meluangkan waktunya untuk memberikan petunjuk….
Errin network

sumber : http://clearos-indonesia.com/frm/?PHPSESSID=9h0tie4bl2meuomtu6akg0mi54&topic=1407.msg12647#msg12647

2 komentar:

  1. this is a thunder cache fork and works perfect whit clearOs comunity 6.5
    http://marcosmedina123.blogspot.com/2014/02/youtube-cache-with-clearos.html

    BalasHapus
  2. Just came over to briefly introduce ourselves as a commercial blacklist provider without spamming up your boards too much I hope.

    Good morning!

    We are currently looking for entities interested in our publications!

    We are the worlds first, and the leading publisher of Squid 'Native ACL' formatted blacklists. Our works far outclass the other blacklist options. We have better blacklists, including ACL lists that allow for web filtering directly with Squid proxy. Of course we also offer alternative formats to ensure compatibility with the most widely used third party plugins and applications, such as DansGuardian and Squidguard, among many other platforms that are currently being used with our works.

    And while our blacklists are subscription based, they are as a result of our efforts, of a much higher degree of quality than the free alternatives.

    There is a demand for a better blacklist, we intend to fill that gap,

    We hope to serve you,


    Signed,

    Benjamin E. Nichols
    http://www.squidblacklist.org

    BalasHapus