LinuxQuestions.org
Review your favorite Linux distribution.
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 02-17-2011, 03:02 PM   #1
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Rep: Reputation: 0
SquidGuard not configured properly? Please help


Hi Everyone,

I'm having some issues with SquidGuard. I am fairly new to squid and squidguard so bare with me.

I took over the position of the systems admin here. What I've noticed is the squidguard that was setup, doesn't seem to be working anymore, even though the previous guy said it was.

When I logon to webmin into the squidguard server, and click on blacklists, it says No blacklists found.

Logging Directory is as follows

/var/log/squidguard

database directory is as follows

/usr/local/squidguard/blacklists/

I logged onto the server and checked the /usr/local/squidguard/blacklist directory and there is definately a huge list of blacklists there. I checked the /var/log/squidguard directory and there is a squidGuard.log in there

So those directories seem to be right.

Why would it show " no blacklists found"

Also the log shows this


2011-02-13 04:02:15 [8231] syntax error in configfile /usr/local/squidGuard/squidGuard.conf line 1


But I don't know what line 1 is?


-----------------------------

My SquidGuard.conf



CONFIG FILE FOR SQUIDGUARD


dbhome /usr/local/squidguard/blacklists/
logdir /var/log/squidguard


SOURCE CLASSES:

src facebook_users {
ip 192.168.3.108 192.168.3.136 192.168.3.111 192.168.3.138 192.168.3.137 192.168.3.100 192.168.3.130 192.168.3.112 192.168.2.123 192.168.3.120 192.168.3.124 192.168.3.131 192.168.3.119 192.168.3.135 192.168.3.134 192.168.3.109
}

DESTINATION CLASSES:


destination porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/expressions
log stopped.log
}

acl {
facebook_users {
pass all
}


default {
pass !porn all
redirect http://www.globaltc.ca/images/AD.jpg
}
}
 
Old 02-17-2011, 03:08 PM   #2
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Is is /usr/local/squidGuard or /usr/local/squidguard? They aren't the same thing.

Also, if that "CONFIG FILE FOR SQUIDGUARD" line is in the file, then that is probably the syntax error.

Last edited by tsg; 02-17-2011 at 03:11 PM.
 
Old 02-17-2011, 03:12 PM   #3
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
my squidGuard.conf is in /usr/local/squidGuard

so Should that top line read /usr/local/squidGuard instead of /usr/local/squidguard

??

---------- Post added 02-17-11 at 01:13 PM ----------

My blacklists are in /usr/local/squidguard so thats why I had the dbhome set to that.
 
Old 02-17-2011, 03:17 PM   #4
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
The syntax error is why SquidGuard is telling you there are no blacklists. It's looking in the default directory (/usr/local/squidGuard), instead of the correct one. Is there a reason why you have them in /usr/local/squidguard, instead?

Last edited by tsg; 02-17-2011 at 03:18 PM.
 
Old 02-17-2011, 03:22 PM   #5
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
That's where it was when I came into the company.

So what should I change and/or remove?
 
Old 02-17-2011, 03:40 PM   #6
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Is that "CONFIG FILE FOR SQUIDGUARD" line in your /usr/local/squidGuard/squidGuard.conf file? There's supposed to be a "#" in front of it if it is, as well as in front of the "SOURCE CLASSES:" and "DESTINATION CLASSES:" lines.

Last edited by tsg; 02-17-2011 at 03:43 PM.
 
Old 02-17-2011, 03:45 PM   #7
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
It is,

If I remove it and restart squid. For some reason I can no longer access any websites

So When I put the # in front of those mentioned above.

I can no longer access any websites at all.

Last edited by rlestage; 02-17-2011 at 03:52 PM.
 
Old 02-17-2011, 03:59 PM   #8
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Comment out those lines and run squidGuard -u, then restart squid and see what happens.
 
Old 02-17-2011, 04:00 PM   #9
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tsg View Post
Comment out those lines and run squidGuard -u, then restart squid and see what happens.

What do you mean by Comment Out ?

does that mean put the # in front of them? Then Run squidGuard -u then restart squid?
 
Old 02-17-2011, 04:03 PM   #10
tsg
Member
 
Registered: Mar 2008
Posts: 155

Rep: Reputation: 30
Yes. A line that starts with "#" is a comment in a squidGuard config file.
 
Old 02-17-2011, 04:07 PM   #11
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Ok, I will have to try this after hours (effects a lot of staff/clients. So 2.5 hours and I'll give this another try.

I'll get back to you, thanks
 
Old 02-17-2011, 04:20 PM   #12
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Forgot to ask, What does squidGuard -u perform?
 
Old 02-17-2011, 06:40 PM   #13
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Ok So I can access websites, but nothing seems to be blocked still. Tested a bad site.
 
Old 02-17-2011, 06:45 PM   #14
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Nevermind, it's working now

---------- Post added 02-17-11 at 04:45 PM ----------

Thank you for your help
 
Old 02-17-2011, 06:53 PM   #15
rlestage
LQ Newbie
 
Registered: Jan 2011
Posts: 25

Original Poster
Rep: Reputation: 0
How can I allow Certain IP addresses to not be blocked?
 
  


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

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

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