Walkthrough Installasi Squid di Debian Squeeze 64 bit

feature

RIG

installer

bisa diambil netinstall iso image including non-free firmware dari sini

beberapa NIC, terutama intel, driver-nya tidak ada di installer official

diasumsikan

Login remotely, gw prefer lewat tunellier

update

 please login or register. simple registration is needed to see the content

fstab

 please login or register. simple registration is needed to see the content

Contoh fstab yg gw pake:

 please login or register. simple registration is needed to see the content

NOTE : di debian, selama bukan partisi root ( / ) tidak perlu tune2fs untuk penggunaan option data=writeback

sysctl

 please login or register. simple registration is needed to see the content

contoh sysctl :

 please login or register. simple registration is needed to see the content

limits

 please login or register. simple registration is needed to see the content

tambahkan baris berikut :

 please login or register. simple registration is needed to see the content

bind dns server

 please login or register. simple registration is needed to see the content

contoh yg gw pakai :

 please login or register. simple registration is needed to see the content

restart bind

 please login or register. simple registration is needed to see the content

networking

 please login or register. simple registration is needed to see the content

ubah allow-hotplug eth0 menjadi auto eth0

edit resolv.conf

 please login or register. simple registration is needed to see the content

ubah nameserver xxxxx menjadi nameserver 127.0.0.1

restart networking

 please login or register. simple registration is needed to see the content

jalankan dig facebook.com 3x, liat di query time apakah sudah sekitar 1 msec (kadang malah 0 msec)  kalo sudah berarti dns cache sudah jalan dan bind dah bisa digunakan sebagai dns resolver

fstab, sysctl, bind, networking dah diconfig, sekarang reboot

 please login or register. simple registration is needed to see the content

compile squid

 please login or register. simple registration is needed to see the content

2 step diatas (install dan autoremove squid) adalah cara paling mudah membuat start-up, add service, dan file init squid

untuk squid yg akan kita pakai meng-compile dari source

 please login or register. simple registration is needed to see the content

Note : CHOST=”x86_64-pc-linux-gnu” CFLAGS=”-march=core2 -O2 -mtune=generic -pipe” CXXFLAGS=”${CFLAGS}” adalah cflags buat proc yg gw gunakan. sesuaikan safe cflags dengan proc yg anda gunakan

untuk melihat procinfo, gcc version dan safe cflag yang sesuai, lihat disini : http://en.gentoo-wiki.com/wiki/Safe_Cflags

block.lst

 please login or register. simple registration is needed to see the content
 please login or register. simple registration is needed to see the content

tambahkan sendiri keyword yang hendak di block

Note: keyword yang diblock adalah yang tampil di URL, bukan kontent.

contoh : htttp://xxxxx.com/deepfreeze/xxxx akan diblok, tetapi sebuah post di kaskus misalnya yang ada kata deepfreeze tidak akan di block

storeurl.pl

 please login or register. simple registration is needed to see the content

ambil storeurl.pl dari sini : http://pastebin.com/L28WvWL0

running squid

 please login or register. simple registration is needed to see the content

contoh squid.conf yg gw pakai :

 please login or register. simple registration is needed to see the content

initialize cache

 please login or register. simple registration is needed to see the content

edit init.d squid

 please login or register. simple registration is needed to see the content

cari string /var/spool/$NAME ganti dengan /cache1

jalankan squid :

 please login or register. simple registration is needed to see the content

reboot PC untuk test apakah start-up squid dah jalan. jalankan htop setelah PC hidup untuk melihat prosses squid dah jalan atau belum

 please login or register. simple registration is needed to see the content

PC Proxy dah bisa digunakan, silahkan aktifkan NAT redirect di mikrotik

webmin

 please login or register. simple registration is needed to see the content

follow on screen instruction

buka http://[ip-address]:10000

 Webmin Screenshoot

lighttpd + php-cgi

 please login or register. simple registration is needed to see the content

edit lighttpd.conf

 please login or register. simple registration is needed to see the content

lighttpd.conf :

 please login or register. simple registration is needed to see the content

homedir di /var/www, listen on port 81

test buka di broser http://[ip-address]:81

edit php.ini

 please login or register. simple registration is needed to see the content

tambahkan cgi.fix_pathinfo = 1 di akhir file php.ini

restart lighttpd

 please login or register. simple registration is needed to see the content

buat file php untuk tes apakah php dah jalan

 please login or register. simple registration is needed to see the content

isi dengan <?php phpinfo(); ?>

buka di broser : http://[ip-address]:81/info.php

sqstat

 please login or register. simple registration is needed to see the content

buka di browser : http://[ip-address]:81/sqstat

mrtg

baca disini : mrtg without snmp di Debian Squeeze

 Credit

credit to all warneter communnity

spesiallly to imer for his remarkable squid config

i’m nothing w/out them

 

Author: arist on 10/07/2011
Category: Linux/Unix
Tags: , , , , , , , ,
13 responses to “Walkthrough Installasi Squid di Debian Squeeze 64 bit”
  1. maput says:

    pertamax :malu:
    mbah itu kok ada beda ya name.conf nya dengan tuts yg bind yg atu lagi..
    name servernya ditambahin ip proxy selain 127.0.0.1
    :bingung:

  2. arist says:

    maput :

    pertamax :malu:
    mbah itu kok ada beda ya name.conf nya dengan tuts yg bind yg atu lagi..
    name servernya ditambahin ip proxy selain 127.0.0.1
    :bingung:

    sama aja kok, tergantung selera :D

    yg ane tulis disini adaah yg ane pakai, no batman

  3. bagoes_nan_aduhai says:

    wahhh tut baru lagi :genit: save dulu kk… lom brani inul klo skrg..lg banyak masalah :(

  4. squidzn says:

    ketigax :malu:

  5. squidzn says:

    squidzn :
    ketigax

    gagal ketigax :(

  6. prima says:

    muantap nih mba debi 64 bit , blom ada rig nya :nohope:

  7. 3ddy says:

    applying all of conf here :malu:

  8. kaskus.dbest says:

    haderrr \:D/ thanks eyang buat update tuts na…, tuts yang pertama paling ane paporitin :malu: ntar waktu dah nyante langsung goreng cumi lagi :cool:

  9. banyakkasus says:

    mohon izin mbah ….

    semoga panjang umnur dan banyak rezeki nya ..

  10. salutnet says:

    maturtengkiyu eyang :terharu:

  11. kelinci says:

    Bos ini BIsa ..cache Dynamic konten Facebook dan Game facebook gak..?

  12. ari_sd says:

    BigSlamJam here :D

    beberapa minggu ndak ol di warneter gara” kenalan ma linux. :mewek
    kirain mah enak pake linux ampe nekat install di lappie eh.. malah puyeng :cd

    mbah kalo di debian i386 sajen-sajen ada yang perlu diganti ga?
    kebetulan baru kelar download isonya squeeze.
    baru nyoba linux mabok ane mbah.. salah ketik ae wancur :mewek

  13. sogoyz says:

    wah koq pada manggil mbah sih, ikutan ah hehe…
    Mbah, saya udah ikutin step2 nya, mirip semua mbah. tapi koq ga bisa caching youtube ya?
    Mohon pencerahan mbah. Trims

Leave a Reply

*

[+] kaskus emoticons

Last articles

Content Protected Using Blog Protector By: PcDrome.