Koozali.org: home of the SME Server

SquidGuard 3.2

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: SquidGuard 3.2
« Reply #30 on: August 26, 2007, 03:20:28 AM »
Thanks John. Yum localinstall ??
Peter

Download the three files and yes localinstall.
......

Offline p-jones

  • *
  • 594
  • +0/-0
Re: SquidGuard 3.2
« Reply #31 on: August 26, 2007, 03:59:44 AM »
Uhmmm...installed OK but has broken the server manager (Bad Gateway
The proxy server received an invalid response from an upstream server.)
and it is not to keen to be uninstalled !!!

...

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: SquidGuard 3.2
« Reply #32 on: August 26, 2007, 04:20:08 AM »
Uhmmm...installed OK but has broken the server manager (Bad Gateway
The proxy server received an invalid response from an upstream server.)
and it is not to keen to be uninstalled !!!



Did you post-upgrade and reboot?  I am running this on 7.2 with all of the latest updates and server-manager does work with it.
......

Offline p-jones

  • *
  • 594
  • +0/-0
Re: SquidGuard 3.2
« Reply #33 on: August 26, 2007, 06:05:28 AM »
Yep - Certainly Did - And I aint sure how to repair the server panel !
« Last Edit: August 26, 2007, 08:26:19 AM by p-jones »
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: SquidGuard 3.2
« Reply #34 on: August 26, 2007, 01:15:56 PM »
Trawling through the logs, I have come across this in teh httpd-admin log

@4000000046d15cc23b64f2cc Syntax error on line 296 of /etc/httpd/admin-conf/httpd.conf:
@4000000046d15cc23b66043c Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration


 which references this block of code

# squidguard
#------------------------------------------------------------
#<Directory /var/lib/squidguard/www>
 #   AllowOverride None
 #   order deny,allow
 #   deny from all
 #   allow from  allow from 127.0.0.1 192.168.2.0/255.255.255.0 210.86.0.38/255.255.255.0
 #   AuthType Basic
 #   TKTAuthLoginURL /server-common/cgi-bin/login
 #   require user admin
  #  SetEnv IMGHDR_SRC "/e-smith-common/server-manager.jpg"
  #  AddType application/x-httpd-php .php .php3
  #  php_value register_globals "On"
#    Satisfy all
# </Directory>

#  squidguard end


 but I have no idea what I am looking at .

When I do a yum remove on the rpms I installed it wont remove them because it thinks they ar not installed. Conversely, it wont re install them because it thinks they ARE installed.

I think I am a bit screwed on this.

My server is very standard EXCEPT for SME7ADMIN and GROUPOFFICE. All else seems to be working OK except server-manager.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: SquidGuard 3.2
« Reply #35 on: August 26, 2007, 03:20:21 PM »
p-jones

Quote
When I do a yum remove on the rpms I installed it wont remove them because it thinks they ar not installed.

The developers have recommended NOT to use the yum remove command, as it may do a lot more than you want.
They do recommend using
rpm -e packagename
eg
rpm -e smeserver-squidguard
rpm -e squidguard-blacklists
rpm -e squidguard
signal-event post-upgrade
reboot
...

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: SquidGuard 3.2
« Reply #36 on: August 26, 2007, 04:30:58 PM »
Trawling through the logs, I have come across this in teh httpd-admin log

@4000000046d15cc23b64f2cc Syntax error on line 296 of /etc/httpd/admin-conf/httpd.conf:
@4000000046d15cc23b66043c Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration


 which references this block of code

# squidguard
#------------------------------------------------------------
#<Directory /var/lib/squidguard/www>
 #   AllowOverride None
 #   order deny,allow
 #   deny from all
 #   allow from  allow from 127.0.0.1 192.168.2.0/255.255.255.0 210.86.0.38/255.255.255.0
 #   AuthType Basic
 #   TKTAuthLoginURL /server-common/cgi-bin/login
 #   require user admin
  #  SetEnv IMGHDR_SRC "/e-smith-common/server-manager.jpg"
  #  AddType application/x-httpd-php .php .php3
  #  php_value register_globals "On"
#    Satisfy all
# </Directory>

#  squidguard end


 but I have no idea what I am looking at .

When I do a yum remove on the rpms I installed it wont remove them because it thinks they ar not installed. Conversely, it wont re install them because it thinks they ARE installed.

I think I am a bit screwed on this.

My server is very standard EXCEPT for SME7ADMIN and GROUPOFFICE. All else seems to be working OK except server-manager.

Those are the exact same lines I have, even with the duplicate allow from which I need to now fix.  Did you happen to upgrade your version of php?  The only other thing that I can think of is a corrupt download.  I'll upload them again along with the md5sums.  As Ray has stated use rpm -e to remove them.  If the system doesn't recognize them as being installed, then that could point to corrupted files.  You should be able to type - rpm -qa | grep squid - do see if the system recognizes them.

John
......

Offline p-jones

  • *
  • 594
  • +0/-0
Re: SquidGuard 3.2
« Reply #37 on: August 26, 2007, 10:16:46 PM »
Ray: Thanks for pointing that out. I did ommit to say I had also tried rpm - e and it reported that the package was not installed.  I revisited this morning, whether it was the more clear head  or overnight housekeeping but they did uninstall. Not sure. I cut and pasted the package name so I didnt have a typo.....

John: I havent specifically upgraded my version of php other than the normal SME updates. (Which I think included a php update several weeks ago ??)

A bit more playing last nite did reveal php_value register_globals "On"
was the line that was causing the server manager to fail, however after omitting that line, the content filtering option in the panel still did not work.

Thanks gentlemen for your input.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: SquidGuard 3.2
« Reply #38 on: August 27, 2007, 12:36:58 AM »
I did ommit to say I had also tried rpm - e and it reported that the package was not installed.

A common mistake people make when using rpm -e is to quote the full packagename including the version number or to mispell the rpm name. Maybe you did this ?
eg
rpm -e squidguard-1.2.i386.rpm
which is wrong.

To uninstall you should only use
rpm -e squidguard
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: SquidGuard 3.2
« Reply #39 on: August 27, 2007, 02:23:16 AM »
Thanks Ray, yep, thats what I did !
...

Offline shawnbishop

  • ****
  • 298
  • +0/-0
Re: SquidGuard 3.2
« Reply #40 on: November 16, 2007, 05:53:53 AM »
Good Day

This is a fantastic how to get the squid guard working, I am having one problem though.

I cant seem to get the banning of the internet access during working hours correct.

What format should the template be in and how should the template be incorparated into the squidguard.conf file??

Offline byte

  • *
  • 2,183
  • +2/-0
Re: SquidGuard 3.2
« Reply #41 on: November 16, 2007, 12:41:24 PM »
I cant seem to get the banning of the internet access during working hours correct.

Have a look at this:

http://wiki.squid-cache.org/SquidFaq/SquidAcl#head-ef469ed90b785ebb496c66523bb69030e0b7c906

Tip - remember squid.conf reads the rules in order set up ;)

Quote
What format should the template be in and how should the template be incorparated into the squidguard.conf file??

Create your custom-templates in /etc/e-smith/templates-custom/etc/squid/squid.conf/xxname

Where "xx" a number in which the order is defined.
« Last Edit: November 16, 2007, 12:43:03 PM by byte »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!