LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-22-2011, 02:07 PM   #31
damade
LQ Newbie
 
Registered: Feb 2011
Distribution: Red hat, Solaris, AIX, HP-UX, FreeBSD
Posts: 15

Rep: Reputation: 2

Squidguard only allows 1 whitelist definition.

this is how you configure it:

dest white {
domainlist white/domains
urllist white/urls
}

acl {
default {
pass white !adv !porn !warez all
redirect http://localhost/block.html
}
}
 
Old 02-23-2011, 09:50 AM   #32
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Quote:
Originally Posted by damade View Post
Squidguard only allows 1 whitelist definition.
This is not true. I have several in my installation that I use to whitelist some sites for certain users and not for others.

Quote:
this is how you configure it:

dest white {
domainlist white/domains
urllist white/urls
}
This is how you configure any destination, white or black.

Quote:
acl {
default {
pass white !adv !porn !warez all
redirect http://localhost/block.html
}
}
The lack of a ! in front of the destination is what makes it a whitelist. And order matters. You could do:

Code:
acl {
        default {
                pass    !adv white !porn !warez all
                redirect http://localhost/block.html
                }
}
And it would whitelist anything in "white" except if it's in "adv".
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
X won't start - screen not configured properly dcroxton Ubuntu 15 08-08-2010 11:22 AM
is my swap configured properly? pellicle Linux - Newbie 5 08-05-2008 09:57 AM
NIC not configured properly mr-flibble Linux - Networking 4 03-28-2007 01:19 AM
no screens found but X configured properly??? Lbtg43 Linux - Newbie 3 10-11-2004 02:04 AM
ATI tv wonder ve not properly configured? jimMC Linux - Hardware 4 07-23-2004 05:21 AM

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

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