On Tue, Aug 13, 2013 at 12:13 AM, Yaroslav Halchenko <lists@onerussian.com> wrote:

On Sun, 11 Aug 2013, Zurd wrote:

>    1. There is no uninstall script. Having a script for that or an option
>    like python setup.py uninstall would be quite welcome. Or just giving the
>    information on what to delete in the README.md file would be enough.

afaik there is no easy universal way -- it would depend on how it was
installed, thus e.g. .deb/.rpm packages would provide facility for
corresponding removal (e.g. with or without config files -- --remove vs
--purge in Debian)

sure we could come up with some cruel generic uninstall script but
that might bring more pain than gain imho

as sugested, I created an issue on github, see :

>    2. I'm missing the debian init.d script, it should be added in the main
>    branch on github. Right now it's the only thing I'm missing, where can I
>    find one ?

just avoid any manual installations and install backport builds of
fail2ban Debian packages for any reasonable release of Debian and Ubuntu:

Debian's init script is in debian branch under debian/fail2ban.init iirc[ -z "$SOCKFILE" ] && SOCKFILE='/var/run/fail2ban/fail2ban.sock'

I didn't know about neuro.debian.net, it's interesting because they have the latest version but I will still prefer a manual install for fail2ban. It's just a git clone and python setup command after all for installation. And I have another server running CentOS so this will not be useful, I still need to do a manual install.

Thanks for the init script, didn't know about the debian branch on github, found it at

However, to make it work, need to change the DAEMON variable to /usr/local/bin/$NAME-client
then need to also change the SOCKFILE to /var/run/fail2ban.sock
and even then, it's working but always printing the message "ERROR Unable to contact server. Is it running?"

And I don't know why. Since I'm using Debian, should I have used this branch instead of the master branch ?! Why is there a debian branch when the master branch is working just fine?

What would be really neat is just adding the init script in the master branch in the files folder, after all, there's already an init script for gentoo, macosx, redhat, etc., just missing debian and in the readme, to write if you want to auto-start, just add the init script in /etc/init.d/ and run
sudo chmod 755 /etc/init.d/fail2ban
sudo update-rc.d fail2ban defaults