Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: OpenSSH -- a way to block recurrent login failures?

Subject: Re: OpenSSH -- a way to block recurrent login failures?
Date: Thu, 23 Sep 2004 09:38:57 +0300
For linux there is a portsentry and hostsentry package that with little fix can do the job

Greg Wooledge wrote:
On Tue, Sep 21, 2004 at 10:02:22AM -0400, Victor Danilchenko wrote:

The best solution I could come up with so far would be to run OpenSSH
through TCPWrappers, and set up a log watcher daemon which would edit
/etc/hosts.deny on the fly based on the tracked number of failed logins
for each logged host.


If you get OpenSSH to log every failed login attempt, in real time,
then any number of possibilities will be opened up.  But instead of
using hosts.deny (*barf*), I'd use a table in OpenBSD's PF rules.
You could have a daemon (cron job, whatever) that analyzes the log file
and adds entries to the PF table on the fly.

This is very similar to how OpenBSD's greylisting (spamd) works, in
fact.  You can see a more detailed overview here:
http://www.openbsd.org/cgi-bin/man.cgi?query=spamd&apropos=0&sektion=8&manpath=OpenBSD+Current&arch=i386&format=html

I would imagine that something similar could be done with iptables on
the Linux side of the world, but I wouldn't know how.




--
Milen Minev
Istar-Link Ltd
Internet Division
+359887673824
milen@istar-link.com

<Prev in Thread] Current Thread [Next in Thread>