NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ssh scans



On Mon, Oct 26, 2009 at 2:42 PM, David Wetzel <dave%turbocat.de@localhost> 
wrote:
> Hi,
>
> I am seeing a lot of ssh scans and I am wondering if somebody has a solution
> like adding the bad hosts temporary to pf.conf or so?

Check out pf.conf's man page . . . specifically, the "Stateful
Tracking Options" section. You can populate a table of "bad" addresses
in terms of connection rate (as well as for other things).

>
>
> see for yourself:
>
> cat /var/log/authlog | grep -i failed | grep user | sed "s/.*from\ //g" |
> sed "s/ port .*//g" | sort | uniq -c
>
> David
>
>


Home | Main Index | Thread Index | Old Index