Hi All,

I am trying to develop a simple conf file that allow a school to manage
SquidGuard easily.
It should have 3 characteristics

1. Automatically dowloaded porn placklists... done this, works OK (bl_porn)
2. Ability for the school to add their own sites.. done this, works OK
(SchoolDenied)
3. Ability to override any entry in bl_porn or SchoolDenied.. could not get
this to work (SchoolAllowed)

the school administrator could then use the webmin module to add and remove
from SchoolAllowed and SchoolDenied to tweak what is available to the local
network.

My squidguard.conf is enclosed below. The problem is in the way I am trying
to execute the ACL
       pass !bl_porn !SchoolDenied  #will achieve items 1 and 2 on the list
above
But if I try
       pass SchoolAllowed !bl_porn !SchoolDenied  #everything gets through

I am sure that there is a simple way to do this I just can;t see it right
now.

any help appreciated

Thanks

Andrew


dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log


source LocalNet {
        ip              123.123.123.1-123.123.123.254
}

destination SchoolDenied {
        domainlist      SchoolDenied.destdomainlist
}

destination SchoolAllowed {
        domainlist      SchoolAllowed.destdomainlist
}

destination bl_porn {
        domainlist              blacklists/porn/domains
        urllist         blacklists/porn/urls
}


acl {

        LocalNet {
                pass SchoolAllowed !bl_porn !in-addr !SchoolDenied
                redirect http://server.domain/denied.html
        }


        default  {
                pass none
        }

}

Reply via email to