• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
Instalasi Squid di
Windows XP 
Download Squid for WindowsUnzip, 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.110acl all src allacl manager proto cache_objectacl localhost src 127.0.0.1/32acl to_localhost dst 127.0.0.0/8acl localnet src 10.0.0.0/8 # RFC1918 possible internal networkacl localnet src 172.16.0.0/12 # RFC1918 possible internal networkacl localnet src 192.168.0.0/16 # RFC1918 possible internal networkacl SSL_ports port 443acl Safe_ports port 80 # httpacl Safe_ports port 21 # ftpacl Safe_ports port 443 # httpsacl Safe_ports port 70 # gopheracl Safe_ports port 210 # waisacl Safe_ports port 1025-65535 # unregistered portsacl Safe_ports port 280 # http-mgmtacl Safe_ports port 488 # gss-httpacl Safe_ports port 591 # filemakeracl Safe_ports port 777 # multiling httpacl Safe_ports port 631 # cupsacl Safe_ports port 873 # rsyncacl Safe_ports port 901 # SWATacl Safe_ports port 5100acl Safe_ports port 5000acl Safe_ports port 5050acl Safe_ports port 5101acl purge method PURGEacl CONNECT method CONNECTacl port_saya port 5050http_access allow CONNECT port_sayahttp_access allow manager localhosthttp_access deny managerhttp_access deny !Safe_portshttp_access deny CONNECT !SSL_portshttp_access allow localnethttp_access deny allicp_access allow localneticp_access deny allhttp_port 8080hierarchy_stoplist cgi-bin ?access_log c:/squid/var/logs/access.log squidrefresh_pattern ^ftp: 1440 20% 10080refresh_pattern ^gopher: 1440 0% 1440refresh_pattern -i (/cgi-bin/|\?) 0 0% 0refresh_pattern . 0 20% 4320acl apache rep_header Server ^Apachebroken_vary_encoding allow apachecoredump_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 -z2009/03/25 11:45:30| Creating Swap Directories
 
squid –d 1 –D
[enter]
Tampilan di prompt
C:\squid\sbin>
 
squid –d 1 –D2009/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 XP2009/03/25 23:11:42| Process ID 29762009/03/25 23:11:42| With 2048 file descriptors available2009/03/25 23:11:42| With 512 CRT stdio descriptors available2009/03/25 23:11:42| Windows sockets initialized2009/03/25 23:11:42| Using select for the IO loop2009/03/25 23:11:42| DNS Socket created at 0.0.0.0, port 4947, FD 42009/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.log2009/03/25 23:11:42| Unlinkd pipe opened on FD 72009/03/25 23:11:42| Swap maxSize 102400 + 8192 KB, estimated 0 objects2009/03/25 23:11:42| Target number of buckets: 4252009/03/25 23:11:42| Using 8192 Store buckets2009/03/25 23:11:42| Max Mem size: 8192 KB2009/03/25 23:11:42| Max Swap size: 102400 KB2009/03/25 23:11:42| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec2009/03/25 23:11:42| logfileOpen: opening log c:/squid/var/logs/store.log2009/03/25 23:11:42| Rebuilding storage in c:/squid/var/cache (CLEAN)2009/03/25 23:11:42| Using Least Load store dir selection2009/03/25 23:11:42| Set Current Directory to c:/squid/var/cache2009/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 scanned2009/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 Procedure2009/03/25 23:11:42| Completed Validation Procedure
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...