Forum Indonesia, forumkami.net
Go Back   Forum Indonesia, forumkami.net > Club > Komputer > Internet
Reload this Page Menghemat Quota Bandwith dengan Squid proxy pada Windows

Menghemat Quota Bandwith dengan Squid proxy pada Windows





Reply
 
Thread Tools
Old 28th February 2009, 03:13 AM   #1 (permalink)
Fokamer Computer
 
mafia's Avatar
 
Gender: Pria / Male
Negara: iran
Join Date: Oct 2008
Location: Iran
Posts: 1,168
Blog Entries: 2

Mood
Cool

mafia mafia mafia mafia mafia mafia



Send a private message to mafia



Thumbs up Menghemat Quota Bandwith dengan Squid proxy pada Windows

Menghemat Quota Bandwith dengan Squid proxy pada Windows. Pada koneksi ber-quota terbatas seperti Indosat 3G Broadband, Indosat M2, dan 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.

Ok, langsung saja ke proses instalasinya.


1. Download dulu Squid Proxy 2.7 Stable5 untuk Windows
2. Extract file tersebut di partisi mana saja.. terserah, dimana saja boleh. Untuk mempermudah langkah-langkah instalasinya, bisa disamakan dengan saya, atau extract di “C:\squid\“
3. Setelah semua ter-extract, masuk ke folder “C:\squid\etc\“. Disana terdapat file-file konfigurasi squid :

# cachemgr.conf.default

# mime.conf.default

# squid.conf.default

# squid_radius_auth.conf.default

Kemudian rename keempat file tersebut dengan menghilangkat tulisan “.default“. Sehingga menjadi:

* 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
6. Cari tulisan (CTRL+F) “TAG: visible_hostname“, kemudian cek apakah di bawah tulisan “# none” sudah ada tulisan “visible_hostname localhost” atau belum. Jika belum, tambahkan tulisan “visible_hostname localhost” di bawah tulisan “# none“.
Sehingga menjadi:

# 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:

# 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

8. Cari tulisan (CTRL+F) “TAG: dns_nameservers“, kemudian dibawahnya pada tulisan “dns_nameservers“, isi value dns dengan dns ISP nya masing-masing, atau dengan DNS yang biasanya anda gunakan. Sehingga formatnya menjadi “dns_nameservers [primary DNS] [secondary DNS]“. Contohnya ditempat saya menggunakan OpenDNS, sehingga menjadi “dns_nameservers 208.67.220.220 208.67.222.222“.
Sehingga menjadi:

# 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

Simpan (CTRL+S) “squid.conf” yang baru saja kita edit tadi.

9. Buka “Command Prompt“, kemudian masuk ke directory “squid” tadi melalui “Command Prompt”. Contohnya adalah dengan mengetik “cd C:\squid\sbin\“.

C:\>cd c:\squid\sbin\

C:\squid\sbin>

10. Setelah masuk ke directory “cd C:\squid\sbin\” melalui command prompt, kemudian ketik “squid -z“.

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“.

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>

12. Masih di “command prompt”, ketik “squid -i”

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”

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

16. Test dengan mengunjungi situs-situs yang sering anda buka.


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.

Kalau ada yg kurang tolong ditambahkan

forumkami.NET

mafia is offline Report Post   Reply With Quote

Top 5 Similar Threads:
Thread Thread Starter Home Replies Last Post
Cara Menambah Bandwith di windows Anda novita Cafe 4 9th June 2011 11:44 AM
Tips Ampuh Menghemat Quota El_Hefe Tips 5 11th February 2011 04:37 PM
Tips Menghemat Energi Pada PC Dan Laptop HaryCurly Komputer 0 15th May 2010 12:41 PM
Bugs F1 Pada Windows XP fotosyur Komputer 1 6th March 2010 09:27 AM
Masalah Pada Windows 7 LaksamanaEmbun Komputer 1 5th December 2009 10:52 PM

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off






Forum | Forum Jual Beli | Blog | Groups
Peraturan dan Disclaimer | Term of use | General Rules | Pasang iklan / Advertise with us



Content Relevant URLs by vBSEO ©2010, Crawlability, Inc.