http://squid.acmeconsulting.it/
也可以使用附件中的文件,该配置使用squid-2.7.STABLE8版本
解压到C盘,命名为squid
4.2拷贝mime.conf.default为mime.conf
4.3拷贝cachemgr.conf.default为cachemgr.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 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 0% 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
C:\squid\sbin\squid.exe -z
会在D:\cache下面发现16个目录
以管理员身份运行cmd
C:\squid\sbin\squid.exe -i -n squid_proxy 服务名字为squid_proxy
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。