Membuat Proxy dengan Squid

    Proxy atau lebih spesifik disebut sebagai web proxy, digunakan untuk sharing internet + sebagai benteng pertahanan yang cukup baik untuk memblok atau memfilter alamat situs yang ingin di blok. Dan juga untuk membatasi akses internet pada jaringan kita. Salah satu software yang terkenal sebagai proxy yang baik adalah Squid dengan versi stable nya.
    Squid sangat berjalan baik pada Linux maupun Unix, untuk windows saya belum pernah menggunakan squid sebagai proxynya. Berikut adalah langkah2 membuat Webproxy dengan Squid:

1). Download squid di url berikut 
     http://www.squid-cache.org/Download/
 
2). Extract dan install squid 
     root@localhost:/# tar zxvf squid-3.0.STABLE4.tar.gz
     root@localhost:/# cd squid-3.0.STABLE4
     root@localhost:/# ./configure ‘–prefix=/usr/local/squid’ \
                               ‘–enable-removal-policies=lru heap’ \
                               ‘–enable-digest-auth-helpers=password’ \
                               ‘–enable-async-io’ \
                               ‘–with-pthreads’ \
                               ‘–with-aio’  \
                               ‘–enable-storeio=ufs diskd null aufs coss’ \
                               ‘–enable-delay-pools’  \
                               ‘–enable-snmp’ \
                               ‘–enable-icmp’  \
                               ‘–enable-htcp’  \
                               ‘–enable-cache-digests’  \
                               ‘–disable-wccp’  \
                               ‘–enable-underscores’   \
                               ‘–enable-useragent-log’  \
                               ‘–enable-arp-acl’  \
                               ‘–enable-pf-transparent’  \
                               ‘–enable-ipf-transparent’  \
                               ‘–enable-follow-x-forwarded-for’  \
                               ‘–with-large-files’  \
                               ‘–enable-large-cache-files’   \
                               ‘–enable-default-err-language=English’ 
     root@localhost:/# make && make install
 
4). Konfigurasi squid.conf
     edit beberapa baris berikut untuk konfigurasi yang minimalis :
     http_port 192.168.0.1:8080 transparent //jika ip kita 192.168.0.1
     cache_dir ufs /squid/cache 10240 64  1024  // Direktory untuk cache disesuaikan

     acl intranet src 192.168.0.0/24
     http_access allow intranet
     http_access deny all
     icp_access allow intranet
     icp_access deny all
 
5). Menjalankan squid
      membuat cache dan menjalankan squid
      root@localhost:/# /usr/local/squid/sbin/squid -z
      root@localhost:/# /usr/local/squid/sbin/squid -sYD
     
      Jika melakukan konfigurasi kembali pada squid.conf, berikut cara mereload nya :
      root@localhost:/# /usr/local/squid/sbin/squid -k reconfigure
 

Posted: April 25, 2008

2 Comments »

The URI to TrackBack this entry is: http://cerdas.blogsome.com/2008/04/25/membuat-proxy-dengan-squid/trackback/

  1. Kalau mac address gimana ya bro?

    Comment by milanisti — March 6, 2009 @ 11:17 am

  2. Bisa mas. tinggal ganti src menjadi arp saja . contoh

    acl macallow arp [mac-address]

    Comment by Administrator — March 6, 2009 @ 11:58 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.