Ayuda Instalación manual de fail2ban en Debian wheezy
Hola lista
Pido su ayuda instalé Fail2ban de forma manual para tenerlo lo mas
actualizado ya que trae alguna scripts interesante, en el repo
encuento una Version: 0.8.6-3wheezy2 antigua, en la web oficial decía
estable la version 0.8.12 por eso me puse a instalar de forma manual
al parecer metí la patota, a ver si me pueden echar un lazo a
continuación detallo los comandos que ejecute:
root@mail:~# mkdir fail2ban
root@mail:~# cd fail2ban/
root@mail:~# wget https://sarasasarasa/fail2ban-0.8.12.tar.gz
root@mail:~# tar xzf fail2ban-0.8.12.tar.gz
root@mail:~# cd fail2ban-0.8.12/
root@mail:~# python setup.py install
root@mail:~# fail2ban-client -h
Segun el README.md dice que ejecute fail2ban-client -h y lo hice me
tiro una serie de comandos disponibles
root@mail:~# /usr/local/bin/fail2ban-client -v start
sale este
INFO Using socket file /var/run/fail2ban/fail2ban.sock
INFO [# ] Waiting on the server...2014-03-11 22:20:06,530
fail2ban.server [17389]: INFO Starting Fail2ban v0.8.12
2014-03-11 22:20:06,530 fail2ban.server [17389]: INFO Starting in daemon mode
root@mail:~# /usr/local/bin/fail2ban-client -v stop
INFO Using socket file /var/run/fail2ban/fail2ban.sock
Shutdown successful
hasta aquí fenómeno creo que esta instalado correctamente, me guié de
algunos manuales de [1] para crear el inicio
root@mail:~# cd files/
root@mail:~# cp suse-initd /etc/init.d/fail2ban
root@mail:~# chmod 755 /etc/init.d/fail2ban
ejecutando para que inicie
root@mail:~# /etc/init.d/fail2ban start
/usr/bin/fail2ban-client not installed
me tira el mensajito que no esta instalado bueno sigo buscando en
foro.....[2] dice que crear (i made a symlink to fail2ban-client)
root@mail:~# ln -s /usr/local/bin/fail2ban-client /usr/bin/fail2ban-client
root@mail:~# ln -s /usr/local/bin/fail2ban-server /usr/bin/fail2ban-server
a ver si inicia ahora probando
root@mail:~# /etc/init.d/fail2ban start
/etc/init.d/fail2ban: 36: .: Can't open /etc/rc.status
ups! (¬_¬) (¬_¬) no anda ya me perdí, por favor me puede ayudar por
donde puedo empezar a mirar? soy algo navatillo!
tenia que haberlo hecho como dice aquí [3] para desinstalar
manualmente, tambien encontre algo que dice bug algo asi en [4].
saludos
Ricardo
[1] http://www.fail2ban.org/wiki/index.php/MANUAL_0_8
[2] http://www.howtoforge.com/forums/archive/index.php/t-50588.html
[3] http://stackoverflow.com/questions/1550226/python-setup-py-uninstall
[4] http://osdir.com/ml/debian-bugs-dist/2010-02/msg08543.html
Reply to: