Chinaunix首页 | 论坛 | 博客
  • 博客访问: 674546
  • 博文数量: 463
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 4580
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-15 16:47
文章分类

全部博文(463)

文章存档

2011年(1)

2008年(462)

我的朋友

分类:

2008-10-15 16:53:27

大家看squid.conf配置正確否:

# 服?器配置
http_port 10.10.7.17:3128
cache_mgr
cache_dir ufs /var/squid
cache_mem 64MB
cache_swap_low 90
cache_swap_high 95
cache_access_log /var/squid/access.log
cache_log /var/squid/cache.log
cache_store_log /var/squid/store.log
visible_hostname ZHZ02.proxy
client_netmask 255.255.0.0

#透明代理
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_user_host_header on

# 用?分?
acl advance arp 00:01:02:1f:2c:3e 00:01:02:3c:1a:8b ...
acl normal arp 10:00:df:ef
acl all src 0.0.0.0/0

# 行?分?
acl port1 port 0-65565
acl port2 port 80
acl mmxfile urlpath_regex \.mp3$ \.avi$ \.exe$ \.swf$
acl conncount maxconn 7
acl worktime time SMTWHFA 8:00-23:59
acl worktime2 time MTWHFA 8:00-12:00 13:00-17:00
acl sinapage dstdomain ok.sina.com.cn
acl qq dstdomain .tcccent.com.cn

# ?理
http_access allow port1
http_access deny sinapage
http_access deny qq
http_access deny conncount advance
http_access deny !worktime
http_access allow advance
http_access deny sinapage
http_access deny qq
http_access deny conncount advance
http_access deny mmxfile
http_access allow port2
http_access deny !worktime2
http_access allow normal
http_access deny all


--------------------next---------------------

阅读(426) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~