Gnome Nanny not started automatically

Bug #637656 reported by jmb0007
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nanny (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: nanny

in Ubuntu 10.10 I am trying to use Gnome Nanny 2.29.4-0ubuntu3

I have setting up the calendar to restrict the internet using time.
After restarting the computer the internet is active, and the gnome nanny panel indicator say the internet Will be active in XX hours.

At boot i have no iptable rules define for nanny

       sudo iptables -L Nanny
       iptables: No chain/target/match by that name.

trying to start nanny give nothing better
     sudo service nanny start
     sudo iptables -L Nanny
    iptables: No chain/target/match by that name.

after restart nanny, i have the iptable rules and internet is blocked
    sudo service nanny restart
    Stopping nanny (Parental Control Daemon): nanny.
    Starting nanny (Parental Control Daemon): nanny.
    jm@jm-laptop:~$ sudo iptables -L Nanny
    Chain Nanny (1 references)
    target prot opt source destination
    DROP tcp -- anywhere anywhere multiport dports www,https,http-alt owner UID match jm state NEW,RELATED,ESTABLISHED TIME from 00:00:00 to 12:30:00 on Wed
    DROP tcp -- anywhere anywhere multiport dports www,https,http-alt owner UID match jm state NEW,RELATED,ESTABLISHED TIME from 13:30:00 to 18:00:00 on Wed
    DROP tcp -- anywhere anywhere multiport dports www,https,http-alt owner UID match jm state NEW,RELATED,ESTABLISHED TIME from 21:30:00 to 23:59:00 on Wed
    DROP tcp -- anywhere anywhere multiport dports www,https,http-alt owner UID match jm state NEW,RELATED,ESTABLISHED TIME from 00:00:00 to 09:00:00 on Sun

Revision history for this message
jmb0007 (baudetjm) wrote :

I have Gnome Nanny is started at boot

I have just change
#! /bin/sh to #!/bin/sh in /etc/init.d/nanny

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

New stable version of Nanny - 2.31.1 was released at 2011 January, I think Ubuntu 11.04 should have latest stable version and fix this bug in new packages :)

Here is full changelog: http://git.gnome.org/browse/nanny/log/

I'm pasting few lines from NEWS file:

Version 2.31.1
==============

Features
-----------------------------------
* Win32 support for nanny (windows xp and 7)
* New blacklist system
* Remove nanny blacklist manager
* Integration of the blacklist manager in nanny admin console

Translations
------------
- cs, courtesy of Marek Černocký
- de, courtesy of Mario Blättermann
- es, courtesy of Daniel Mustieles
- es, courtesy of Roberto Majadas
- fr, courtesy of Alain Lojewski
- fr, courtesy of Claude Paroz
- gl, courtesy of Fran Diéguez
- he, courtesy of Yaron Shahrabani
- hu, courtesy of Gabor Kelemen
- pl, courtesy of Piotr Drąg
- ro, courtesy of Lucian Adrian Grijincu
- sl, courtesy of Andrej Žnidaršič
- sl, courtesy of Matej Urbančič
- zh_CN, courtesy of Yinghua Wang

Thanks guys !! you are awesome !! :)

Version 2.30.0
==============

First stable version :)

UI translations:
--------------------------
Andrej Žnidaršič (sl)
Bruno Brouard (fr)
Djavan Fagundes (pt_BR)
Fran Diéguez (gl)
Mario Blättermann (de)
Petr Kovar (cs)
Yannis Kaskamanidis (el)
Yinghua Wang (zh_CN)

Doc translations:
--------------------------
Yannis Kaskamanidis (el)

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

I just tested nanny in Ubuntu 11.04 and configured web browser restrictions in "Nanny Admin Console". It seems these restrictions are activated straight away after I clicked Apply button:
ubuntu@ubuntu:~$ sudo iptables -L Nanny
Chain Nanny (1 references)
target prot opt source destination
DROP tcp -- anywhere anywhere multiport dports www,https,http-alt owner UID match ubuntu state NEW,RELATED,ESTABLISHED TIME from 01:00:00 to 12:30:00 on Mon

I'm running from LiveUSB, so I can't test how nanny works after restarting, maybe someone can test and write a comment here?

Btw, I think space symbol between ! and /bin/sh in /etc/init.d/nanny file doesn't cause any problems, because most files in /etc/init.d/ have space in first line, for example /etc/init.d/bootlogd /etc/init.d/reboot /etc/init.d/bluetooth /etc/init.d/saned /etc/init.d/rsync

jmb0007 (baudetjm) wrote on 2010-09-14:
> I have Gnome Nanny is started at boot
> I have just change
> #! /bin/sh to #!/bin/sh in /etc/init.d/nanny

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.