使用squid进行简单的代理validation

我试图configuration鱿鱼要求authentication。

我有鱿鱼工作没有身份validation,比我

htpasswd -c /etc/squid3/passwd foo 

在此之后,我已经取代了

 http_access allow all 

 acl foo proxy_auth REQUIRED http_access allow foo http_access deny all 

并补充说

 auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd auth_param basic credentialsttl 30 minutes auth_param basic casesensitive on 

/etc/squid3/squid.conf

现在,当我service squid3 restart ,我得到

 stop: Unknown instance: squid3 start/running, process 12256 

当我运行ps aux我找不到运行squid的进程,服务器无法连接。

为什么这不起作用?

UPDATE

squid3 -d 10显示:

 Can't use proxy auth because no authentication schemes are fully configured. FATAL: ERROR: Invalid ACL: acl foo proxy_auth REQUIRED 

看来你的squidauthenticationconfiguration缺lessauthentication helpers ,比如ncsa_auth 。 对于一步一步的设置,你可能需要按照这个教程 。