Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: fail2ban 100% cpu...
PostPosted: Mon Jun 17, 2013 4:00 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
Hi all,
I always used fail2ban without any problems, today I noticed after an update
that fail2ban is pushing one of my eight core to 100%. :shock:

is there someone experiencing this problem?
any idea?


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Mon Jun 17, 2013 4:48 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
My idea would be to remove fail2ban.

Unless you have password authentication turned on with guessable user names and passwords it doesn't improve security. At best it delays attackers and gives you a false sense of security. If you want to stop password guessing attempts flooding your logs then set up connection rate limiting with iptables. Iptables is fast, kernel level, memory efficient niceness, and doesn't require daemons that go bananas and kill your CPU.


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Mon Jun 17, 2013 5:22 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
sednet wrote:
My idea would be to remove fail2ban.

Unless you have password authentication turned on with guessable user names and passwords it doesn't improve security. At best it delays attackers and gives you a false sense of security. If you want to stop password guessing attempts flooding your logs then set up connection rate limiting with iptables. Iptables is fast, kernel level, memory efficient niceness, and doesn't require daemons that go bananas and kill your CPU.


I have password auth on cacti, phpMyAdmin and squirrelmail.
I solved the 100% by forcing logrotate, too many logs to inspect :)


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Tue Jun 18, 2013 12:10 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Bind cacti, phpmyadmin and squirrel mail to localhost and access them over an ssh tunnel. Far more secure ;)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Tue Jun 18, 2013 3:15 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:32 pm
Posts: 737
Location: Italy
obs wrote:
Bind cacti, phpmyadmin and squirrel mail to localhost and access them over an ssh tunnel. Far more secure ;)


I don't need nasa security, I need a secure system only.
Putting squirrelmail or even phpmyadmin accessible only via ssh tunnel is a nonsense.
Webmail is useful if accessible from everywhere using a browser only, phpmyadmin is something similar.


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Fri Jun 21, 2013 9:31 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
sblantipodi wrote:
obs wrote:
Bind cacti, phpmyadmin and squirrel mail to localhost and access them over an ssh tunnel. Far more secure ;)


I don't need nasa security, I need a secure system only.
Putting squirrelmail or even phpmyadmin accessible only via ssh tunnel is a nonsense.
Webmail is useful if accessible from everywhere using a browser only, phpmyadmin is something similar.



There have been some serious security holes in phpmyadmin that could possibly be used to execute arbitrary php on your server. Phpmyadmin really should not be exposed to the internet, accessing it over a SSH tunnel instead isn't a bad idea. Squirrelmail should be safe as long as you use it over SSL and trust every machine you type your password into.


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Sat Jun 22, 2013 9:15 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
You know, it may be silly, but I keep all such "fragile" services on SSL, and behind plain ol' .htpasswd.
Just so in order to hit security holes in the app, they first need to also hit a security hole in Apache.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Sun Jun 23, 2013 4:25 pm 
Offline

Joined: Sun Jun 23, 2013 4:19 pm
Posts: 1
sblantipodi wrote:
Webmail is useful if accessible from everywhere using a browser only, phpmyadmin is something similar.



If you don't like the ideas suggested, at least consider moving the phpmyadmin URL to something less guessable. These instructions might help (it's very easy to do).


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Mon Jun 24, 2013 7:32 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
deleted


Last edited by zunzun on Sun Aug 04, 2013 8:54 pm, edited 1 time in total.

Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Mon Jun 24, 2013 7:59 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
sblantipodi wrote:
obs wrote:
Bind cacti, phpmyadmin and squirrel mail to localhost and access them over an ssh tunnel. Far more secure ;)


I don't need nasa security, I need a secure system only.


Security is not just for space travel :-)


Top
   
 Post subject: Re: fail2ban 100% cpu...
PostPosted: Mon Jun 24, 2013 11:22 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
zunzun wrote:
http://www.urbandictionary.com/define.php?term=Osterize


Given that it's Urban Dictionary, the practice described (while still NSFW) was relatively tame compared to what I was expecting them to come up with for this:

Image


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


Who is online

Users browsing this forum: No registered users and 1 guest


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