Professional Documents
Culture Documents
Telkomsel Flash, tentunya sangat menjengkelkan jika tiba-tiba quota kita habis.
Resikonya untuk beberapa paket akan turun drastis, dan beberapa paket lainnya akan
sama sekali tidak bisa digunakan. Contohnya seperti yang saya pakai, Indosat Broadband
Eco, jika quota habis akan turun drastis menjadi 64kbps, atau setara dengan koneksi
GPRS.
Ada beberapa cara untuk menghemat jatah quota kita tersebut, diantaranya adalah dengan
meminimalkan content untuk browsing (ex: disable images), menggunakan compression
proxy (toonel, onspeed, dll), dan menggunakan cache proxy. Dan kebetulan saya akan
membahas penghematan bandwidth dengan cache proxy menggunakan Squid
2.7.STABLE5.
Kenapa menggunakan cache proxy ? Dengan cache proxy, pada situs-situs yang sering
kita kunjungi, content yang harus didownload dan mengurangi jatah quota kita akan lebih
sedikit. Karena content-content tersebut akan tersimpan dahulu di cache proxy kita. Jadi
secara tidak langsung, jika kita mengunjungi situs tersebut berulang kali, sama saja kita
mendownload content dari komputer yang terinstall proxy kita. Kesimpulannya.. lebih
cepat dan lebih ngirit bandwidth.
Code:
cachemgr.conf.default
mime.conf.default
squid.conf.default
squid_radius_auth.conf.default
Code:
cachemgr.conf
mime.conf
squid.conf
squid_radius_auth.conf
4. Setelah selesai me-rename keempat file tersebut, kemudian buka file “squid.conf”
dengan notepad atau editor kesayangan anda(EditPlus, Ultra Edit, Notepad ++, dan
lain-lain).
5. Cari tulisan (CTRL+F) “TAG: http_port“, kemudian cek apakah di bawah tulisan “#
Squid normally listens to port 3128” sudah ada tulisan “http_port 3128” atau belum,
jika belum tambahkan tulisan “http_port 3128” di bawah tulisan “# Squid normally
listens to port 3128“.
Sehingga menjadi:
Code:
# TAG: http_port
# Usage: port [options]
# hostname:port [options]
# 1.2.3.4:port [options]
# If you run Squid on a dual-homed machine with an internal
# and an external interface we recommend you to specify the
# internal address:port in http_port. This way Squid will only be
# visible on the internal address.
#
# Squid normally listens to port 3128
http_port 3128
Code:
# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
# define this. Otherwise, the return value of gethostname()
# will be used. If you have multiple caches in a cluster and
# get errors about IP-forwarding you must set them to have individual
# names with this setting.
#
#Default:
# none
visible_hostname localhost
7.Cari tulisan (CTRL+F) “http_access allow localnet“, kemudian cek apakah dibawah
tulisan “http_access allow localnet” sudah terdapat tulisan “http_access allow
localhost” atau belum. Jika belum tambahkan tulisan “http_access allow localhost” di
bawah tulisan “http_access allow localnet“.
Sehingga menjadi:
Code:
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost
Code:
# TAG: dns_nameservers
# Use this if you want to specify a list of DNS name servers
# (IP addresses) to use instead of those given in your
# /etc/resolv.conf file.
# On Windows platforms, if no value is specified here or in
# the /etc/resolv.conf file, the list of DNS name servers are
# taken from the Windows registry, both static and dynamic DHCP
# configurations are supported.
#
# Example: dns_nameservers 10.0.0.1 192.172.0.4
#
#Default:
# none
dns_nameservers 208.67.220.220 208.67.222.222
Code:
C:\>cd c:\squid\sbin\
C:\squid\sbin>
10. Setelah masuk ke directory “cd C:\squid\sbin\” melalui command prompt, kemudian
ketik “squid -z“.
Code:
C:\squid\sbin>squid -z
2008/11/18 08:45:20| Creating Swap Directories
C:\squid\sbin>
11. Masih di “command prompt”, ketik “squid -d l -D“, kemudian tekan “CTRL+C“.
Code:
C:\squid\sbin>squid -d l -D
2008/11/18 08:46:17| Starting Squid Cache version 2.7.STABLE5 for
i686-pc-winnt.
..
2008/11/18 08:46:17| Running on Windows XP
C:\squid\sbin>
Code:
C:\squid\sbin>squid -i
Registry stored HKLM\SOFTWARE\GNU\Squid\2.6\Squid\ConfigFile value
c:/squid/etc/
squid.conf
Squid Cache version 2.7.STABLE5 for i686-pc-winnt
installed successfully as Squid Windows System Service.
To run, start it from the Services Applet of Control Panel.
Don’t forget to edit squid.conf before starting it.
C:\squid\sbin>
13. Dan yang terakhir (masih di command prompt), ketik “squid -O -D”
Code:
C:\squid\sbin>squid -O -D
Registry stored HKLM\SOFTWARE\GNU\Squid\2.6\Squid\CommandLine value
-D
C:\squid\sbin>
14. Untuk menghidupkan proxy, masuk ke “Control Panel” -> “Administrative Tools”
-> “Services“. Kemudian cari nama services “squid” -> “Klik kanan” -> “Start“.
15. Arahkan proxy pada browser anda ke alamat “localhost” dengan port “3128“.
Disarankan menggunakan Firefox karena saya menggunakan Firefox 3.04
Anda juga bisa menghapus services squid tersebut dengan cara mengetikkan perintah
“squid -r -n squid” di Command Prompt.
Code:
C:\squid\sbin>squid -r -n squid
Service squid deleted successfully.
Demikian mungkin langkah-langkah yang harus ditempuh untuk menginstall squid proxy
di windows XP.
Sumber : http://adhipunya.web.id/computer/200...da-windows-xp/
Suported Browser :
1. Mozilla Firefox
2. K-meleon
3. Opera