Title: Assinatura Compacta
Hi,

Since no one answered the message below, I ended up solving the problem using the following:

1) I create 2 different filters profiles in HTTP proxy, one called filter1 and another called filter2;
2) I created a bash script to change the file "/etc/dansguardian/lists/ filtergroupslist" file, changing the filter of users from filter1 to filter2 and made a call in the crontab. See this script:

#!/bin/bash

/bin/cp /etc/dansguardian/lists/filtergroupslist /root/filtergroupslist.old
cat /etc/dansguardian/lists/filtergroupslist|sed s/filter1/filter2/g > /etc/dansguardian/lists/filtergroupslist
/usr/bin/chattr +i /etc/dansguardian/lists/filtergroupslist
/etc/init.d/dansguardian restart

3) I created another bash script to change the file "/etc/dansguardian/lists/filtergrouslist" from filter2 to filter1 and made a call in the crontab too. See the script:

#!/bin/bash

/usr/bin/chattr -i /etc/dansguardian/lists/filtergroupslist
/bin/cp /root/filtergroupslist.old /etc/dansguardian/lists/filtergroupslist
/etc/init.d/dansguardian restart
      

With this I can make different rules for one group of users during the day.

Now, i found an other problem... See this error that occurs when i was using Shalla List:

Cannot find row with rowId doma5201. Component directory: FilterGroup/defaultFilterGroup/filterPolicy/DomainFilterFiles/keys/doma5201/categories. Parent composite: at /usr/share/perl5/EBox/Model/DataTable.pm line 4675 EBox::Model::DataTable::parentRow('EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)') called at /usr/share/perl5/EBox/Squid/Model/DomainFilterCategories.pm line 111 EBox::Squid::Model::DomainFilterCategories::viewCustomizer('EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)') called at /usr/share/ebox/templates/ajax/modelViewer.mas line 137 HTML::Mason::Commands::__ANON__('model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'onlyBody', 1) called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0xbf8c0d4)', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'onlyBody', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1262 eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1252 HTML::Mason::Request::comp('undef', 'undef', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'onlyBody', 1) called at /usr/share/ebox/templates/ajax/modelViewer.mas line 33 HTML::Mason::Commands::__ANON__('data', 'undef', 'dataTable', 'HASH(0xbbbbc70)', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'action', 'changeList', 'editid', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 135 HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xbf8c398)', 'data', 'undef', 'dataTable', 'HASH(0xbbbbc70)', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'action', 'changeList', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1262 eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1252 HTML::Mason::Request::comp('undef', 'undef', 'undef', 'data', 'undef', 'dataTable', 'HASH(0xbbbbc70)', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 468 eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 468 eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 418 HTML::Mason::Request::exec('HTML::Mason::Request=HASH(0xbf21288)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 342 HTML::Mason::Interp::exec('undef', 'undef', 'data', 'undef', 'dataTable', 'HASH(0xbbbbc70)', 'model', 'EBox::Squid::Model::DomainFilterCategories=HASH(0xbbbba54)', 'action', ...) called at /usr/share/perl5/EBox/CGI/Base.pm line 141 EBox::CGI::Base::_body('EBox::CGI::Controller::DataTable=HASH(0xbe58efc)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 89 EBox::CGI::ClientRawBase::_print('EBox::CGI::Controller::DataTable=HASH(0xbe58efc)') called at /usr/share/perl5/EBox/CGI/Controller/DataTable.pm line 292 EBox::CGI::Controller::DataTable::_print('EBox::CGI::Controller::DataTable=HASH(0xbe58efc)') called at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 199 EBox::CGI::ClientRawBase::run('EBox::CGI::Controller::DataTable=HASH(0xbe58efc)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120 EBox::CGI::Run::run('EBox::CGI::Run', 'Squid/Controller/DomainFilterCategories', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 19 ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x8febe48)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204 eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204 ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x8fe46c8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170 ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x8fe46c8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31 ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x8febe48)') called at -e line 0 eval {...} called at -e line 0

Any of you have seen this error?

Thanks,

NetSol
10 ANOS
Jorge Eduardo Quintão
Diretor de Inovação

Tel: +55 31 3071-8001
Fax: +55 31 3071-8040
Site: www.netsol.com.br


Em 23/02/2010 08:11, Jorge Eduardo Quintão escreveu:
Hi,

I have 2 groups:

group 1: user1, user2, user3, user4
group 2: user 5, user6, user7, user8

Group1 can access all categories, except "Porn"...

Group2 can access all categories, except "Porn", "Socialnet" and "Spyware"...

Group2 can access "Socialnet" from 12:00 until 14:00...

Is possible implement this rules using eBox HTTP Proxy?

Thanks,
Jorge Quintão
_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user


_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user

Reply via email to