bar top left
bar top right
left curve
right curve
Bienvenido, Invitado

Why doesn't "yum install fail2ban" work?
(1 viendo) (1) Invitado
Abajo
Publicar respuesta
Publicar nuevo tema
Página: 1
TEMA: Why doesn't "yum install fail2ban" work?
*
#13374
Why doesn't "yum install fail2ban" work? hace 1 Año, 8 Meses Karma: 9
I wanted to see if I could install fail2ban (there are many pages that give varying instructions for doing so, unfortunately none are specifically for use with Elastix). Many of the pages say to use
yum install fail2ban
to install the program, but that doesn't work under Elastix. Why? (I am logged in as root when I try this, in case anyone is wondering).

I know it's possible to install it manually but I'm always afraid of messing something up, and besides, when you install it using yum then you can use yum to keep it updated.
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
wiseoldowl
Senior Boarder
Mensajes: 252
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Última edición: 23/11/2008 19:37 por wiseoldowl.
Reply Quote
 
#13393
Re:Why doesn't "yum install fail2ban" work? hace 1 Año, 8 Meses Karma: 36
can you attach the error to read it here?
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
rafael
Free Software is all about freedom
Administrator
Mensajes: 1386
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Sexo: Hombre Elastix Localización: Ecuador Cumpleaños: 10/11
Enlaces ocultos para usuarios no registrados. Inicie sesión o regístrese Aquí
Enlaces ocultos para usuarios no registrados. Inicie sesión o regístrese Aquí
Email contact: rbonifaz [at] elastix.org
IRC channels at freenode: #elastix #elastix-es
IRC User: rafael-ec
Follow us:
twitter.com/elastix identi.ca/elastix
twitter.com/elastix_es identi.ca/elastixes
facebook.com/elastix
Reply Quote
 
#13398
Re:Why doesn't hace 1 Año, 8 Meses Karma: 9
rafael wrote:
can you attach the error to read it here?

[root@phoneserver ~]# yum install fail2ban
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: pubmirrors.reflected.net
* updates: mirror.anl.gov
* addons: centos.mirrors.tds.net
* elastix: repo.elastix.org
* extras: holmes.umflint.edu
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
elastix 100% |=========================| 1.1 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from Elastix RPM Repository for CentOS
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Install Process
Parsing package install arguments
No package fail2ban available.
Nothing to do
[root@phoneserver ~]#

I finally decided to install it without using yum, just don't like doing that because it won't update when I update everything else.
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
wiseoldowl
Senior Boarder
Mensajes: 252
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Última edición: 24/11/2008 14:50 por wiseoldowl.
Reply Quote
 
#13401
Re:Why doesn't hace 1 Año, 8 Meses Karma: 36
I believe fail2ban are not included on the default centOS distribution and you should enable dag repositories to install it via yum. To enable dag repositories first install this rpm:

rpm -Uvh dag.wieers.com/rpm/packages/rpmforge-rel....6-1.el5.rf.i386.rpm

That would install a file inside /etc/yum.repos.d/ that would configure yum to enable dags repos. Then you can install or update fail2ban with yum.

Hope this helps.

regards,

Rafael
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
rafael
Free Software is all about freedom
Administrator
Mensajes: 1386
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Sexo: Hombre Elastix Localización: Ecuador Cumpleaños: 10/11
Enlaces ocultos para usuarios no registrados. Inicie sesión o regístrese Aquí
Enlaces ocultos para usuarios no registrados. Inicie sesión o regístrese Aquí
Email contact: rbonifaz [at] elastix.org
IRC channels at freenode: #elastix #elastix-es
IRC User: rafael-ec
Follow us:
twitter.com/elastix identi.ca/elastix
twitter.com/elastix_es identi.ca/elastixes
facebook.com/elastix
Reply Quote
 
#13419
Re:Why doesn't "yum install fail2ban" work? hace 1 Año, 8 Meses Karma: 9
Thanks, Rafael. As I said I had already installed it, but this is good to know for future reference.

I might suggest that fail2ban would be another of those packages that would be good to have in a default Elastix installation, particularly if it came pre-configured (or had a small configuration utility or script) to impede brute force attacks via SIP and IAX. The main thing would be to make sure it never accidentally bans anyone on the local subnet (or at least not the system administrator!), and it would also be nice to be able to remove a ban via the GUI (in case you are at a remote location and accidentally plug in a device with a misconfigured user ID or password), as well as do other basic configuration.

Anyway, I think at some point we are all going to have to be a bit more security conscious because there are bad people out there, and fail2ban is one relatively easy way to at least slow them down to the point where it might take them more than one lifetime to crack your system!
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
wiseoldowl
Senior Boarder
Mensajes: 252
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Reply Quote
 
#15354
Re:Why doesn't hace 1 Año, 6 Meses Karma: 31
rafael wrote:
To enable dag repositories first install this rpm:

rpm -Uvh dag.wieers.com/rpm/packages/rpmforge-rel....6-1.el5.rf.i386.rpm

That would install a file inside /etc/yum.repos.d/ that would configure yum to enable dags repos. Then you can install or update fail2ban with yum.


Rafael[/quote]

did not work for me, I had to use the following instead:

rpm -Uhv apt.sw.be/redhat/el5/en/i386/rpmforge/RP....6-1.el5.rf.i386.rpm
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
Patrick_elx
Gold Boarder
Mensajes: 1083
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Sexo: Hombre Localización: Florida, USA
Reply Quote
 
#15356
Re:Why doesn't hace 1 Año, 6 Meses Karma: 5
I think adding repositories is a scarry thing to do as it could update a lot of things you may not want to do. Be sure that the repository is disabled by default. Then if you want to use it do yum --enablerepo=some_repo install blabla. This will keep yum from using all the repos and maybe updating things that could break stuff. Be careful out there.

Don
Introducir código aquí   
Por favor, aunque no se vea ningún BBcode ni botones de smiley, son usables igualmente
donhwyo
Senior Boarder
Mensajes: 261
graphgraph
Usuario Offline Presiona aquí para ver el perfil de este usuario
Reply Quote
 
Arriba
Publicar respuesta
Publicar nuevo tema
Página: 1
Moderadores: ramoncio, rafael, Bob, dicko