1. Download squid for windows
:
Http://www.acmeconsulting.it/SquidNT.html
Http://www.jb51.net/softs/43599.html
Ii. Install squid and configuration in Windows
1.decompress squid-2.6.stable6-nt-bin.zip to C: \ squid
2. Click [start], select "run", Enter cmd, and enter the following command in the Command Prompt window:
C: \> cd c: \ squid \ etc
C: \ squid \ etc> copy squid. conf. default squid. conf
** Copy the default configuration file of Squid and name it squid. conf.
C: \ squid \ etc> copy mime. conf. default mime. conf
** Copy mime. conf. default and name it mime. conf.
3. Edit squid. conf and add and modify the following content as needed.
Http_port 3128; defines the squid listening port
Visible_hostname tianwei-itrus: defines the machine name
Cache_mem 64 MB; defines the proxy server Cache
Acl all src 0.0.0.0/0.0.0.0
Acl manager proto cache_object
Acl localhost src 127.0.0.1/strongswan 255.255: defines the ingress network as localhost
Acl outnetwork 192.168.10.0/255.255.255.0
Acl SSL_ports port 443
Acl Safe_ports port 80 # define the http port
Acl Safe_ports port 21 # define the ftp port
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 1863 # filemaker
Acl Safe_ports port 777 # multiling http
Acl CONNECT method CONNECT
Http_access allow localhost manager
Http_access allow outnetwork
Icp_access allow all
Http_access deny! Safe_ports
Http_access deny CONNECT! SSL_ports
Http_reply_access allow all
Icp_access allow all
Http_access deny all
3. After installing squid in Windows, start squid
C: \> cd c: \ squid \ sbin
C: \ squid \ sbin> squid-I (register Squid as a Windows Service)
C: \ squid \ sbin> squid-z (cache directory generated)
C: \ squid \ sbin> squid