- 论坛徽章:
- 0
|
http_port 808
cache_mem 64 MB
cache_swap_low 90
cache_swap_high 95
dns_nameservers 202.*.*.*
cache_dir ufs /usr/local/squid/var/cache 25000 16 256
error_directory /usr/local/squid/share/errors/Simplify_Chinese
emulate_httpd_log on
cache_store_log none
logfile_rotate 1
hierarchy_stoplist cgi-bin ?
hierarchy_stoplist -i ^https:\\ ?
acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
acl denyssl urlpath_regex -i ^https:\\
acl worktime time MTWHF 8:00-11:30 13:00-17:00
no_cache deny QUERY
no_cache deny denyssl
auth_param basic program /usr/local/squid/libexec/ncsa_auth /etc/squid/passwd.sq
auth_param basic children 10
auth_param basic realm proxy.linuxserver.com
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl OverConnLimit maxconn 5
acl advance arp 00:*:*:*:*
acl all src 192.168.0.0/24
acl auth_user proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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
acl CONNECT method CONNECT
http_access allow advance
http_access deny !worktime
http_access allow auth_user
http_access deny OverConnLimit
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
http_reply_access allow all
icp_access allow all
coredump_dir /usr/local/squid/var/cache
这个配置advance不用输入用户名和密码可以不限时间上网,可auth_user用用户名和密码也可以上网,无法用时间控制,不知道错在哪里,请高手指教
[ 本帖最后由 wellsman 于 2007-5-26 08:53 编辑 ] |
|