0% found this document useful (0 votes)
651 views3 pages

Squid For Windows

1. The document provides instructions for installing Squid proxy server on Windows XP. It includes downloading Squid, extracting and placing files in C:\squid, editing the squid.conf file, and specifying settings like DNS servers, ports, and access controls. 2. To run Squid, the commands "squid -z" and "squid -d 1 -D" are used to start in debug mode. Squid is then installed as a Windows service using "squid -i". 3. The Squid service can be started from the Control Panel services menu and Windows Firewall should be disabled or have port 8080 allowed.

Uploaded by

iwanmr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
651 views3 pages

Squid For Windows

1. The document provides instructions for installing Squid proxy server on Windows XP. It includes downloading Squid, extracting and placing files in C:\squid, editing the squid.conf file, and specifying settings like DNS servers, ports, and access controls. 2. To run Squid, the commands "squid -z" and "squid -d 1 -D" are used to start in debug mode. Squid is then installed as a Windows service using "squid -i". 3. The Squid service can be started from the Control Panel services menu and Windows Firewall should be disabled or have port 8080 allowed.

Uploaded by

iwanmr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Instalasi Squid di Windows XP

Download Squid for Windows


Unzip, letakkan di c:\
Buat baru squid.conf atau edit dan rename squid.conf.default menjadi squid.conf
Letakkan di c:\squid\etc

Squid.conf
dns_nameservers 202.73.99.8 61.247.0.8 202.162.220.110

acl all src all


acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 5100
acl Safe_ports port 5000
acl Safe_ports port 5050
acl Safe_ports port 5101
acl purge method PURGE
acl CONNECT method CONNECT
acl port_saya port 5050
http_access allow CONNECT port_saya
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 8080
hierarchy_stoplist cgi-bin ?
access_log c:/squid/var/logs/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir c:/squid/var/cache

Pada contoh diatas, port http default 3128 telah diubah menjadi 8080
http_port 8080

Contoh setting DNS untuk speedy pada squid.conf diatas:


202.134.1.10 dan 202.134.0.155
setting DNS untuk fastnet
202.73.99.8 dan 61.247.0.8
DNS yg lain bisa di googling
Instalasi Squid di Windows XP

Di folder c:\squid\etc ini:


“mime.conf.default” rename menjadi “mime.conf”
“cachemgr.conf.default” rename menjadi “cachemgr.conf”

Di terminal prompt, jalankan perintah:


cd c:\squid\sbin

Setelah itu, jalankan perintah:

squid –z [enter]
Tampilan di prompt
C:\squid\sbin>squid -z
2009/03/25 11:45:30| Creating Swap Directories

squid –d 1 –D [enter]
Tampilan di prompt
C:\squid\sbin> squid –d 1 –D
2009/03/25 23:11:42| Starting Squid Cache version 2.7.STABLE6 for i686-pc-winnt...
2009/03/25 23:11:42| Running on Windows XP
2009/03/25 23:11:42| Process ID 2976
2009/03/25 23:11:42| With 2048 file descriptors available
2009/03/25 23:11:42| With 512 CRT stdio descriptors available
2009/03/25 23:11:42| Windows sockets initialized
2009/03/25 23:11:42| Using select for the IO loop
2009/03/25 23:11:42| DNS Socket created at 0.0.0.0, port 4947, FD 4
2009/03/25 23:11:42| Adding nameserver 202.73.99.8 from squid.conf
2009/03/25 23:11:42| Adding nameserver 61.247.0.8 from squid.conf
2009/03/25 23:11:42| Adding nameserver 202.162.220.110 from squid.conf
2009/03/25 23:11:42| User-Agent logging is disabled.
2009/03/25 23:11:42| Referer logging is disabled.
2009/03/25 23:11:42| logfileOpen: opening log c:/squid/var/logs/access.log
2009/03/25 23:11:42| Unlinkd pipe opened on FD 7
2009/03/25 23:11:42| Swap maxSize 102400 + 8192 KB, estimated 0 objects
2009/03/25 23:11:42| Target number of buckets: 425
2009/03/25 23:11:42| Using 8192 Store buckets
2009/03/25 23:11:42| Max Mem size: 8192 KB
2009/03/25 23:11:42| Max Swap size: 102400 KB
2009/03/25 23:11:42| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2009/03/25 23:11:42| logfileOpen: opening log c:/squid/var/logs/store.log
2009/03/25 23:11:42| Rebuilding storage in c:/squid/var/cache (CLEAN)
2009/03/25 23:11:42| Using Least Load store dir selection
2009/03/25 23:11:42| Set Current Directory to c:/squid/var/cache
2009/03/25 23:11:42| Loaded Icons.
2009/03/25 23:11:42| Accepting proxy HTTP connections at 0.0.0.0, port 8080, FD13.
2009/03/25 23:11:42| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2009/03/25 23:11:42| Accepting HTCP messages on port 4827, FD 15.
2009/03/25 23:11:42| Accepting SNMP messages on port 3401, FD 16.
2009/03/25 23:11:42| Ready to serve requests.
2009/03/25 23:11:42| Done reading c:/squid/var/cache swaplog (0 entries)
2009/03/25 23:11:42| Finished rebuilding storage from disk.
2009/03/25 23:11:42| 0 Entries scanned
2009/03/25 23:11:42| 0 Invalid entries.
2009/03/25 23:11:42| 0 With invalid flags.
2009/03/25 23:11:42| 0 Objects loaded.
2009/03/25 23:11:42| 0 Objects expired.
2009/03/25 23:11:42| 0 Objects cancelled.
2009/03/25 23:11:42| 0 Duplicate URLs purged.
2009/03/25 23:11:42| 0 Swapfile clashes avoided.
2009/03/25 23:11:42| Took 0.3 seconds ( 0.0 objects/sec).
2009/03/25 23:11:42| Beginning Validation Procedure
2009/03/25 23:11:42| Completed Validation Procedure
Instalasi Squid di Windows XP

2009/03/25 23:11:42| Validated 0 Entries


2009/03/25 23:11:42| store_swap_size = 0k
2009/03/25 23:11:43| storeLateRelease: released 0 objects

Lalu, Ctrl-C
Tampilan di prompt
2009/03/25 23:13:08| Preparing for shutdown after 0 requests
2009/03/25 23:13:08| Waiting 0 seconds for active connections to finish
2009/03/25 23:13:08| FD 13 Closing HTTP connection
2009/03/25 23:13:08| Shutting down...
2009/03/25 23:13:08| FD 14 Closing ICP connection
2009/03/25 23:13:08| FD 15 Closing HTCP socket
2009/03/25 23:13:08| FD 16 Closing SNMP socket
2009/03/25 23:13:08| Closing unlinkd pipe on FD 7
2009/03/25 23:13:08| storeDirWriteCleanLogs: Starting...
2009/03/25 23:13:08| Finished. Wrote 0 entries.
2009/03/25 23:13:08| Took 0.0 seconds ( 0.0 entries/sec).
2009/03/25 23:13:08| logfileClose: closing log c:/squid/var/logs/store.log
2009/03/25 23:13:08| logfileClose: closing log c:/squid/var/logs/access.log
2009/03/25 23:13:08| Squid Cache (Version 2.7.STABLE6): Exiting normally.

Lalu, squid -i [enter]


Tampilan di prompt
Registry stored HKLM\SOFTWARE\GNU\Squid\2.6\Squid\ConfigFile value c:/squid/etc/
squid.conf
Squid Cache version 2.7.STABLE6 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.

Lalu, squid -O -D [enter]


Tampilan di prompt
Registry stored HKLM\SOFTWARE\GNU\Squid\2.6\Squid\CommandLine value -D

Jalankan Service squid


Control Panel > Administrative Tools > Services
cari service dengan nama squid, klik kanan > start.

Jangan lupa mematikan Windows Firewall.


Klik Start menu > Settings > Control Panel > Windows Firewall > General > Off > OK
Atau jika Anda ingin tetap menjalankan firewall maka biarkan firewall tetap On
Di tab Exceptions klik Add Port
isikan kolom Name dengan squid , Port Number 8080, TCP, lalu OK.

sumber:

http://tinyurl.com/dmvt5z
http://tinyurl.com/cgtzud

You might also like