Chinaunix首页 | 论坛 | 博客
  • 博客访问: 700086
  • 博文数量: 771
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4910
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-18 11:35
文章分类

全部博文(771)

文章存档

2011年(1)

2008年(770)

我的朋友

分类:

2008-09-18 11:47:05

我用LINUX自带的squid做了代理,代理配制如下:
http_port 192.168.0.1:8080
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
cache_dir ufs /var/spool/squid 1200 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
dns_nameservers 202.102.24.34 202.102.24.35

acl acllist src 192.168.0.0/255.255.255.0
acl regular_days time MTWHF 8:00-19:00
acl movie urlpath_regex -i \.avi$ \.rmvb$ \.torrent$
acl banned url_regex iij4u.or.jp
acl cache_prevent1 url_regex cgi-bin /?
acl cache_prevent2 url_regex Servlet
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
acl SSL_ports port 443 563
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443 563    # https, snews
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
http_access deny movie regular_days
no_cache deny cache_prevent1
no_cache deny cache_prevent2
http_access deny banned
http_access allow acllist
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
icp_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow localhost
http_access deny all
client_lifetime 2 hours
half_closed_clients off
cache_effective_user squid
cache_effective_group squid
visible_hostname squid.5online.com.cn
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

有人反映有些论坛上不去,我又把 acl banned url_regex iij4u.or.jp 这句去掉了,后来有些论坛又能上了,但是有时候还是上不去,为什么呢?

我在服务器上看到这样的信息:too much work at interrupt,status=0x00000001
公司有100多号人用这代理上网,我在squid启动时在cache.log中就可以看到如此语句:
With 1024 file descriptors available
默认的1024值是不是有影响,还是有别的什么问题,请教高手!!!!!!!!![/SIZE]      
--------------------next---------------------

阅读(413) | 评论(0) | 转发(0) |
0

上一篇:2008-5-13 21:58

下一篇:2008-5-9 14:00

给主人留下些什么吧!~~