Details of the steps to install squid under Windows
- 2020-05-07 20:40:10
- OfStack
1. Download squid for windows
download address:
http://www.acmeconsulting.it/SquidNT.html
//www.ofstack.com/softs/43599.html
2. Install squid under Windows and configure
1. Unzip 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
** make a copy of the default configuration file for Squid and name it squid.conf
C: \ squid \ etc > copy mime.conf.default mime.conf
** make one copy of mime.conf.default and name it mime.conf
3. Edit squid.conf and add and modify the following as needed
http_port 3128; Define the squid listening port
visible_hostname tianwei-itrus: defines the machine name
64 MB cache_mem; Define the proxy cache
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255: define the local network for localhost
acl outnetwork 192.168.10.0/255.255.255.0
acl SSL_ports port 443
acl Safe_ports port 80 # defines the http port
acl Safe_ports port 21 # defines 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
After installing squid under Windows, start squid
c: \ > cd c:\squid\sbin
C: \ squid \ sbin > squid-i (register Squid as Windows service)
C: \ squid \ sbin > squid-z (directory to generate cache)
C: \ squid \ sbin > squid
download address:
http://www.acmeconsulting.it/SquidNT.html
//www.ofstack.com/softs/43599.html
2. Install squid under Windows and configure
1. Unzip 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
** make a copy of the default configuration file for Squid and name it squid.conf
C: \ squid \ etc > copy mime.conf.default mime.conf
** make one copy of mime.conf.default and name it mime.conf
3. Edit squid.conf and add and modify the following as needed
http_port 3128; Define the squid listening port
visible_hostname tianwei-itrus: defines the machine name
64 MB cache_mem; Define the proxy cache
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255: define the local network for localhost
acl outnetwork 192.168.10.0/255.255.255.0
acl SSL_ports port 443
acl Safe_ports port 80 # defines the http port
acl Safe_ports port 21 # defines 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
After installing squid under Windows, start squid
c: \ > cd c:\squid\sbin
C: \ squid \ sbin > squid-i (register Squid as Windows service)
C: \ squid \ sbin > squid-z (directory to generate cache)
C: \ squid \ sbin > squid