|
|
我在RH9.0下设置squid代理上网,没有设置认证的时候一切正常,设置了认证后,不论访问什么网站,输入我设置的用户名和密码不能通过验证,总是出现如下提示:
- ERROR
- Cache Access Denied
- --------------------------------------------------------------------------------
- While trying to retrieve the URL: [url]http://www.google.com/[/url]
- The following error was encountered:
- Cache Access Denied.
- Sorry, you are not currently allowed to request:
- [url]http://www.google.com/from[/url] this cache until you have authenticated yourself.
- You need to use Netscape version 2.0 or greater, or Microsoft Internet Explorer 3.0, or an HTTP/1.1 compliant browser for this to work. Please contact the cache administrator if you have difficulties authenticating yourself or change your default password.
- --------------------------------------------------------------------------------
- Generated Sun, 06 Feb 2005 15:40:35 GMT by dns (squid/2.5.STABLE1
复制代码
我的脚本为:
- icp_port 0
- cache_store_log none
- cache_access_log /dev/null
- cache_log /dev/null
- cache_effective_user squid
- cache_effective_group squid
- http_port 192.168.1.1:3128
- cache_mem 64 MB
- cache_dir ufs /cache 4096 32 256
- cache_swap_low 80
- cache_swap_high 100
- maximum_object_size 4096 KB
- maximum_object_size_in_memory 8 KB
- ipcache_size 1024
- ipcache_low 90
- ipcache_high 95
- client_netmask 255.255.255.255
- visible_hostname dns
- cache_mgr tianfuming
- auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
- auth_param basic children 5
- auth_param basic realm My Proxy Caching Domain
- auth_param basic credentialsttl 2 hours
- acl mynet proxy_auth REQUIRED
- acl advance src 192.168.1.20 192.168.1.60 192.168.1.59
- acl all src 0.0.0.0/0.0.0.0
- acl download urlpath_regex -i \.mp3$ \.exe$ \.avi$ \.rar$ \.rvmb$ \.jpg #½ûÖ¹ÏÂÔØ
- acl conncount maxconn 5 #×î´óÁ¬½ÓÊý
- acl qq dstdomain www.sina.com.cn
- acl badwords url_regex sex
- acl worktime time 8:00-18:00
- acl daytime time MTWHF
- http_access allow advance
- http_access deny mynet conncount
- http_access deny mynet download
- http_access deny mynet badwords
- http_access deny mynet qq
- http_access deny mynet daytime worktime
- http_access allow mynet
- httpd_accel_host virtual
- httpd_accel_port 80
- httpd_accel_with_proxy on
- httpd_accel_uses_host_header on
复制代码
哪个仁兄能帮我啊,我的QQ:153647452 |
|