Asalamualaikum wwb

Selamat datang di bloggerku. Terimakasih telah berkunjung kemari. Disini anda akan mendapatkan berbagai informasi yang mudah-mudahan menarik dan menambah pengetahuan anda.

Saturday, December 1, 2012

Cara Install Squid Proxy di Windows



Squid adalah software yang berfungsi menjalankan sistem cache proxy di sebuah komputer baik berbasis Linux atau Windows. Fungsi proxy sendiri ialah untuk menstabilkan serta mempercepat akses ke sebuah
website dengan menyimpan data yang diakses berulang kali di disk pada server lokal jaringan. Selain mempercepat akses juga dapat menghemat penggunaan bandwith serta kuota bandwitdh. Squid dapat di install di komputer berbasis windows dan tentunya localhost, sehingga bagi anda yang berlangganan paket internet berkuota anda dapat menghemat penggunaan bandwitdh yang diberikan oleh ISP.

Sebelum mengikuti cara install squid, terlebih dahulu download versi 2.7 di sini

Berikut cara menginstall squid di windows.

- Ekstrak file tadi ke direktori C:\ atau sesuaikan dengan keinginan anda
- Edit nama file di folder etc dengan menghapus nama default di belakang nama file
- Edit file squid.conf:

*cari tulisan :

#  TAG: cache_mgr
# Email-address of local cache manager who will receive
# mail if the cache dies. The default is "webmaster".
#
#Default:
# cache_mgr webmaster

hapus dan ganti tulisan # cache_mgr webmaster dengan  cache_mgr email-anda@domain.com sehingga menjadi seperti ini:


#  TAG: cache_mgr
# Email-address of local cache manager who will receive
# mail if the cache dies. The default is "webmaster".
#
#Default:
cache_mgr mirzasky@cizata103.info
*cari tulisan 
# TAG: http_port


# Usage: port [options]
# hostname: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

pastikan di sana sudah ada tulisan http_port 3128
* cari tulisan
#  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
hapus #none ganti dengan visible_hostname localhost 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:
visible_hostname localhost

* Temukan http_access allow localnet. Tambahkan http_access allow localhost di bawahnya 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


* Terakhir cari 
#  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
ganti # none dengan dns_nameservers 8.8.8.8 8.8.4.4 jika anda ingin menggunakan dns google untuk mesin squid 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:
dns_nameservers 8.8.8.8 8.8.4.4
Lalu simpan.
- Buka commant promt.
- Ketik cd C:\squid\sbin lalu enter.
- Ketik squid -d 1 -D lalu enter. Jika tidak jalan otomatis, tekan “Ctrl+C“ .

- Ketik squid -i lalu enter.
- ketik  squid -O -D lalu enter.

- Install squid selesai
- Running service proxy, gunakan aplikasi service manager atau cari service di control panel
- Buka Aplikasi service manager carai "squid" lalu tekan "start service"
- Setel proxy browser anda dengan ip 127.0.0.1 dan port nya 3128
- Coba buka sebuag website, misalnya google.com
-  Jika terbuka maka squid telah berjalan dengan baik
p : 199.195.193.109 (singapura)
port : 7/21/25/53/80/110/123/143/443/1863/5050/5100/5190/5222
user : rahasia, pass : rahasia2012
pilih sendiri portnya ya

install squid di lepi/kompi nya, set dns di mesin squid ke google dns
set proxy browser ke 127.0.0.1 port 3128