Install squid in Windows

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.