LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid proxy is refusing connections. (https://www.linuxquestions.org/questions/linux-server-73/squid-proxy-is-refusing-connections-932090/)

svenxix 03-01-2012 01:15 AM

Squid proxy is refusing connections.
 
Not sure if its appropriate to ask about squid here, but I thought I'd try.


I'm just starting with a Squid proxy server, and I'm trying to get authentication set up for a single user.

If I don't want any authentication it works fine. By putting "http_access allow all", I can get to any website.

However, when I tried to configure it to work for only authenticated users it stopped working. Firefox gives me the message, "The proxy server is refusing connections". It doesn't even ask me for a user name or password. Here are the config files that I have changed.


acl authenticated proxy_auth REQUIRED
http_access deny !authenticated

and

auth_param basic program /usr/bin/htpasswd /opt/squid/squid_passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off


most of the above auth_param are defaults. /usr/bin/htpasswd is the correct location and there is a valid htpasswd file at /opt/squid/squid_passwd. It has a single user.

Any idea on what I need to do to at least get the browser to prompt me for user input?

bathory 03-01-2012 02:36 AM

Hi,

Note that htpasswd is used to create or change a user password. You cannot use it as an authenticator program and I guess that because of this squid is not running.
You can use nsca_auth that comes with squid to authenticate users against the password file created by htpasswd..
Since you're running debian have a look at this howto

Regards

svenxix 03-06-2012 01:16 AM

Thanks! The tutorial worked great!


All times are GMT -5. The time now is 01:19 AM.