免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2431 | 回复: 2
打印 上一主题 下一主题

[FreeBSD] 请教squid出错Access Denied. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-07 20:49 |只看该作者 |倒序浏览
想要实现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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-02-10 14:22 |只看该作者
http_access deny all

论坛徽章:
0
3 [报告]
发表于 2009-02-12 17:41 |只看该作者

回复 #2 wangbin 的帖子

不是说最后一条规则一定要是deny all 的吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP