-   Red Hat (
-   -   Squid - configuration (

clue_less 11-23-2007 09:32 PM

Squid - configuration
First time - Squid

I have attempted to set up a caching proxy server with limited access control. The default squid configuration is kept intact, but a few small changes such as default http_port, access logging and ueser-authentication.


hostname: hostname
# http_port 3128
http_port 8080
# TAG: cache_access_log
cache_access_log /var/log/squid/access.log

# TAG: cache_log
cache_log /var/log/squid/cache.log
cache_store_log none
# TAG: auth_param
# TAG: auth_param
# === Parameters for the digest scheme follow ===
authenticate_program /usr/lib/squid/pam_auth
acl validusers proxy_auth REQUIRED
http_access allow validusers
# TAG: http_access
acl privatenet src
http_access allow privatenet

I also created a /etc/pam.d/squid file

auth required /lib/security/ service=system-auth
auth required /lib/security/
account required /lib/security/ service=system-auth
password required /lib/security/ service=system-auth
session required /lib/security/ service=system-auth

Sadly the whole exercise failed.
Can someone please tell me what have I done wrong or point me to where I can find answers?

Thank you,

esaym 11-24-2007 11:48 AM

Do you have the error the log file spit out? Here is the conf I use with squid 2.6: you can ignore the regex and refresh-pattern stuff.

clue_less 11-26-2007 01:31 AM

Thanks esaym,
You make it look so easy.
But what about ueser-authentication?


All times are GMT -5. The time now is 11:56 AM.