Hi,
I am trying to figure out how to edit my squidguard.conf file but I am having trouble since this is under the template system. Here is my dilemma:
I need to revise the last section of the squidguard.conf file which is the following:
default {
pass trusted !aggressive !drugs !gamble !hacking !porn !sex !untrusted !violence !warez all
redirect
http://192.168.1.23/cgi-bin/blocked.cgi?clientaddr=%a&clientname=%n&clientident=%i&clientgroup=%s&targetclass=%t&url=%u }
I need to add '!adult' to the list so it should look like this:
default {
pass trusted !adult !aggressive !drugs !gamble !hacking !porn !sex !untrusted !violence !warez all
redirect
http://192.168.1.23/cgi-bin/blocked.cgi?clientaddr=%a&clientname=%n&clientident=%i&clientgroup=%s&targetclass=%t&url=%u }
However this file cannot be edited as there is nice disclaimer on the top of this file which advises to read the Development Manual. I do have the development manual and its referring to the template system which is fine and dandy. I don't know how or what command to use to change this. Now I did fine the exact file in the templates directory that is responsible I guess for this section of the file:
/etc/e-smith/templates/etc/squid/squidguard.conf/80-acl-default
Which looks like this:
# default policy
default \{
{
my $googlesafe = $squidguard{googlesafe} || "disabled";
if (defined $googlesafe && $googlesafe eq 'enabled')
{
$OUT .= " # for google to be in \"safe mode\"\n";
$OUT .= " rewrite google\n";
}
}
{
my @sga = split(',', $squidguard{Squidguard_Allow} || '');
my @sgb = split(',', $squidguard{Squidguard_Block} || '');
my @sgf = split(',', $squidguard{ Squidguard_FullAccess} || '');
return "none" unless (scalar @sga);
return "none" unless (scalar @sgb);
$OUT = ' pass ';
$OUT .= join (' ', @sga);
$OUT .= ' ';
$OUT .= "!". join (' !', @sgb);
$OUT .= " ". join (' ', @sgf);
}
redirect http://{ "$LocalIP" }/cgi-bin/blocked.cgi?clientaddr=%a&clientname=%n&clientident=%i&clientgroup=%s&targetclass=%t&url=%u
\}
I have absolutely know clue what I am suppose to do here? Please help.