RSS

installasi squid pada centos 5.5

installasi squid pada centos 5.5


Posted on April 16, 2011 by tirtavium





بسم الله الرحمن الرحيم

Squid adalah sebuah daemon yang digunakan sebagai proxy server dan web cache . Squid memiliki banyak jenis penggunaan, mulai dari mempercepat web server dengan melakukan caching permintaan yang berulang-ulang, caching DNS, caching situs web, dan caching pencarian komputer di dalam jaringan untuk sekelompok komputer yang menggunakan sumber daya jaringan yang sama, hingga pada membantu keamanan dengan cara melakukan penyaringan (filter) lalu lintas. Meskipun seringnya digunakan untuk protokol HTTP dan FTP, Squid juga menawarkan dukungan terbatas untuk beberapa protokol lainnya termasuk Transport Layer Security (TLS), Secure Socket Layer (SSL), Internet Gopher, dan HTTPS. Versi Squid 3.1 mencakup dukungan protokol IPv6 dan Internet Content Adaptation Protocol (ICAP).

tahap – tahap instalasi sebagai berikut :

$su – {you need to be a super user}
#rpm -ivh squid or #yum -y install squid {install squid}
#vi /etc/squid/squid.conf


 

==/etc/squid=====================================================


http_port 8080 transparent


visible_tirpeng.web.id


cache_mem 32 MB


cache_dir ufs /cache 1000 16 256


access_log /var/log/squid/access.log


#pemberian daftar acl


acl all src all


acl lan src 192.168.2.0/24


===pendaftaran ex. Untuk pembatasan besaran donwload========================


acl filegede url_regex -i \.exe


acl filegede url_regex -i \.mp3


acl filegede url_regex -i \.rar


acl filegede url_regex -i \.zip


acl filegede url_regex -i \.avi


acl filegede url_regex -i \.flv


acl filegede url_regex -i \.mp4


acl filegede url_regex -i \.wav


acl filegede url_regex -i \.7zip


acl filegede url_regex -i \.iso


acl filegede url_regex -i \.mpeg


acl filegede url_regex -i \.mpg


acl filegede url_regex -i \.vbm


acl filegede url_regex -i \.divx


#pemberian delay


delay_pools 2


delay_class 1 3


delay_parameters 1 32000/32000 8000/8000 250/250


delay_access 1 allow lan filegede


delay_access 1 deny all


delay_class 2 2


delay_parameters 2 32000/32000 8000/8000 250/250


delay_access 1 allow lan


delay_access 1 deny all


#banned domain


acl 3 url_regex -i “/etc/squid/banned.txt”


http_access deny 3


#membolehkan access untuk lan


http_access allow lan


cache_mgr tirtavium@gmail.com


=========akhir dari /etc/squid.conf==================================================


#mkdir /cache
#chmod 777 /cache
#chown squid /cache
#chgrp squid /cache
#vi /etc/squid/banned.txt {make a file that conntent you want to blocked}
example : porn


.facebook.com
adult





#squid -z
#/etc/init.d/squid start
#iptables –table nat -A PREROUTING -s 192.168.5.0/24 -p tcp -m tcp –dport 80 -j REDIRECT –to-ports 8080


 



HAVE FUN !!!



  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar