Gentoo Archives: gentoo-security

From: Oscar Carlsson <monotux@×××××.com>
To: gentoo-security@l.g.o
Subject: Re: [gentoo-security] [OT?] automatically firewalling off IPs
Date: Mon, 31 Oct 2011 03:55:55
Message-Id: cdfecd450510030525x1516cb50o9a2b76ee22f2f0ef@mail.gmail.com
In Reply to: [gentoo-security] [OT?] automatically firewalling off IPs by Jeremy Brake
This is not firewall specific, but it makes me sleep better at night :)

Add this to /etc/ssh/sshd_config
AllowUsers youruser anotheruser

Put all the users who should be able to ssh into your machine, and no
one but them can log in... :)
pam_tally might be good to take a look at, also.

Good luck

On 10/2/05, Jeremy Brake <gentoolists@×××××××××××.nz> wrote:
> Hey all, > > I'm looking for an app/script which can monitor for failed ssh logins, > and block using IPTables for $time after $number of failed logins (an > exclusion list would be handy as well) so that I can put a quick stop to > these niggly brute-force ssh "attacks" I seem to be getting more and > more often. > > Anyone have any ideas? > > Thanks, Jeremy B > -- > gentoo-security@g.o mailing list > >
-- gentoo-security@g.o mailing list