1. Download the software
http://squid.acmeconsulting.it/
You can also use the file in the attachment, which uses the Squid-2.7.stable8 version
2. Unzip
Unzip to C drive, name squid
3. Create Var\cache, and Var\logs directories in D-Disk4. Enter C:\squid\etc4.1 copy Squid.conf.default for squid.conf
4.2 Copy Mime.conf.default for mime.conf
4.3 Copy cachemgr.conf.default for cachemgr.conf
5. Modify Squid.conf
ACL manager Proto Cache_object
ACL all src all
ACL localhost src 127.0.0.1/32
ACL to_localhost DST 127.0.0.0/8 0.0.0.0/32
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 # http
ACL safe_ports Port # FTP
ACL safe_ports Port 443 # HTTPS
ACL safe_ports Port # Gopher
ACL safe_ports Port # 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 Connect method Connect
#http_access Deny Sex
Http_access allow manager localhost
Http_access Deny Manager
Http_access Deny! Safe_ports
Http_access Allow CONNECT! Ssl_ports
Http_access Allow LocalNet
Http_access Deny All
Icp_access Allow LocalNet
Icp_access Deny All
Htcp_access Allow LocalNet
Htcp_access Deny All
Http_port 3128
Hierarchy_stoplist Cgi-bin?
Cache_dir UFS D:/var/cache 100 16 256
Access_log D:/var/logs/access.log Squid
Cache_log D:/var/logs/cache.log
Cache_store_log D:/var/logs/store.log
Refresh_pattern ^ftp:1440 20% 10080
Refresh_pattern ^gopher:1440 0% 1440
Refresh_pattern (cgi-bin|\?) 0 0% 0
Refresh_pattern. 0 20% 4320
cache_mgr [email protected]
Cache_effective_user Squid
Cache_effective_group Squid
Visible_hostname syprox.monitor.greatwall.com.cn
Icp_port 3130
Coredump_dir D:/var/cache
6. Initializing the cache directory
C:\squid\sbin\squid.exe-z
Will find 16 listings under D:\cache
7. make squid into a Windows service
Run cmd as Administrator
C:\squid\sbin\squid.exe-i-N squid_proxy service name is Squid_proxy
8. In the browser settings agent, Port 3128
This article is from the "Friends on the Road" blog, please be sure to keep this source http://supan.blog.51cto.com/7405859/1950922
Window7 Deploy Squid agent and install as a service