LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2012, 08:49 AM   #1
vineetcornelius
LQ Newbie
 
Registered: May 2012
Posts: 24

Rep: Reputation: Disabled
Red face Configuring SquidGuard


I am running squid proxy on my centos 5 machine.Now i want to configure squid guard on it. I have installed the squidguard on it and also tested it with squidguard -d command an it is running fine.

But as soon as I put a command

redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf

at the end on my squid.conf file and try to restart squid service it neither stops nor starts it say 'failed'.

When I go into service configuration and try to see the squid service the following message is being displayed

"squid (pid 21470) is running...
FATAL: Bungled squid.conf line 4538: redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf
Squid Cache (Version 2.6.STABLE21): Terminated abnormally."

Kindly help.
 
Old 05-11-2012, 11:53 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
FATAL: Bungled squid.conf line 4538: redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf
Error simply shows that at the last line of your squid.conf file, the entries are not correct. You have to check it again properly.
 
Old 05-12-2012, 12:29 AM   #3
vineetcornelius
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
Error simply shows that at the last line of your squid.conf file, the entries are not correct. You have to check it again properly.
What is the correct syntax of this line. I have checked from the net and then I have written it.
 
Old 05-13-2012, 11:49 PM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
What is the correct syntax of this line. I have checked from the net and then I have written it.
Can you attach your squid.conf file, so that it will help us in looking into the problem in detail.
 
Old 05-14-2012, 12:58 AM   #5
vineetcornelius
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by Satyaveer Arya View Post
Can you attach your squid.conf file, so that it will help us in looking into the problem in detail.
I am attaching the squid.conf file and also the squidguard.conf file for you.

One more thing which I wanted to ask. On the net at many places it is written to write a following line in the config.sys file.

url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

and at many places they tell to write the following line.
redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

Are the one and the same thing or is there any difference.

More over where the above line should be added in the config.sys file.

Last edited by vineetcornelius; 02-28-2013 at 12:09 AM.
 
Old 05-14-2012, 02:58 AM   #6
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Your last line should be this one-
Check the configuration file of squidguard, it should be in /usr/local/squidGuard/ directory.
Quote:
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
Put this above line at last line of your squid.conf file and try to restart the service, it should run.
 
Old 05-14-2012, 05:38 AM   #7
vineetcornelius
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
Your last line should be this one-
Check the configuration file of squidguard, it should be in /usr/local/squidGuard/ directory.


Put this above line at last line of your squid.conf file and try to restart the service, it should run.
I have put the line
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf

but stil after restarting the squid service it is saying failed.
 
Old 05-14-2012, 05:49 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Again you put the wrong line-
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf

The correct line is-
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
 
Old 05-14-2012, 06:05 AM   #9
vineetcornelius
LQ Newbie
 
Registered: May 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Satyaveer Arya View Post
Again you put the wrong line-
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard.conf

The correct line is-
url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
Sorry that was a typo error in fact I had put the below line

url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf

the squid service is failing to restart. Only after i comment this line the service starts.
 
Old 05-14-2012, 06:13 AM   #10
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Did you follow the configuration steps from http://www.squidguard.org/Doc/ website?
If you followed the steps from the above mentioned website, did you follow them correctly?
 
  


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
SquidGuard: include some config file in squidGuard.conf toure32 Linux - Server 1 04-12-2011 03:10 PM
error: mail command failed for /var/log/squidguard/squidGuard.log.6 Niceman2005 Linux - Networking 1 01-22-2009 02:24 PM
Help with Configuring squidGuard 1.2.1 A Simple Noob Linux - Server 0 10-17-2007 07:38 PM
SquidGuard Dogar Linux - Software 17 08-15-2007 11:33 AM
squidguard metallica1973 Linux - Security 5 05-24-2005 10:24 AM


All times are GMT -5. The time now is 01:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration