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
visible_hostname irene.ireneindah.net
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 0.0.0.0/0.0.0.0
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
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 CONNECT method CONNECT
acl divisia src 192.168.1.3-192.168.1.244/255.255.255.255

misal Qta ngambil dr proxy y lain juga ditambahin:

# hostname                 type      port  port   options
# ——————– ——– —–Â Â —– Â ———–
cache_peer 192.168.2.4  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:

WordPress.com Logo

You are commenting using your WordPress.com 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