[squid-users] Problem getting NSCA working on FreeBSD

From: Francisco Lopes <falmp@dont-contact.us>
Date: Thu, 17 Nov 2005 22:45:34 -0200

Hello,

So I'm trying to get Squid working for myself only, on a remote
FreeBSD server I have. I'm using this configuration file:

http_port 9876
tcp_outgoing_address 66.43.83.13

hierarchy_stoplist cgi-bin ? php asp
acl QUERY urlpath_regex cgi-bin \? php asp
no_cache deny QUERY

authenticate_program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/passwd

acl users proxy_auth /usr/local/etc/squid/passwd
acl password proxy_auth REQUIRED

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255

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

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

http_access allow users
http_access deny all

proxy_auth_realm Squid proxy-caching web server

Not sure it's the best configuration file for myself, so comments are
welcomed here too. Now, the real problem is, when I try to run Squid,
I get an error, it seems my ncsa_auth isn't working properly.

# /usr/local/sbin/squid
2005/11/17 22:38:43| parseConfigFile: line 8 unrecognized: 'authenticate_program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/passwd'
2005/11/17 22:38:43| Invalid Proxy Auth ACL 'acl users proxy_auth /usr/local/etc/squid/passwd' because no authentication schemes are fully configured.
FATAL: Bungled squid.conf line 10: acl users proxy_auth /usr/local/etc/squid/passwd
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.

I installed Squid using the ports system, and I also already tried to
reinstall the ncsa_auth individually using the ports too.

# make
# make install
/bin/sh ../../../cfgaux/mkinstalldirs /usr/local/libexec/squid
  install -c -s -o root -g wheel -m 555 ncsa_auth /usr/local/libexec/squid/ncsa_auth

Does anyone have any idea what I'm doing wrong?

Thanks.

Regards,
Francisco
Received on Thu Nov 17 2005 - 17:45:37 MST

This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST