Stephen Liu wrote:
> 
> I just join this and squidGuard is completely new to me.

Welcome!

> I follow "For the less impatient" of http://www.squidguard.org/install/
> and Step-by-step I completed installation of;
> db-4.1.25.tar.gz
> squidGuard-1.2.0.tar.gz

db-4.1 will require squidGuard-1.2.1, but you might not want to go 
there.  See:
http://marc.theaimsgroup.com/?l=squidguard&m=103477692125832&w=2

If you fall back to a 3.x db version, use at least 3.2.9 and be sure
to install the patches.  Information is here:
http://www.sleepycat.com/download/patchlogs.shtml

You will need to rerun configure and recompile squidGuard after
switching your database version.

> When came to point 8)
> "Make a configuration file for squidGuard. Start with a minimal 
> configuration  and extend as your experience and needs grow"
> 
> I have no idea how to proceed further to create a configuration 
> file and where shall it be kept.

I'd recommend you start with the following config file:

--------- /usr/local/squidGuard/squidGuard.conf ------------------
logdir /usr/local/squidGuard/log
dbhome /usr/local/squidGuard/db/blacklists

src mynet {
        ip             192.168.0.0-192.168.44.100
}

dest porn {
        domainlist     porn/domains
        urllist        porn/urls
        redirect       http://your.server.com/your-blocked-page
        logfile        blocked.log
}

dest pornexp {
        expressionlist porn/expressions
        redirect       http://your.server.com/your-blocked-page
        logfile        blocked.log
}

acl {
        mynet {
            pass !porn !pornexp all
        }

        default {
            pass none
        redirect        http://your.server.com/access-not-allowed-page
        logfile         blocked.log
        }
}
------------ end of squidGuard.conf ------------------------

Put squidGuard.conf in /usr/local/squidGuard/

Download the blacklist from the squidGuard site and put it in 
/usr/local/squidGuard/db

'cd /usr/local/squidGuard/db'
'tar zxvf blacklists.tar.gz'
'chown -R squid.squid /usr/local/squidGuard/db/blacklists'
(squid.squid above should match cache_effective_user and 
cache_effective_group in your squid.conf file)

Let us know how it is going.

Rick

Reply via email to