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. |

| Subject: | Re: OpenSSH -- a way to block recurrent login failures? |
|---|---|
| Date: | Sun, 26 Sep 2004 01:23:11 +0200 |
On 21-09-2004 at 10:02:22AM -0400, Victor Danilchenko wrote: VD> Hi, VD> VD> We are looking for a way to temporarily block hosts from which VD> we receive a given number of sequential failed login attempts, not VD> necessarily within the same SSH session (so MaxAuthTries is not enough). VD> The best solution I could come up with so far would be to run OpenSSH VD> through TCPWrappers, and set up a log watcher daemon which would edit VD> /etc/hosts.deny on the fly based on the tracked number of failed logins VD> for each logged host. VD> VD> Is there a better solution known for the sort of problems we VD> have been plagued with lately -- repeated brute-force crack attempts VD> from remote hosts? I looked on FreshMeat and I searched the mailing VD> lists, only to come up empty-handed. VD> mkfifo /dev/auth Add to syslog.conf: auth,authpriv.* |/dev/auth reload syslog Now write simple program which reads data from fifo (/dev/auth) and inserts iptables (ipf) rules (perl will be the best). Your tool blocks IP's in real time. I wrote something similar for POP-before-SMTP: http://www.bmk.bz/logrelay-pop3/ If You have no time try portsentry. Best regards, Bartek. -- If You want to verify authentication of my e-mail visit: www.bmk.bicom.pl to get from there my public key.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Locking down ssh config in large env, Bartek Krajnik |
|---|---|
| Next by Date: | Re: how to use x11 forwarding?, Keith Duffin |
| Previous by Thread: | Re: OpenSSH -- a way to block recurrent login failures?, Victor Danilchenko |
| Next by Thread: | RE: OpenSSH -- a way to block recurrent login failures?, Wilson, Richard E |
| Indexes: | [Date] [Thread] [Top] [All Lists] |