LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2021, 10:17 AM   #1
ziakazmi
LQ Newbie
 
Registered: May 2021
Posts: 2

Rep: Reputation: Disabled
Lightbulb squid 4.10 authentication not working


Hi All

im new to linux i have ubuntu 20.04.2 LTS server i have installed squid 4.10
the problem is im trying to enable authentication but im getting error in placing acl in squid.conf file im sharing my squid.conf

acl network src 192.168.x.x-192.168.x.x
acl proxyusers proxy_auth Required
http_access allow network
http_access allow localhost
http_access allow vpn
auth_param basic program usr/lib/squid/basic_ncsa_auth /etc/squid/squid_users
auth_parm children 5
auth_param basic realm Squid Proxy-caching web server
auth_param basic credentialsttl 2 hours

http_access allow proxyusers


i wonder should i need to configure squid with./configure or what should i do pls guide me. Thanks in advance..
 
Old 05-28-2021, 10:54 AM   #2
rosehosting.com
Member
 
Registered: Jun 2012
Location: Missouri, USA
Posts: 236

Rep: Reputation: 64
Edit the Squid configuration file (/etc/squid/squid.conf). After the ports ACLs add the following lines:

Code:
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid Basic Authentication
auth_param basic credentialsttl 2 hours
acl auth_users proxy_auth REQUIRED
http_access allow auth_users
Save the file.

Create a file named passwd in the /etc/squid/ directory:

Code:
sudo touch /etc/squid/passwd
sudo chown proxy: /etc/squid/passwd
Run the following command to create a password (replace username with your actual username):

Code:
sudo htpasswd /etc/squid/passwd username
restart the Squid service for changes to take effect using:

Code:
sudo systemctl restart squid
 
Old 05-29-2021, 01:52 AM   #3
ziakazmi
LQ Newbie
 
Registered: May 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Lightbulb squid 4.10 authentication not working

Thanks buddy for replying i will apply and will share results.
 
  


Reply



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 proxy authentication and without authentication reaven Linux - Server 1 06-06-2011 06:52 AM
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 08:04 AM
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 02:29 PM
LDAP authentication for squid squid 2.6.STABLE16 release 2.fc8 farrukhndm Linux - Security 2 04-03-2008 01:57 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

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