Chinaunix

标题: 请教squid出错Access Denied. [打印本页]

作者: ※飘§№    时间: 2009-02-07 20:49
标题: 请教squid出错Access Denied.
想要实现admin不受限制使用,其它用户受限制.
本人的配置文件如下
http_port 3389
cache_dir ufs /usr/local/squid/cache 3000M 16 256
cache_mem 30 MB
cache_swap_low 90
cache_swap_high 95
cache_store_log /usr/local/squid/logs/store.log
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log
cache_effective_user squid
cache_effective_group squid
visible_hostname squid_proxy
cache_mgr test@163.com
client_netmask 255.255.255.255
auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/password
auth_param basic children 5
auth_param basic realm by squid_proxy
auth_param basic credentialsttl 2 hours
acl auth_users proxy_auth REQUIRED
acl admins proxy_auth admin
acl all src 0.0.0.0
acl mmxfile urlpath_regex -i \.mp3$ \.avi$ \.exe$ \.rar$ \.wma$ \.rm$ \.zip$ \.tar$ \.gz$ \.mpg$
\.mpeg$ \.asf$ \.wmv$ \.msi$ \.iso$
acl conn_count maxconn 8
acl ip_count max_user_ip 5
acl Dangerous_ports port 7 9 19 22 23 25 53 109 110 119
acl SSL_ports port 443 563
acl CONNECT method CONNECT
http_access allow admins
http_access deny ip_count
http_access deny conn_count
http_access deny Dangerous_ports
http_access deny CONNECT !SSL_ports
http_access deny mmxfile
http_access allow auth_users
http_access deny all




但是IE中输入正确的用户名和密码后不管是不是admin帐号都出现错误页面:
Access Denied.
Access control configuration prevents your request from being allowed at this time. Please

contact your service provider if you feel this is incorrect.


在QQ里面却可以正常使用代理.

查看了很多资料还是没有解决,请大家指点一下.先谢过了.

[ 本帖最后由 ※飘§№ 于 2009-2-7 21:15 编辑 ]
作者: wangbin    时间: 2009-02-10 14:22
http_access deny all
作者: ※飘§№    时间: 2009-02-12 17:41
标题: 回复 #2 wangbin 的帖子
不是说最后一条规则一定要是deny all 的吗?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2