Hi

I am fairly new to using SquidGuard.
I have it running on a Red Hat 7.2 box.

What I am trying to do is limit users to only have access to out intranet
site during working hours, then after hours they can surf, but porn etc will
be blocked.

I can get sGuard to block porn etc but when I start using the else statement
sGuard does not block anything (emergency pass-all mode I think they call
it.) There are no errors reported in my log file.

My intranet site is the only site in the local-ok domains.db.

Extracts from my conf file:

time leisure-time {
    weekly * 00:00-07:00 17:30-00:00
    weekly fridays 16:00-17:30
}

src lim-access {
        ip #.#.#.1-#.#.#.125
}

dest lists here***

acl {
    lim-access within leisure-time {
        pass local-ok !local-block !aggressive !drugs !gambling !hacking
!porn !proxy !violence !warez all

        redirect
302:http://my.web.server/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&;
clientident=%i&srcclass=%s&targetgroup=%t&url=%u
     } else {
                pass local-ok !all

        redirect
302:http://my.web.server/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&;
clientident=%i&srcclass=%s&targetgroup=%t&url=%u
     }

   default {
        pass none

#       redirect
302:http://my.web.server/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&;
clientident=%i&srcclass=%s&targetgroup=%t&url=%u
   }

If I remove the within leisure-time and else section, sGuard works fine.

TIA

Ross

Reply via email to