Squid 拒绝访问

Squid 拒绝访问

我有一台机器,我想在上面安装 Squid。到目前为止,它已经运行了 99%,因为我在某个地方发现了一个错误,但我找不到。

考虑以下 ACL 部分:

acl inbound_myip_1 myip 192.xxx.175.2
tcp_outgoing_address 192.xxx.175.2 inbound_myip_1

acl user_1 proxy_auth johnny
acl user_2 proxy_auth eugene

http_access allow user_1 inbound_myip_1
http_access allow user_2 inbound_myip_1

http_access deny user_1 !inbound_myip_1
http_access deny user_2 !inbound_myip_1

http_access deny all

我有 2 个用户(johnnyeugene)应该有权访问192.xxx.175.2。身份验证是通过经过测试并有效的 Python 脚本助手完成的。如果我将代理放入浏览器中,它首先会要求输入用户/密码,我输入我的凭据,然后 squid 会回复错误:Access Denied.如果我再次刷新,则不会再显示密码提示,这意味着身份验证仍然有效。我还在控制台中检查了该助手,它对凭据回复 ok。

我启用了调试来查看缓存日志中发生的情况,以下是相关部分:

2013/12/09 14:10:19.285| authenticateAuthUserAddIp: user 'john' has been seen at a new IP address (109.xxx.147.127:51161)
2013/12/09 14:10:19.285| The request GET http://yahoo.com/ is DENIED, because it matched 'inbound_myip_1'
2013/12/09 14:10:19.286| storeGetMemSpace: Starting, need 1 pages
2013/12/09 14:10:19.286| ZPH: Preserving TOS on miss, TOS=0
2013/12/09 14:10:19.286| The reply for GET http://yahoo.com/ is ALLOWED, because it matched 'inbound_myip_1'
2013/12/09 14:10:19.503| The request GET http://www.squid-cache.org/Artwork/SN.png is DENIED, because it matched 'inbound_myip_1'
2013/12/09 14:10:19.503| ZPH: Preserving TOS on miss, TOS=0
2013/12/09 14:10:19.503| The reply for GET http://www.squid-cache.org/Artwork/SN.png is ALLOWED, because it matched 'inbound_myip_1'
2013/12/09 14:10:25.285| ConnStateData::swanSong: FD 10
2013/12/09 14:12:20.875| ConnStateData::swanSong: FD 8

知道为什么我的请求被拒绝吗?

相关内容