24 Oktober, 2009

Konfigurasi Squid Linux Debian

 Install paket squid untuk versi yang terbaru
#apt-get install squid
 Mengedit script squid.conf
#pico /etc/squid/squid.conf

visible_hostname (hostname yg diperlukan)
cache_mgr (alamat e-mail)
http_port 3128 transparent
always_direct allow all
cache_dir ufs /var/spool/squid 500 16 256

dan Edit juga script di bawah ini :

acl all src 0.0.0.0/0.0.0.0
acl lab1 src 192.168.1.0/255.255.255.0
acl tidak dstdomain www.friendster.com
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

 Membuat cache directory dengan mengetikkan perintah
#squid –z
 Merestart daemon Squid
#/etc/init.d/squid restart

 Untuk test apakah konfigurasi Anda sudah berhasil, buka Internet Explorer 
tools 
internet options 
connections 
LAN setting 
Pilih use automatic configuration script 
lalu isikan pada address alamat server kita

Possibly related posts: (automatically generated)

0 komentar:

Posting Komentar