Author Topic: Proxy filter stops working after restart [SOLVED]  (Read 7991 times)

alexander.wheel

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Proxy filter stops working after restart [SOLVED]
« on: December 16, 2010, 10:26:34 pm »
Hello,
I have an urgent problem that I could not solve.
I configured a proxy with zentyal (2 network interfaces one for the LAN and another connected to my router).
1 º) I created the object staff (ip 192.168.50.0/24)
2 º) I created a filter for the object and loaded staff shallalist lists

RESULT: It works perfectly.

PROBLEM: If I then restart the proxy or the machine, the filter stops working and I have to reconfigure it all again (Although from the Zentyal's control panel, all is apparently right)

Is it a bug or am I doing something wrong?
Quote
apt-cache policy dansguardian
dansguardian:
  Instalados: 2.10.1.1-1
  Candidato: 2.10.1.1-1
  Tabla de versión:
 *** 2.10.1.1-1 0
        500 http://es.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status
Quote
apt-cache policy ebox-squid
ebox-squid:
  Instalados: 2.0.2
  Candidato: 2.0.2
  Tabla de versión:
 *** 2.0.2 0
        500 http://ppa.launchpad.net/zentyal/2.0/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status
     1.5-0ubuntu1 0
        500 http://es.archive.ubuntu.com/ubuntu/ lucid/universe Packages


Thanks in advance.
« Last Edit: January 10, 2011, 10:54:49 am by alexander.wheel »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Proxy filter stops working after restart
« Reply #1 on: December 17, 2010, 06:41:50 pm »
Is it only the content filter (dansguardian) what stops working, or also squid?

If you execute "/etc/init.d/ebox squid restart", does the filtering get back to life?

We are not sure yet if it's a bug or not, we've never faced this behavior before...
Zentyal Server Lead Developer

alexander.wheel

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart
« Reply #2 on: December 17, 2010, 07:01:26 pm »
Thanks.
If I execute /etc/init.d/ebox squid restart, the filtering is still down.

I checked this:
Quote
dansguardian status
I seem to be running already!
Quote
sudo /etc/init.d/ebox squid status
EBox: status module squid:                 [ RUNNING ]

The only solution that I've found, is remove the lists from the zentyal's frontend and reload and recofigure it again (very annoying)
Thanks again
« Last Edit: December 18, 2010, 12:03:30 pm by alexander.wheel »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Proxy filter stops working after restart
« Reply #3 on: December 17, 2010, 10:19:43 pm »
Could you give us an URL to download your exact version of your shallalist lists file? That way we can try to reproduce it...
Zentyal Server Lead Developer

alexander.wheel

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart
« Reply #4 on: December 17, 2010, 10:53:37 pm »
http://www.shallalist.de/

But with http://urlblacklist.com/?sec=download the filter also fails.

Thanks for lending me so much support

alexander.wheel

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart
« Reply #5 on: December 18, 2010, 12:34:20 pm »
More datailed:
Interfaces:



Gateway:


Ojects:


Filter:


Filter profiles:


Object Policy


Proxy Logs:
When the system and the filter works correctly, If I put a porn page nothing is logged (in proxy log file) but THE SYSTEM WORKS:---->Access Denied.
But If I restart the system....(all fails)

« Last Edit: December 18, 2010, 12:45:53 pm by alexander.wheel »

sruedat

  • Zen Monk
  • **
  • Posts: 73
  • Karma: +1/-0
    • View Profile
Re: Proxy filter stops working after restart
« Reply #6 on: December 31, 2010, 10:35:45 am »
I have the same problem, the only solution to configure all over again ... that boring!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Proxy filter stops working after restart
« Reply #7 on: January 09, 2011, 07:15:43 pm »
A new 2.0.3 version that should fix this has been released, please upgrade and give us feedback.
Zentyal Server Lead Developer

alexander.wheel

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart
« Reply #8 on: January 10, 2011, 10:54:13 am »
Thank's... fantastic job,
Now woks without problem.

yatsura2k

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart [SOLVED]
« Reply #9 on: January 20, 2011, 12:27:02 pm »
Hi -

  I upgraded my previously working ebox-squid to 2.0.3 and I am now seeing the behavior described above.
  Restarting the http-proxy service (either by rebooting the system, selecting 'restart' from the dashboard or
  executing '/etc/init.d/ebox squid restart' ) deletes the entire contents of /etc/dansguardian/extralists.

  The GUI still shows the correct configuration but no filtering occurs.

  During the restart, the following is displayed:
  "Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm
    line 34."

  Any assistance would be greatly appreciated.

  UPDATE: I rolled back to ebox-squid 2.0.2 (found the .deb on the ppa) and everything works OK again.

  Thanks.
« Last Edit: January 21, 2011, 11:48:55 am by yatsura2k »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Proxy filter stops working after restart [SOLVED]
« Reply #10 on: January 21, 2011, 12:14:54 pm »
Hi,

This is strange, as you can see, the one who originally reported the problem confirms it is fixed now.

Are you using special characters for the lists names? Maybe the comparison with the name of the directory and the name read from the configuration fails due to encoding problems and that's why they are getting deleted...

Thanks for reporting it.
Zentyal Server Lead Developer

yatsura2k

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart [SOLVED]
« Reply #11 on: January 21, 2011, 02:22:15 pm »
>Are you using special characters for the lists names?
No - I'm using the same ShallaList as the OP, from http://www.shallalist.de/
(http://www.shallalist.de/Downloads/shallalist.tar.gz)

As far as I can tell, it doesn't contain any strange characters.

latre

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart [SOLVED]
« Reply #12 on: January 21, 2011, 04:16:02 pm »
could you post the link where you get ebox-squid 2.0.2 please...i have a problem with squid and i want back to older version.

Hi -

  I upgraded my previously working ebox-squid to 2.0.3 and I am now seeing the behavior described above.
  Restarting the http-proxy service (either by rebooting the system, selecting 'restart' from the dashboard or
  executing '/etc/init.d/ebox squid restart' ) deletes the entire contents of /etc/dansguardian/extralists.

  The GUI still shows the correct configuration but no filtering occurs.

  During the restart, the following is displayed:
  "Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/HTML/Mason/Component/Subcomponent.pm
    line 34."

  Any assistance would be greatly appreciated.

  UPDATE: I rolled back to ebox-squid 2.0.2 (found the .deb on the ppa) and everything works OK again.

  Thanks.

yatsura2k

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Proxy filter stops working after restart [SOLVED]
« Reply #13 on: January 21, 2011, 04:42:32 pm »
The Zentyal 2.0 ppa is here:
https://launchpad.net/~zentyal/+archive/2.0/+packages

You can find old packages by changing the filter to 'any status'.

The .deb for ebox-squid 2.0.2 is here:
https://launchpad.net/~zentyal/+archive/2.0/+files/ebox-squid_2.0.2_all.deb



latre

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile