yw6866 发表于 2018-12-26 07:37:31

squid配置例子

squid配置详细例子  # 服务器配置
  http_port 100.100.13.4:3128
  cache_mgr start@soocol.com
  cache_dir null /tmp
  cache_access_log /var/squid/access.log
  cache_log /var/squid/cache.log
  cache_store_log /var/squid/store.log
  visible_hostname No1.proxy
  client_mask 255.255.255.255
  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 proxy_auth REQUIED
  acl all src 0.0.0.0
  # 行为分类
  acl mmxfile urlpath_regex \.mp3$ \.avi$ \.exe$
  acl conncount maxconn 3
  acl worktime time MTWHF 8:30-12:00 14:00-18:00
  acl sinapage dstdomain ok.sina.com.cn
  acl qq dstdomain .tcccent.com.cn
  # 处理
  http_access allow advance
  http_access deny conncount normal
  http_access deny !worktime
  http_access deny mmxfile
  http_access deny sinapage
  http_access deny qq
  http_access allow normal

页: [1]
查看完整版本: squid配置例子