Anda di halaman 1dari 18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

Blog Acak Adut

Instalasi Squid Proxy Server Di Windows XP


Posted on Januari 27, 2010 by efjeer

Proxy Server adalah server yang berguna sebagai perantara antara client dengan server gateway sebelum berhubungan ke Internet. Dengan adanya proxy server ini, maka url / situs yang sering dibrowsing akan semakin terasa semakin cepat terakses oleh user, karena telah disimpan di dalam cache proxy. Selain itu, proxy server juga memiliki fungsi lainnya, diantaranya autentifikasi user, memblok situs, memblok banner, dan lain-lain. Kenapa menggunakan cache proxy ? Dengan cache proxy, pada situs-situs yang sering kita kunjungi, content yang harus didownload dan mengurangi waktu dan jatah quota apabila menggunakan koneksi internet yang berbasis Volume. 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 irit bandwidth. Ok, langsung saja ke proses instalasinya. 1. Download dulu Squid Proxy 2.7 Stable8 (http://squid.acmeconsulting.it/download/squid2.7.STABLE8-bin.zip) 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
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 1/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

- 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 : # TAG: http_port # Usage: port [options] # hostnameort [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 addressort 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.
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 2/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

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]
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 3/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

[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:\Documents and Settings\user> cd C:\squid\sbin\ C:\squid\sbin> 10. Setelah masuk ke directory cd C:\squid\sbin\ melalui command prompt, kemudian ketik perintah-perintah berikut : squid -z <enter>. squid -d 1 D <enter> kemudian tekan CTRL+C.
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 4/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

squid -i <enter> squid -O D <enter>

11. Untuk menghidupkan proxy, masuk ke Control Panel -> Administrative Tools -> Services. Kemudian cari nama services squid -> Klik kanan -> Start

12. Arahkan proxy pada browser anda ke alamat localhost dengan port 3128.

13. 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. 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. Selamat Mencoba. Filed under: Tutorial Ditandai: | Internet, Komputer, Proxy, Server, Squid, Windows Perintah-Perintah Dasar Linux Merakit Sendiri Kabel Jaringan Komputer

30 Tanggapan
1.

dedifuryawan, on Februari 18, 2010 at 2:26 am said: bisakah di kirimin yang sudah di edit soalnya neditnya bingung, tnx

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

5/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

0 0 i Rate This Balas 2. dedifuryawan, on Februari 18, 2010 at 2:28 am said: kalo ada jd sy bisa download yang sudah d edit he he maklum baru blajar om. 0 1 i Rate This Balas 3. afandi, on April 5, 2010 at 8:45 pm said: link download nya kok error 0 0 i Rate This Balas efjeer, on April 8, 2010 at 1:18 pm said: @afandi : iya error servernya sekarang bisa di download lagi.

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

6/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

0 0 i Rate This Balas 4. ian, on April 22, 2010 at 6:51 pm said: mas itu contoh penempatan dnsnya kan lansung dari modem ke switch, klo modem trz mikrotik lalu switch gimana? apakah pake ip localnya mikrotik? 0 0 i Rate This Balas 5. SHOLAHUDIN, on Mei 1, 2010 at 7:46 am said: saya sudah praktekan tapi waktu sampai ke no [11. Masih di command prompt, ketik squid -d 1 -D, kemudian tekan CTRL+C.] setelah saya tekan CTRL+C tidak ada reaksi apa-apa tulisan tetap C:\squid\sbin> mohon bantuanya.. 0 0 i Rate This Balas

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

7/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

efjeer, on Mei 3, 2010 at 5:11 pm said: ketik dulu perintah squid -d 1 -D kemudian enter. baru tekan CTRL+C 0 0 i Rate This Balas 6. rangga19, on September 21, 2010 at 9:43 am said: mas tutorialnya membantu banget, trimakasih, tapi saya mau tanya boleh ya mas, maklum nubie.. saya mau buka warnet modal nekat, (tanpa mikrotik), jadi yang harus saya instal squid ini serernya aja, atau pada clien jg mas.. trs klo pada client jg, apa ada setingan yang hrus dirubah.. trimakasih atas pencerahannya mas 0 0 i Rate This Balas efjeer, on September 24, 2010 at 1:04 pm said: install squid di komputer yang akan dijadikan server proxy. kemudian setting default gateway pada network card setiap client dengan IP address server proxy. 0 1 i Rate This Balas
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 8/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

7.

adyfarid, on Desember 22, 2010 at 4:08 pm said: mas mau nanya,maklummasih baru balajar,bisa engga di setting transparan pada squid windows,bagaimana caranya,mohon pencerahan,maklum baru belajar 0 0 i Rate This Balas efjeer, on Desember 23, 2010 at 11:53 pm said: secara default, Squid for windows tidak mendukung transparent proxy karena windows xp nya tidak mendukung port forwarding. tapi bisa memakai squid for windows + Softperfect Bandwith Manager. 1 0 i Rate This Balas

8.

rastantio, on Februari 23, 2011 at 12:34 pm said: sebelum dan sesudahnya terima kasih,, langsung saja,, topology warnet : modem(tp-link TD-8817) mikrotik (RB750G) Switch pc Billing, pc OP, 6 pc Client rencana : untuk squid proxy server windowsnya saya tarud di mikrotik RB750G. pertanyaan : 1. cara setting mikrotik agar bisa membelokkan trafik ke squid proxy server windowsnya ? 2. cara seting squid proxy server windows agar bisa berjalan di client dan op. 3. mohon pencerahan dari admin untuk saya bisa setting, supaya koneksi di warnet saya bisa berjalan antara mikrotik+squid proxy+client+operatot+billing. terima kasih,,

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

9/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

2 0 i Rate This Balas 9. ricki, on Mei 3, 2011 at 1:17 am said: mas aku nekat2tan buka warnet. aku pke rb750g. truz aku pake pengaturan standartnya. langkah diatas uda kucoba. diserver berjalan lancar tapi diklien kok ga bisa ya mas.! gimana cara mengaturnya melalui mikrotik.! pliiizzzzz bantuannya mas 0 0 i Rate This Balas 10. SaLvO, on Mei 11, 2011 at 8:38 am said: ada yang tahu ga cara gabungin proxy ini ama mikrotik.???? 0 0 i Rate This Balas 11. dimas, on Mei 15, 2011 at 9:51 pm said: salam kenal mas, saya mau nanya, tutorial ini busa d gunakan untuk windows 7

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

10/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

0 0 i Rate This Balas efjeer, on Juli 22, 2011 at 10:13 am said: saya belum coba untuk win 7 0 0 i Rate This Balas 12. Muhammad Husni, on Juli 8, 2011 at 12:01 pm said: apa perlu di atur di software browsernya? misal mozilla atau IE. kalau memang harus diatur, caranya bagaimana? mohon pencerahan. thanks before 0 0 i Rate This Balas efjeer, on Juli 22, 2011 at 10:11 am said: setting pada pengaturan browser nya di bagian proxy. kalo mozilla klik tools > Options klik tab Advanced trus tab network. klik tombol setting. pilih Manual Proxy Configuration dan isi HTTP Proxy nya dengan 127.0.0.1 Port 3128. jangan lupa centang juga Use this proxy server for all protocols. klik OK dan OK lagi.
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 11/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

0 0 i Rate This Balas 13. Cornel Tanady, on Agustus 2, 2011 at 8:45 pm said: Trima kasih buanget efjeer.. Sudah mengikuti langkah2 yang anda arahkan dan berhasil dengan baik.. ^.^ Btw, ada pertanyaan singkat nih kalo boleh, sbb: Apakah squid ini harus di install di SEMUA PC komputer yg IP nya berbeda ? Atau hanya perlu 1 komputer doank yg di install ? Secara logika sih.. memang seharusnya di SEMUA PC ?? Thanks ya.. Cornel 0 0 i Rate This Balas 14. Cornel Tanady, on Agustus 2, 2011 at 9:03 pm said: install squid di komputer yang akan dijadikan server proxy. kemudian setting default gateway pada network card setiap client dengan IP address server proxy. Maaf ya baru baca setelah bertanya di atas.. Setelah setting default gateway setiap client dengan IP address server proxy.. Apa setting nya utk Subnet mask ? 255.255.255.0 >> ini betul / boleh ??
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 12/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

Dan apa yg shrsnya kita pakai utk Preferred DNS Server dan Alternate DNS Server? > Apakah SAMA dengan yg di pakai di server proxy ? Trima kasih buanyak ya mas.. 0 0 i Rate This Balas 15. NOVIT, on Agustus 8, 2011 at 11:40 am said: mas kok pas masuk cmd prom setelah ketik squid -z ada tulisan FATAL . 0 0 i Rate This Balas 16. arif dwi, on Agustus 11, 2011 at 9:28 am said: mas bisa minta tolong diajarin membuat autentikasi login dengan username password menggunakan squid.mau saya terapkan di lab komputer tempat saya agar anak yang mau internetan harus memasukkan username dan password 0 0 i Rate This Balas efjeer, on Agustus 23, 2011 at 12:05 pm said:
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 13/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

ni ane punya tutorial nya tapi buat squid under Linux http://yosepraharja.wordpress.com/2010/02/09/authentikasi-user-login-di-squid/ 0 0 i Rate This Balas 17. i2r3nk, on Agustus 12, 2011 at 6:22 am said: 10. Setelah masuk ke directory cd C:\squid\sbin\ melalui command prompt, kemudian ketik perintah-perintah berikut : squid -z . squid -d 1 D kemudian tekan CTRL+C. squid -i squid -O D Gk jalan..error command 0 0 i Rate This Balas 18. edison, on Agustus 15, 2011 at 11:04 am said: Mas sy pake mirotik, bisa jelasin setingannya? topologinya Speedy >modem>mikrotik>switch>server | |->Client 1 |->Client 2

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

14/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

0 0 i Rate This Balas 19. zulhairy, on September 22, 2011 at 4:56 pm said: cache nya disimpang di folder mana mas, dan bisa ngak dijadikan external proxy di mikrotik. thank tutorialnya..sangat membantu 0 0 i Rate This Balas 20. andykid, on Oktober 8, 2011 at 1:04 pm said: makasih banyak gan, saya berhasil buat proxy di windows xp. trs cara ngliat log di proxy nya gimana gan? tau ga? 0 0 i Rate This Balas 21. DhaniesBanjarmasin SeasonKelima, on Oktober 15, 2011 at 1:23 am said: Mohon Bantuannya di dalam C:\squid\sbin\squid.exe.log terdapat pesan seperti di bawah ini ===================================================
15/18

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

| parseConfigFile: squid.conf:2 unrecognized: visible_hostname=host | parseConfigFile: squid.conf:4 unrecognized: httpd_accel_host | parseConfigFile: squid.conf:5 unrecognized: httpd_accel_port | parseConfigFile: squid.conf:6 unrecognized: httpd_accel_with_proxy | parseConfigFile: squid.conf:7 unrecognized: httpd_accel_uses_host_header =================================================== Sedangkan settingan C:\squid\etc\squid.conf nya seperti ini =================================================== #file squid.conf visible_hostname=host http_port 8000 httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on icp_port 0 visible_hostname padi-murni acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY cache_mem 64 MB cache_dir ufs c:/squid/var/cache 4500 16 256 redirect_rewrites_host_header off acl mylan src 192.168.1.0/24 acl mynet src 192.168.1.0/24 acl localhost src 127.0.0.1/255.255.255.255 acl Safe_ports port 80 443 210 119 70 21 1025-65535 acl CONNECT method CONNECT acl localnet src 192.168.1.0/24 acl blocklist url_regex c:/squid/etc/blocklist.txt cache_mgr me@localhost cache_access_log c:/squid/var/logs/access.log cache_store_log c:/squid/var/logs/store.log cache_log c:/squid/var/logs/cache.log log_icp_queries off cachemgr_passwd rahasia acl manager proto cache_object http_access allow manager acl all src 0.0.0.0/0.0.0.0 http_access allow mynet http_access allow localnet http_access allow localhost http_access allow mylan
fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/ 16/18

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

http_access deny all never_direct allow all cache_peer IP_PROXY_UII parent 800 0 no-query no-netdb-exchange no-digest #eof ====================================================== Apakah ada kesalahan dari settingan diatas? Yang mana? 0 0 i Rate This Balas andykid, on Desember 5, 2011 at 2:19 pm said: yg salah di baris ke 2,4,5,6,7. kan udh ada keterangannya tuh gan. jd baris ke 2,4,5,6,7 yg isinya: visible_hostname=host >> ga blh pake sama dengan gan. httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on diapus aja, karna ga ada perintah sprti itu di squid.conf. untuk visible_hostname dibawahnya udh ada jadi yg diatas apus aja. smoga membantu. 0 0 i Rate This Balas 22. bayu, on Desember 29, 2011 at 3:29 pm said: saat bagian ini squid -d 1 -D
17/18

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

19/06/12

Instalasi Squid Proxy Server Di Windows XP Blog Acak Adut

muncul FATAL: unable to open configuration file dan d service tidak ada service squid???? 0 0 i Rate This Balas

Blog pada WordPress.com. Tema: Digg 3 Column oleh WP Designer.

fajarfajrun.wordpress.com/2010/01/27/instalasi-squid-proxy-server-di-windows-xp/

18/18

Anda mungkin juga menyukai