Selamat Datang Orang Gila !!! .:: Welcome Lunatic ::.

menginstallkan squid di

Pertama buatlah user untuk squid dengan cara :

server $ pw adduser squid

rubahlah pada master.passwd nya pada user squid menjadi
home menjadi nonexistent dan shell menjadi /sbin/nologin

server $ cd /usr/local/src/squid.XXXXXX

/usr/local/src merupakan tempat sources squid di simpan

server $ tar -xvzf squid xxxxxxxxxxxxxxx.tar.gz

server $ cd squid xxxxxxx

server $ ./configure --prefix=/usr/local/squid

server $ make

server $ make install

Baik sekarang kita akan melakukan pengeditan di file squid nya

server $ cd /usr/local/squid

server $ cd etc/

server $ cp squid.conf squid.conf.old

Contoh untuk squid.conf

http_port 8080
icp_port 3130
cache_mem 8 MB
maximum_object_size 4096 KB
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
client_netmask 255.255.255.0
dns_nameservers 202.146.255.3 202.146.255.5
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl all src 0.0.0.0/0.0.0.0
acl local src 192.168.0.0/24
acl server dst 192.168.0.7/255.255.255.255
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
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 8080 # Port umum (proxy)
acl CONNECT method CONNECT
http_access allow local
http_access allow server
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
icp_access deny all
miss_access allow all
cache_effective_user squid
cache_effective_group squid
httpd_accel_host server.contoh.com
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
forwarded_for on
error_directory /usr/local/etc/squid/errors
visible_hostname www.contoh.com



Bila sudah selesai sekarang kita tinggal membuat file swap untuk squid
tersebut dengan cara :

server $ cd /usr/local/squid

server $./bin/squid -z

bila sudah selesai membuat file swap sekarang kita tinggal menjalankan
squid tersebut dengan cara:

server $ ./bin/squid -s -Y -f /usr/local/squid/etc/ squid.conf

nah selesai lah pembuatan squid untuk proxy dan cache server

Menurut anda tentang blog ini?