Author Topic: Proxy por grupos  (Read 5576 times)

aguerra

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Proxy por grupos
« on: September 25, 2009, 04:21:20 pm »
Después de activar el ebox: voy a activar la opción de proxy por grupos x q necesito que unos grupos puedan navegar sin restricción y el otro grupo a algunas paginas, después de crear los grupos (samba) y desactivar el proxy transparente y colocar permiso y filtra en la opción del proxy no se activar el squid y dans y obtengo el siguiente error:

Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Samba.pm line 590.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Samba.pm line 611.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Samba.pm line 611.
Use of uninitialized value in hash element at /usr/share/perl5/EBox/Samba.pm line 569.
Use of uninitialized value in hash element at /usr/share/perl5/EBox/Samba.pm line 570.
Use of uninitialized value in hash element at /usr/share/perl5/EBox/Samba.pm line 572.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Samba.pm line 590.
Trace begun at /usr/share/ebox/cgi/ebox.cgi line 26
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::__ANON__('Error::Simple=HASH(0x9771920)', 'SCALAR(0x8224b78)') called at /usr/share/perl5/Error.pm line 375
eval {...} at /usr/share/perl5/Error.pm line 365
Error::subs::run_clauses('HASH(0x953cedc)', 'Error::Simple=HASH(0x9771920)', undef, 'ARRAY(0x8224d4c)') called at /usr/share/perl5/Error.pm line 427
Error::subs::try('CODE(0x8f36700)', 'HASH(0x953cedc)') called at /usr/share/ebox/cgi/ebox.cgi line 42
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x9294a78)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x870cc70)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x870cc70)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x9294a78)') called at -e line 0
eval {...} at -e line 0
$VAR1 = bless( {
                 '-file' => '/usr/share/perl5/EBox/DHCP.pm',
                 '-text' => 'Can\'t locate object method "new" via package "EBox::Dashboard::List" (perhaps you forgot to load "EBox::Dashboard::List"?)',
                 '-line' => '1224',
                 '-package' => 'Error'
               }, 'Error::Simple' );


Use of uninitialized value in string ne at /usr/share/perl5/EBox/Menu/Root.pm line 51.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/EBox/Menu/Separator.pm line 44.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Odd number of elements in hash assignment at /usr/share/perl5/EBox/CGI/ClientRawBase.pm line 42.
Odd number of elements in hash assignment at /usr/share/perl5/EBox/CGI/Base.pm line 50.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm line 34.
Use of uninitialized value in numeric lt (<) at /usr/share/ebox/templates/ajax/setter/textSetter.mas line 11.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Proxy por grupos
« Reply #1 on: September 25, 2009, 06:05:40 pm »
Hola,
 es un bug pero parece mas del modulo DHCP que del HTTP Proxy. Tienes el DHCP activado?.

En ese caso creo que tengo una posible solución pero seria necesario probarla para estar, seguros. Para probarla usa el archivo adjunto para remplazar el archivo DHCP.pm en tu eBox:

  cp DHCP.pm /usr/share/perl5/EBox/DHCP.pm (ejecutado como root)

A continuacion reinicia apache de eBox para eliminar copias antiguas de la cache:

/etc/init.d/ebox apache restart

Prueba a acceder de nuevo y , si el problema es el que creo, el error desaparecerá.

Saludos,
  Javier

aguerra

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: Proxy por grupos
« Reply #2 on: September 28, 2009, 01:26:59 pm »
Javier,

hice los cambio y todavia tengo errores:
2009/09/25 11:38:57 DEBUG> PgDBEngine.pm:161 EBox::PgDBEngine::insert -
Error inserting data: INSERT INTO access ( bytes, event, elapsed,
rfc931, timestamp, url, method, peer, mimetype, remotehost, code) VALUES
( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ERROR:  value too long for type character(1024)

2009/09/25 13:17:27 WARN> SOAPClient.pm:83
EBox::RemoteServices::SOAPClient::instance - Doing connection to web
service: urn:EBox/Services/RegisteredEBoxList without credentials to
https://67.23.13.170/soap

2009/09/25 13:18:34 DEBUG> Base.pm:255
EBox::RemoteServices::Base::_queryServicesNameserver - Server
backup.internal.ebox-controlcenter.com not found via DNS server 10.200.0.4
2009/09/25 13:18:34 WARN> Subscription.pm:185
EBox::RemoteServices::Model::Subscription::__ANON__ - Impossible to
establish the connection to the name server. Firewall is not restarted yet

2009/09/25 13:34:20 ERROR> Sudo.pm:189 EBox::Sudo::_rootError - root
command /usr/bin/stat -c%dI%iI%fI%hI%uI%gIhI%sI%XI%YI%ZI%oI%bI%tI%T
'/var/lib/ebox/conf/remoteservices/soap-loc.conf' failed.
Error output: /usr/bin/stat: cannot stat
`/var/lib/ebox/conf/remoteservices/soap-loc.conf': No such file or directory

2009/09/25 14:20:26 WARN> Events.pm:526 EBox::Events::__ANON__ - model
EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/09/25 14:22:22 INFO> Global.pm:406 EBox::Global::saveAllModules -
Saving config and restarting services: firewall squid
2009/09/25 14:22:22 INFO> Base.pm:125 EBox::Module::Base::save -
Restarting service for module: firewall
2009/09/25 14:22:23 INFO> Manager.pm:97
EBox::Monitor::Measure::Manager::register -
EBox::Monitor::Measure::Thermal is not enabled to collect data
2009/09/25 14:22:24 DEBUG> LogFiltering.pm:70
EBox::Events::Model::Watcher::LogFiltering::new - Missing argument:
tableInfo
2009/09/25 14:22:24 WARN> Events.pm:526 EBox::Events::__ANON__ - model
EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/09/25 14:22:27 DEBUG> LogFiltering.pm:70
EBox::Events::Model::Watcher::LogFiltering::new - Missing argument:
tableInfo
2009/09/25 14:22:27 WARN> Events.pm:526 EBox::Events::__ANON__ - model
EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/09/25 14:22:28 DEBUG> LogFiltering.pm:70
EBox::Events::Model::Watcher::LogFiltering::new - Missing argument:
tableInfo
2009/09/25 14:22:28 WARN> Events.pm:526 EBox::Events::__ANON__ - model
EBox::Events::Model::Watcher::LogFiltering cannot be instantiated
2009/09/25 14:22:32 INFO> Base.pm:754 EBox::Module::Base::_hook -
Running hook: /etc/ebox/hooks/firewall.postservice 1
2009/09/25 14:22:32 INFO> Base.pm:125 EBox::Module::Base::save -
Restarting service for module: squid

2009/09/25 14:26:47 INFO> Base.pm:125 EBox::Module::Base::save -
Restarting service for module: squid
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
DefaultAntiVirus does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
ContentFilterThreshold does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
ExtensionFilter does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
ApplyAllowToAllExtensions does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
MIMEFilter does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
ApplyAllowToAllMIME does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
DomainFilterSettings does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
DomainFilter does not exist.
2009/09/25 14:26:49 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
DomainFilterFiles does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupAntiVirus does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupContentFilterThreshold does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
UseDefaultExtensionFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupExtensionFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupApplyAllowToAllExtensions does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
UseDefaultMIMEFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupMIMEFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupApplyAllowToAllMIME does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
UseDefaultDomainFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupDomainFilterSettings does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupDomainFilter does not exist.
2009/09/25 14:26:56 DEBUG> CompositeManager.pm:393
EBox::Model::CompositeManager::_inferModuleFromComposite - compositeName
FilterGroupDomainFilterFiles does not exist.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Proxy por grupos
« Reply #3 on: September 28, 2009, 02:50:07 pm »
Hola,
 del log que has copiado, a primera vista lo unico que me parece problematico es el primer mensaje. Signfica que se ha perdido la entrada de un log, pronto tratare de corregirlo.

Dejando el arhcivo de log aparte, tu configuracion del HTTP proxy  funciona correctamente ahora?

aguerra

  • Zen Warrior
  • ***
  • Posts: 123
  • Karma: +0/-0
    • View Profile
Re: Proxy por grupos
« Reply #4 on: September 28, 2009, 03:00:26 pm »
Te comento que esto esta ocurriendo de esta manera:
1. Inicialmente se configuro como proxy transparante
2. Después lo cambiamos a:
2.1 Transparent Proxy "NO"
2.2 Default policy: " Authorize and Filter "
2.3 Y se crearon 2 grupos (Full navegacion y restringidos)

Cuando realizamos estos cambios nos genera el error anterior

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Proxy por grupos
« Reply #5 on: October 02, 2009, 06:06:03 pm »
Hola,
 el error que me has puesto esta extraído de los archivos de log. Cual es el error que te sale en la pantalla al guardar los cambio?