INSTALL SQUID DISKD 
  
 
 
Minimal kita harus menggunakan squid versi 2.4 
kita compile dan install SQUID dengan :

         # tar -xzvf squid-2.4.STABLE6.tar.gz

         # cd squid-2.4.STABLE6/

         # ./configure --prefix=/usr/local/squid --enable-storeio=diskd,ufs

         # make

         # make install

Edit dulu file squid.conf di /usr/local/squid/etc/ ,
edit bagian-bagian berikut untuk konfigurasai minimal :

http_port 8080 
cache_dir diskd /cache 500 16 256 Q1=72 Q2=64 
acl intranet src 192.168.0.0/24 
http_access allow intranet 
http_access deny all 
icp_access allow intranet
icp_access deny all 

Untuk installasi SQUID dengan diskd, tambahkan option-option berikut ke dalam file konfigurasi kernel, yang berada di /usr/src/sys/i386/conf/ 

options SYSVMSG
options MSGMNB=8192      # max # of bytes in a queue
options MSGMNI=40          # number of message queue identifiers
options MSGSEG=512        # number of message segments per queue
options MSGSSZ=64         # size of a message segment
options MSGTQL=2048      # max messages in system

options SYSVSHM
options SHMSEG=16           # max shared mem id's per process
options SHMMNI=32           # max shared mem id's per system
options SHMMAX=2097152  # max shared memory segment size (bytes)
options SHMALL=4096        # max amount of shared memory (pages)


kemudian kompile dan install kernel

         # config KERNEL

         # cd /usr/src/sys/compile/KERNEL/

         # make depend

         # make

         # make install

Setelah itu reboot , dan jalankan squid :

        # /usr/local/squid/bin/squid -z

        # /usr/local/squid/bin/squid

selesai .

 

G-net Pekalongan, April 2002 by esteh

back to INDEX

http://www.freebsd-docs.netfirms.com/

 

    Source: geocities.com/w1d1anto/Document

               ( geocities.com/w1d1anto)