免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
楼主: HonestQiao

[proxy] [操作实例] squid-2.6之Web反向代理加速实做/防盗链/防盗用/防爬虫 [复制链接]

论坛徽章:
0
发表于 2008-04-19 11:06 |显示全部楼层
Starting Squid Cache version 2.6.STABLE19 for i686-pc-winnt...
2008/04/19 10:39:12| Running as Squid Windows System Service on Windows Server 2003
2008/04/19 10:39:12| Service command line is:
2008/04/19 10:39:12| Process ID 11904
2008/04/19 10:39:12| With 2048 file descriptors available
2008/04/19 10:39:12| With 2048 CRT stdio descriptors available
2008/04/19 10:39:12| Windows sockets initialized
2008/04/19 10:39:12| Using select for the IO loop
2008/04/19 10:39:12| Performing DNS Tests...
2008/04/19 10:39:12| Successful DNS name lookup tests...
2008/04/19 10:39:12| DNS Socket created at 0.0.0.0, port 3993, FD 5
2008/04/19 10:39:12| Adding nameserver 218.2.135.1 from Registry
2008/04/19 10:39:12| User-Agent logging is disabled.
2008/04/19 10:39:12| Referer logging is disabled.
2008/04/19 10:39:12| Unlinkd pipe opened on FD 7
2008/04/19 10:39:12| Swap maxSize 10240000 KB, estimated 787692 objects
2008/04/19 10:39:12| Target number of buckets: 39384
2008/04/19 10:39:12| Using 65536 Store buckets
2008/04/19 10:39:12| Max Mem  size: 2097152 KB
2008/04/19 10:39:12| Max Swap size: 10240000 KB
2008/04/19 10:39:12| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/04/19 10:39:12| Store logging disabled
2008/04/19 10:39:12| Rebuilding storage in c:/squid/var/cache (CLEAN)
2008/04/19 10:39:12| Using Least Load store dir selection
2008/04/19 10:39:12| Set Current Directory to c:/squid/var/cache
2008/04/19 10:39:12| Loaded Icons.
2008/04/19 10:39:12| Accepting accelerated HTTP connections at 0.0.0.0, port 80, FD 12.
2008/04/19 10:39:12| Accepting HTCP messages on port 4827, FD 13.
2008/04/19 10:39:12| Accepting SNMP messages on port 3401, FD 14.
2008/04/19 10:39:12| Configuring Parent 127.0.0.1/82/0
2008/04/19 10:39:12| Ready to serve requests.
2008/04/19 10:39:13| temporary disabling (Not Found) digest from 127.0.0.1
2008/04/19 10:39:42| WARNING! Your cache is running out of filedescriptors
2008/04/19 10:40:00| WARNING! Your cache is running out of filedescriptors
2008/04/19 10:40:16| WARNING! Your cache is running out of filedescriptors
2008/04/19 10:40:33| WARNING! Your cache is running out of filedescriptors
2008/04/19 10:40:49| TCP connection to 127.0.0.1/82 failed
2008/04/19 10:40:49| TCP connection to 127.0.0.1/82 failed
2008/04/19 10:40:49| TCP connection to 127.0.0.1/82 failed

出现上面的问题有什么解决方法吗,
打开浏览器输入 127.0.0.1:80/
页面是可以访问的!

论坛徽章:
0
发表于 2008-04-21 13:34 |显示全部楼层
#限制同一IP客户端的最大连接数
acl OverConnLimit maxconn 16
http_access deny OverConnLimit

------------------------------------------
这里的连接是指什么?所有的UDP和TCP连接吗?有的电脑可以打开16个IE页面,有的只能开一个页面,有的连一个页面也开不了。但如果不限制连接数,打开网页却没问题。请教达人,是为什么?

论坛徽章:
0
发表于 2008-06-03 14:03 |显示全部楼层
验证完毕,很好!~

acl MyNetwork src 192.168.0.0/16
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl CONNECT method CONNECT
acl Safe_ports  port 80 21

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow MyNetwork
icp_access allow all
http_access deny all
http_port 192.168.5.124:80 transparent vhost vport
hierarchy_stoplist cgi-bin ?
access_log /usr/local/squid/var/logs/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern (cgi-bin|\?)    0       0%      0
refresh_pattern .               0       20%     4320

icp_port 3130
coredump_dir /usr/local/squid/var/cache
cache_dir ufs /usr/squidcache 700 16 256
cache_peer 192.168.1.24 parent 80 0 no-query originserver

论坛徽章:
0
发表于 2008-06-05 10:24 |显示全部楼层
写得不错!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP