LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-02-2014, 01:59 AM   #1
fayad
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Squid: how to authenticate users from a specific IP only


I've a squid server setup. I need to allow squid users to login from specific IPs only. ie one user should be able to login from only that IP specified for that user. Is it possible?
 
Old 05-02-2014, 09:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by fayad View Post
I've a squid server setup. I need to allow squid users to login from specific IPs only. ie one user should be able to login from only that IP specified for that user. Is it possible?
Yes. Set up your ACL however you wish. There is much documentation on setting up ACL's...what have you done/tried/researched so far???
http://wiki.squid-cache.org/SquidFaq/SquidAcl
http://www.deckle.co.uk/squid-users-...operators.html
 
Old 05-03-2014, 11:11 PM   #3
fayad
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Yes. Set up your ACL however you wish. There is much documentation on setting up ACL's...what have you done/tried/researched so far???
http://wiki.squid-cache.org/SquidFaq/SquidAcl
http://www.deckle.co.uk/squid-users-...operators.html
Ok, I was able to do this in a different way using the following rules in squid.conf.

======================
acl group1 proxy_auth "/usr/local/squid_1/etc/group1"
acl group1_ip src 1.2.3.4
http_access allow group1 group1_ip
======================

I tried to specify the users directly in the acl but its not working, so I had to add the users in a file and the location to the file was specified.

Using acl i added users to a group (group1) and the IPs to a different group (group1_ip), then created a rule to allow users in group1 to login only from group1_ip.

Is there a more simpler way?
 
  


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-users] deny website and allow it to specific Ip Address its_my_style Linux - Networking 4 07-18-2010 09:18 PM
Setting up Squid or Apahce to authenticate users maxsthekat Linux - General 2 05-15-2007 04:48 PM
block specific users in squid alan.belizario Linux - Security 4 09-09-2005 11:43 PM
unable to authenticate ntlm users using squid tobushan Linux - Networking 1 04-07-2005 02:40 AM
cannot authenticate users in squid through winbind bahadur Linux - Networking 1 07-28-2004 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:48 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