LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-18-2007, 01:19 PM   #1
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Rep: Reputation: 15
Squid group access


Hi Experts,

I have installed squid and dansguardian for my proxy server. The service is working fine. I just want to know if squid or dansguardian can setup a user-group policy access. Let say, Group A has this access while Group B has a different sites that they can access. Of course, this should be ran in a single box proxy. Is that possible in squid. If so, can you give sort of steps how I am going to install.

Thanks for your thoughts.....
 
Old 06-20-2007, 01:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
depends how you wish to define "groups" but yes that's certainly possible with squid... if you put, for example the ip addresses of beach group in a seperate ACL then you can match those groups up with different destination domains

acl groupA src 192.168.0.10 192.168.0.11
acl groupB src 192.168.0.40 192.168.0.41
acl listA dstdomain .ebay.co.uk
acl listB dstdomain .google.com

http_access allow GroupA listA
http_access allow GroupB listB
http_access deny all

so group A can go to ebay, group B can go to google but neither can go anywhere else.
 
Old 06-20-2007, 02:27 AM   #3
opensourcedevelopmen
LQ Newbie
 
Registered: Jun 2007
Location: Delhi
Distribution: Linux
Posts: 21

Rep: Reputation: 16
http://www.linuxhomenetworking.com/w...ess_with_Squid
Regards
 
Old 06-20-2007, 11:31 AM   #4
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Original Poster
Rep: Reputation: 15
Hi Acid...

Thanks for your thoughts...

How I can declare a lists of blacklists in squid. Let say, GroupA and GroupB have each own whitelists(sites accessible) and blacklists(not allowed sites).

Thanks in advance
 
Old 06-21-2007, 01:30 AM   #5
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Code:
acl groupA src 192.168.0.10 192.168.0.11
acl groupB src 192.168.0.40 192.168.0.41

acl GoodSitesA dstdomain "/usr/local/etc/allowed-sitesA.squid"
acl BadSitesA  dstdomain "/usr/local/etc/restricted-sitesA.squid"

acl GoodSitesB dstdomain "/usr/local/etc/allowed-sitesB.squid"
acl BadSitesB  dstdomain "/usr/local/etc/restricted-sitesB.squid"

http_access allow GroupA GoodSitesA
http_access deny GroupA BadSitesA

http_access allow GroupB GoodSitesA 
http_access deny GroupB BadSitesB
 
Old 06-21-2007, 12:02 PM   #6
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Original Poster
Rep: Reputation: 15
wow @p_s_shah! that's sweet...

Thanks a lot....
 
Old 06-21-2007, 01:00 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it's not really... this is squid 101...
 
Old 07-28-2008, 04:26 AM   #8
inaki
Member
 
Registered: Mar 2005
Posts: 94

Rep: Reputation: 15
can we define a acl based on the authentication user id or group the user id into several group and specific the access rules for each group.
 
Old 07-28-2008, 06:15 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not drag up dead threads. if you have a new question, please start a new thread.
 
  


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
How to give access rights to one group to the home-dirs of another group Peter@KKVS Linux - Networking 2 11-09-2006 12:38 AM
squid (pam auth) add group ? stomach Linux - Software 3 09-09-2005 10:53 AM
Squid Logging by group predatorv125 Linux - Networking 0 06-17-2005 06:24 PM
no access to devices with group access rights flipper333 Debian 2 12-28-2004 09:25 AM
Write access for group / other Cubsy Linux - Software 2 11-06-2003 12:03 PM

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

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