Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Feb 16, 2015 9:09 pm 
Offline
Newbie

Joined: Mon Aug 11, 2014 10:57 am
Posts: 3
Hi,

Not sure if this post goes here. I've trying to install Fail2Ban but for some reason I always get the same error. My Linode is a Centos 7 (a new Linode) and this is the output when I try to install Fail2Ban:

Code:
[root@localhost ~]# sudo service fail2ban restart
Redirecting to /bin/systemctl restart  fail2ban.service
Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details.

--------------------------------------------------

[root@localhost ~]# systemctl status fail2ban.service
fail2ban.service - Fail2Ban Service
   Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; disabled)
   Active: failed (Result: start-limit) since Mon 2015-02-16 21:40:09 UTC; 30s ago
     Docs: man:fail2ban(1)
  Process: 30270 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)

Feb 16 21:40:08 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
Feb 16 21:40:08 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Feb 16 21:40:09 localhost.localdomain systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Stopping Fail2Ban Service...
Feb 16 21:40:09 localhost.localdomain systemd[1]: Starting Fail2Ban Service...
Feb 16 21:40:09 localhost.localdomain systemd[1]: fail2ban.service start request repeated too quickly, refusing to start.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.

--------------------------------------------------

[root@localhost ~]# journalctl -xn
-- Logs begin at Mon 2015-02-16 16:49:32 UTC, end at Mon 2015-02-16 21:40:09 UTC. --
Feb 16 21:40:08 localhost.localdomain fail2ban-client[30270]: 'enabled = true\n'
Feb 16 21:40:08 localhost.localdomain systemd[1]: fail2ban.service: control process exited, code=exited status=255
Feb 16 21:40:08 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
Feb 16 21:40:08 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Feb 16 21:40:09 localhost.localdomain systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Stopping Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun shutting down.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun starting up.
Feb 16 21:40:09 localhost.localdomain systemd[1]: fail2ban.service start request repeated too quickly, refusing to start.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
Feb 16 21:40:09 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.


Is there I'm doing wrong here? Thanks in advance!


Top
   
PostPosted: Wed Feb 18, 2015 10:01 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Where are you installing fail2ban from? EPEL?

I know of one CentOS7 install where fail2ban from EPEL is working, but I wasn't the one to set it up so I don't know if any special fiddling was needed to make it start. I did have to manually fool with the bantime parameter.


Top
   
PostPosted: Fri Mar 13, 2015 12:08 am 
Offline
Newbie

Joined: Mon Aug 11, 2014 10:57 am
Posts: 3
It is weird, I tried all ways. Is there some final guide to install fail2ban in CentOS 7?


Top
   
PostPosted: Wed Mar 25, 2015 7:53 am 
Offline
Senior Newbie

Joined: Tue Mar 16, 2010 5:15 am
Posts: 5
Location: Melbourne, Australia
Try this:

Code:
setenforce 0
service fail2ban start


What is the result of that?

Note, this will turn off SELinux until the system is rebooted, you could/should switch it back on after via
Code:
setenforce 1


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group