Hello,

in attachment see my_etc-fail2ban.tar.gz.

I only added (and edit) my own jail.local, as recommended.

It had worked until I saw that it wasn't yesterday!

IMPORTANT: 
this morning I added my own (temporary) solution, and it works now but I'm
not understanding why the fail2ban-server doesn't run by himself at boot:
I'm not remembering having seen Python packages passing during my last
Lenny update. Feel free to check!

Temp solution:
adding 
        #!/bin/bash
        /usr/bin/python /usr/bin/fail2ban-server -b -s 
/var/run/fail2ban/fail2ban.sock

in for ex.: /etc/init.d/force-fail2ban-to-start
then doing
        ln -s /etc/init.d/force-fail2ban-to-run 
/etc/rcS.d/S99force-fail2ban-to-start

By hand: it starts. After rebooting: it starts too.

To be as complete as possible, these are the python-related packages
currently available on my Lenny:

ii  python                               2.5.2-3                        An 
interactive high-level object-oriented la
ii  python-4suite-xml                    1.0.2-5                        An 
open-source platform for XML and RDF proc
ii  python-apt                           0.7.7.1+nmu1                   Python 
interface to libapt-pkg
ii  python-brlapi                        3.10~r3724-1+lenny1            Python 
bindings for BrlAPI
ii  python-cairo                         1.4.12-1.2                     Python 
bindings for the Cairo vector graphic
ii  python-cdd                           0.0.8                          library 
to make easier to build CDD related 
ii  python-cddb                          1.4-5.1+b1                     Python 
interface to CD-IDs and FreeDB
ii  python-central                       0.6.8                          
register and build utility for Python packag
ii  python-cups                          1.9.31-1                       Python 
bindings for CUPS
ii  python-cupsutils                     1.0.0-4lenny1                  Python 
utility modules around the CUPS print
ii  python-dbus                          0.82.4-2                       simple 
interprocess messaging system (Python
ii  python-eggtrayicon                   2.19.1-3.1                     Python 
module to display icons in the system
ii  python-elementtree                   1.2.6-12                       
Light-weight toolkit for XML processing
ii  python-eyed3                         0.6.16                         Python 
module for id3-tags manipulation
ii  python-foomatic                      0.7.9.1                        Python 
interface to the Foomatic printer dat
ii  python-gdata                         1.1.1-1                        Google 
Data Python client library
ii  python-gdbm                          2.5.2-1                        GNU dbm 
database support for Python
ii  python-glade2                        2.12.1-6                       GTK+ 
bindings: Glade support
ii  python-gmenu                         2.22.2-4                       an 
implementation of the freedesktop menu sp
ii  python-gnome2                        2.22.0-1                       Python 
bindings for the GNOME desktop enviro
ii  python-gnome2-desktop                2.22.0-2                       Python 
bindings for the GNOME desktop enviro
ii  python-gnome2-extras                 2.19.1-3.1                     Extra 
Python bindings for the GNOME desktop 
ii  python-gnupginterface                0.3.2-9                        Python 
interface to GnuPG (GPG)
ii  python-gobject                       2.14.2-2                       Python 
bindings for the GObject library
ii  python-gst0.10                       0.10.12-1.1                    generic 
media-playing framework (Python bind
ii  python-gtk2                          2.12.1-6                       Python 
bindings for the GTK+ widget set
ii  python-gtkhtml2                      2.19.1-3.1                     Python 
bindings for the GtkHTML 2 library
ii  python-gtkmozembed                   2.19.1-3.1                     Python 
bindings for the GtkMozEmbed Gecko li
ii  python-gtksourceview2                2.2.0-1+b1                     Python 
bindings for the GtkSourceView widget
ii  python-imaging                       1.1.6-3                        Python 
Imaging Library
ii  python-ipy                           1:0.62-1                       Python 
module for handling IPv4 and IPv6 add
ii  python-libxml2                       2.6.32.dfsg-5+lenny1           Python 
bindings for the GNOME XML library
ii  python-minimal                       2.5.2-3                        A 
minimal subset of the Python language (def
ii  python-musicbrainz2                  0.6.0-2                        An 
interface to the MusicBrainz XML web serv
ii  python-mutagen                       1.14-2                         audio 
metadata editing library
ii  python-notify                        0.1.1-2+b1                     Python 
bindings for libnotify
ii  python-numeric                       24.2-9                         
Numerical (matrix-oriented) Mathematics for 
ii  python-ogg                           1.3+repack-2                   Python 
interface to the Ogg library
ii  python-pyao                          0.82-2.1                       A 
Python interface to the Audio Output libra
ii  python-pyatspi                       1.22.1-1                       
Assistive Technology Service Provider Interf
ii  python-pycurl                        7.18.2-1                       Python 
bindings to libcurl
ii  python-pymad                         0.5.4-3.2+b1                   Python 
wrapper to the MPEG Audio Decoder lib
ii  python-pyogg                         1.3+repack-2                   
transitional dummy package
ii  python-pyorbit                       2.14.3-2                       A 
Python language binding for the ORBit2 COR
ii  python-pyvorbis                      1.3-2                          A 
Python interface to the Ogg Vorbis library
ii  python-sexy                          0.1.9-1                        python 
language bindings for libsexy
ii  python-software-properties           0.60.debian-1.1                manage 
the repositories that you install sof
ii  python-support                       0.8.4lenny1                    
automated rebuilding support for Python modu
ii  python-uno                           1:2.4.1+dfsg-1+lenny6          Python 
interface for OpenOffice.org
ii  python-vte                           1:0.16.14-4                    Python 
bindings for the VTE widget set
ii  python-xdg                           0.15-1.1                       A 
python library to access freedesktop.org s
ii  python2.5                            2.5.2-15+lenny1                An 
interactive high-level object-oriented la
ii  python2.5-minimal                    2.5.2-15+lenny1                A 
minimal subset of the Python language (ver

And this is my ps ax |grep -i fail2ban output at this moment:
 2465 ?        S      0:00 /usr/bin/python /usr/bin/fail2ban-server -b -s 
/var/run/fail2ban/fail2ban.sock
 3292 tty1     S+     0:00 grep -i fail2ban

Grtnx,
Osvaldo.

(cf. attach)


On Thu, Mar 18, 2010 at 08:06:52PM -0400, Yaroslav Halchenko wrote:
> would you mind sharing the content of /etc/fail2ban? have you
> modified/customized any configuration file?
> 
> On Thu, 18 Mar 2010, Osvaldo La Rosa wrote:
> 
> > jupiter:~# /etc/init.d/fail2ban start
> > Traceback (most recent call last):
> >   File "/usr/bin/fail2ban-client", line 401, in <module>
> >     if client.start(sys.argv):
> >   File "/usr/bin/fail2ban-client", line 370, in start
> >     return self.__processCommand(args)
> >   File "/usr/bin/fail2ban-client", line 180, in __processCommand
> >     ret = self.__readConfig()
> >   File "/usr/bin/fail2ban-client", line 375, in __readConfig
> >     ret = self.__configurator.getOptions()
> >   File "/usr/share/fail2ban/client/configurator.py", line 65, in getOptions
> >     return self.__jails.getOptions(jail)
> >   File "/usr/share/fail2ban/client/jailsreader.py", line 64, in getOptions
> >     ret = jail.getOptions()
> >   File "/usr/share/fail2ban/client/jailreader.py", line 70, in getOptions
> >     self.__opts = ConfigReader.getOptions(self, self.__name, opts)
> >   File "/usr/share/fail2ban/client/configreader.py", line 84, in getOptions
> >     v = self.get(sec, option[1])
> >   File "/usr/lib/python2.5/ConfigParser.py", line 525, in get
> >     return self._interpolate(section, option, value, d)
> >   File "/usr/lib/python2.5/ConfigParser.py", line 593, in _interpolate
> >     self._interpolate_some(option, L, rawval, section, vars, 1)
> >   File "/usr/lib/python2.5/ConfigParser.py", line 625, in _interpolate_some
> >     option, section, rest, var)
> > ConfigParser.InterpolationMissingOptionError: Bad value substitution:
> >     section: [apache-noscript]
> >     option : action
> >     key    : action_wml
> >     rawval : 
> 
> -- 
>                                   .-.
> =------------------------------   /v\  ----------------------------=
> Keep in touch                    // \\     (yoh@|www.)onerussian.com
> Yaroslav Halchenko              /(   )\               ICQ#: 60653192
>                    Linux User    ^^-^^    [175555]

Attachment: my_etc-fail2ban.tar.gz
Description: Binary data

Reply via email to