Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to use a linux software that monitors logs like http, ssh, etc and if it detects that someone is trying to use brute force, it blocks that ip by adding a rule to iptables. I forgot what that software is called. It's opensource and free.

share|improve this question
up vote 6 down vote accepted

fail2ban does that, although I don't think it's the only such tool. (Amazed mentioned DenyHosts, although it seems to be SSH specific.)

share|improve this answer
Thank you! that was the one I was thinking of. – David Apr 18 '11 at 15:47
If that's the answer you needed, good etiquette here is to mark it as the accepted answer. – Caleb Apr 18 '11 at 16:14
There's also denyhosts – Andrew Lambert Apr 18 '11 at 23:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.