instaLasi sQuid

eMmmm catetan kecil buat nginstall sQuid di Linux

[root@irene root]# type gcc
gcc is /usr/bin/gcc
[root@irene root]# type perl
perl is /usr/bin/perl

extract source squidnya, sourcenya googling aja banyak koq 😉

[root@irene root]# tar -xzvf squid-2.6 STABLE12.tar.gz
[root@irene root]# cd squid-2.6 STABLE12
[root@irene squid-2.6 STABLE12]# ./configure
[root@irene squid-2.6 STABLE12]# ./configure –prefix=/usr/local/squid
[root@irene squid-2.6 STABLE12]# make all
[root@irene squid-2.6 STABLE12]# su
[root@irene squid-2.6 STABLE12]# make install

Sekarang konfigurasinya :

[root@irene squid-2.6 STABLE12]# cd /usr/local/squid/etc
[root@irene etc]vi squid.conf

yang diubah itu :

http_port 8080
cache_effective_user squid
cache_effective_group squid
cache_dir ufs /usr/local/squid/var/cache 500 16 256
http_access allow all
http_access allow localhost
http_access allow manager
http_access allow divisia

acl all src
acl manager proto cache_object
acl localhost src
acl to_localhost dst
acl SSL_ports port 443
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 divisia src

misal Qta ngambil dr proxy y lain juga ditambahin:

# hostname                 type      port  port   options
# ——————– ——– —–Â Â —– Â ———–
cache_peer  parent   8080   3130  default

ipnya sesuai ma proxy y qta pake 😉

[root@irene root]# cd /usr/local/squid/var
[root@irene var ]# mkdir cache
[root@irene root]# chown -R squid.squid /usr/local/squid/var
[root@irene root]# Â /usr/local/squid/sbin/squid -z
[root@irene root]# Â /usr/local/squid/sbin/squid
[root@irene root]# Â /usr/local/squid/sbin/squid -DNY &

Dah ah segitu dulu, dah malem nie… mau pulang ahh bubye… 🙂


4 thoughts on “instaLasi sQuid

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s