- 论坛徽章:
- 0
|
刚才在论坛上搜索了一下squid的问题,还是没看出来自己配置有什么问题。请大家帮忙看看。系统为RH8。
具体情况是当启动squid后,如果不加http_access allow allowedUser就没什么问题,但是加上后就总是access denied!authenticate_programx:
authenticate_program /usr/sbin/ncsa_auth /etc/squid/passwd
那个ncsa_auth本来在/usr/lib/squid下的,后来以为这个有问题就拷到了/usr/sbin下,并把路径也做了相应修改。
acl的配置如下
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl safeSubNetwork src 192.168.32.0/255.255.255.0
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
acl allowedUser proxy_auth REQUIRED
http_access的配置如下
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow allowedUser
http_access allow safeSubNetwork
#http_access allow allowedUser
http_access deny all |
|