Merci Arnaud,
I have define the whitelist liket this:
dest whitelst {
    urllist /etc/squid/whitelst
    domainlist /etc/squid/whitelstdom }

Create the db by: 
squidguard -C /etc/squid/whitelst
squidguard -C /etc/squid/whitelstdom

And change the acl for default:
default {
                pass     whitelst       none
                redirect http://localhost/sorry-hour.html }

Restarted squid.

THE RESULT:
All access to the internet are opened. So, instead of just the white list, 
user can access other websites too.

Is there something I miss?
Thanks,
Fajar.


On Tuesday 18 October 2005 14:44, Arnaud FLORENT wrote:
> you just have to define dest whitelist and change your default acl to
> pass whitelist none
> other acls won't block (pass all except porn)
>
> Fajar Priyanto a écrit :
> >Hi all,
> >I have this conf:
> >
> >dbhome /var/lib/squidguard/db
> >logdir /var/log/squidguard/
> >
> >time workhours {
> >        weekly mtwhf 07:00 - 09:00 12:00 - 13:00 16:00 - 18:00 }
> >
> >src staffs {
> >        ip      192.168.1.5
> >        ip      192.168.1.14 }
> >
> >src bosses {
> >     ip      192.168.1.100
> >     ip      192.168.1.101 }
> >
> >dest porn {
> >    domainlist porn/domains
> >    urllist porn/urls
> >    expressionlist  porn/expressions }
> >
> >acl {
> >        bosses {
> >                pass !porn all
> >                redirect http://localhost/sorry.html }
> >
> >        staffs within workhours {
> >                pass !porn all
> >                redirect http://localhost/sorry.html }
> >
> >     default {
> >                pass     none
> >                redirect http://localhost/sorry-time.html }
> >}
> >
> >With the above acl, we are able to limit the staffs src group to browse
> > the internet during the permitted hours only.
> >
> >QUESTION:
> >We want to make some urls to be AVAILABLE for all user either in workhours
> > or offhours. For example, we want to ALLOW users to be able to open
> >www.yahoo.com, gmail.google.com
> >
> >Can anyone give me some hints here?
> >Thank you very much,

-- 
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
http://linux2.arinet.org
15:15:07 up 7:13, 2.6.11-1.1369_FC4 GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org

Reply via email to