LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-23-2007, 08:32 PM   #1
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Rep: Reputation: 0
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.

/etc/squid/squid.conf

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

# TAG: cache_log
...
#Default:
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 192.168.0.0/255.255.255.0
http_access allow privatenet
...

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

auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so 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,
clue_less
 
Old 11-24-2007, 10:48 AM   #2
esaym
Member
 
Registered: Nov 2006
Distribution: Lots of Debian
Posts: 165

Rep: Reputation: 32
Do you have the error the log file spit out? Here is the conf I use with squid 2.6: http://www.lindsay.ath.cx/stuff/squid.conf you can ignore the regex and refresh-pattern stuff.
 
Old 11-26-2007, 12:31 AM   #3
clue_less
LQ Newbie
 
Registered: Apr 2007
Location: ACT
Distribution: Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
squid

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

clue-less
 
  


Reply

Tags
apacheconf, proxy, rhel4, server, squid, squidproxy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 03:58 PM
squid configuration tuXfree Linux - Newbie 2 08-23-2005 03:27 PM
squid configuration karan101 Linux - Networking 7 02-01-2005 03:49 AM
Squid configuration ematogo Linux - Networking 8 12-31-2002 12:22 PM
Squid Configuration accelicim_ho Linux - Software 2 03-26-2002 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration