Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Window7 deploys the squid agent and installs it as a service

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Download software

Http://squid.acmeconsulting.it/

You can also use the files in the attachment, which uses the squid-2.7.STABLE8 version

two。 Decompress

Extract to disk C and name it squid

3. Create var\ cache on disk D and directory 4. Var\ logs. Enter c:\ squid\ etc4.1 to copy squid.conf.default as squid.conf

4.2 copy mime.conf.default as mime.conf

4.3 copy cachemgr.conf.default is cachemgr.conf

5. Modify squid.confacl 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 80 # http

Acl Safe_ports port 21 # ftp

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 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 1440

Refresh_pattern (cgi-bin |\?) 0 0 0

Refresh_pattern. 0 20% 4320

Cache_mgr 13560794518@163.com

Cache_effective_user squid

Cache_effective_group squid

Visible_hostname syprox.monitor.greatwall.com.cn

Icp_port 3130

Coredump_dir d:/var/cache

6. Initialize cache directory

C:\ squid\ sbin\ squid.exe-z

You will find 16 directories under D:\ cache

7. Turn squid into a windows service

Run cmd as an administrator

C:\ squid\ sbin\ squid.exe-I-n squid_proxy service name is squid_proxy

8. Set the proxy in the browser, port 3128

Attachment: http://down.51cto.com/data/2366888

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report