Kalau selama ini dibahas melakukan instalasi Squid di OS Linux, ini posting spesial buat mas betho yang masih bingung melakukan instalasi Squid di Windowsnya.
Pada prinsipnya instalasi dan konfigurasi di Linux atau Windows adalah sama.
Berikut tahapan instalasi Squid di windows:
- Donwload binary file squid
File download dapat diperoleh di http://squid.acmeconsulting.it/download/dl-squid.html
File yang dipilih untuk di download ada 3 pilihan, yaitu
- Standard ==> Untuk fungsi standar dari squid
- Delay Pools ==> Menyertakan fungsi Delay Pools
- SSL Support ==> Menyertakan fungsi SSLBinaries Version Release
dateBuild type 2.3.STABLE5-NT - OBSOLETE 11/04/2002 Standard External DNS Delay Pools 2.5.STABLE14-NT - OBSOLETE 28/05/2006 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL 2.6.STABLE22 20/10/2008 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL 2.7.STABLE2 01/06/2008 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL 2.7.STABLE3 29/06/2008 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL 2.7.STABLE4 10/08/2008 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL 2.7.STABLE5 20/10/2008 Standard Delay Pools SSL support for reverse proxy only - EXPERIMENTAL - Extrack file yang sudah di download di C:\squid
- Sesuaikan konfigurasi file di c:\squid\etc\squid.conf
File ini disalin saja dari c:\squid\etc\squid.conf.default
Untuk parameter apa saja yang disesuaikan bisa lihat disini:
- http://kusprayitna.staff.uii.ac.id/2008/08/29/setup-proxy-squid-di-centos/ (point 1 & 2)
- http://kusprayitna.staff.uii.ac.id/2008/12/11/membatasi-download-pada-squid/
- http://kusprayitna.staff.uii.ac.id/2009/01/05/filter-content-sederhana-di-squid/
- http://kusprayitna.staff.uii.ac.id/2008/12/10/squid-cache-server-sangat-lambat/Prinsip dasar yang disetup yaitu :
(dengan cara mencari kata kunci di file squid.conf dan dihapus tanda # dan disesuaikan nilainya)# alamat portnya
- http_port 800
# Jika dibelakang proxy, tentukan proxy induknya
- cache_peer IP_PROXY_UII parent 800 0 no-query no-netdb-exchange no-digest
# tentukan alamat komputer client, misal 192.168.0.2 mask 255.255.255.0 & localhost
- acl mylan src 192.168.0.0/24
- http_access allow mylan
- http_access allow localhost
- http_access deny all# Jika dibelakang proxy, tambahkan baris ini
- never_direct allow all - Buat cache direktorynya
c:\squid\sbin\squid.exe -D -z - Jalankan squid
c:\squid\sbin\squid.exeapabila dibelakang proxy atau tidak ada DNS server, maka bisa denganc:\squid\sbin\squid.exe -Dapabila ada kesalahan atau gagal start, pesan kesalahan dituliskan di c:\squid\var\logs - Ujicoba di browser, apakah sudah bisa
Jangan lupa seting proxy server ke alamat squid diinstall dan portnya disesuaikan juga (800) - Tuning agar squid kerja sesuai keinginan
- Install squid agar jalan otomatis sebagai service di windowsc:\squid\sbin\squid.exe -i
Usage: squid [-hirvzCDFRYX] [-d level] [-s | -l facility] [-f config-file] [-u port] [-k signal] [-n name] [-O command-line]
-d level Write debugging to stderr also.
-f file Use given config-file instead of
c:/squid/etc/squid.conf
-h Print help message.
-i Installs as a Windows Service (see -n option).
-k reconfigure|rotate|shutdown|interrupt|kill|debug|check|parse
Parse configuration file, then send signal to
running copy (except -k parse) and exit.
-n name Specify Windows Service name to use for service operations
default is: Squid.
-r Removes a Windows Service (see -n option).
-s | -l facility
Enable logging to syslog.
-u port Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create swap directories
-C Do not catch fatal signals.
-D Disable initial DNS tests.
-F Don’t serve any requests until store is rebuilt.
-N No daemon mode.
-O options
Set Windows Service Command line options in Registry.
-R Do not set REUSEADDR on port.
-S Double-check swap during rebuild.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
Selamat mencoba dan sukses selalu