On Wed, 22 Feb 2006 16:35:02 +0000, Paul Black wrote:
> Smythe de Winter wrote:
>> On Wed, 22 Feb 2006 15:53:17 +0000, Paul Black wrote:
>>
>>> Smythe de Winter wrote:
>>>> I am using the following IPTables rules in order to foil dictionary
>>>> attacks on my SSH server:
>>> You might try solving the problem in a slightly different way:
>>> http://www.denyhosts.net/
>>
>> Thanks for your suggestion. It is not clear to me that this will solve
>> my
>> problem. In addition, I find this solution too big, inelegant, intrusive
>> and significantly less performant than an IPTables one like the above.
>> Yes, I am not all that impressed by it.
>
> Why too big? It's a single script that reads a log file and adds entries
> to /etc/hosts.deny for TCP Wrappers to use.
>
> Why inelegant?
> Why intrusive?
> Why less performance?
>
> Don't see where you get these issues from.
I don't want to start a controversy here, especially bearing in mind that
your intention was to help, for which I am grateful to you.
I find the DenyHosts solution inelegant because of its requirements:
Python (big and slow) and SSH with tcp_wrappers support (which I don't
have); intrusive, because of its automatic modifications of
/etc/hosts.deny; less performant, because of its use of tcp_wrappers
(which, nice as they are, in my experience tend to slow things down), and
its potential to fill /etc/hosts.deny with entries that are no longer
relevant, and therefore result in wasted cycles devoted to them. I am
aware that things can be configured so that such entries are removed, but
that requires recurrent user intervention, which is, again, inelegant.
The three IPTables lines that I posted accomplish the same thing much
more succinctly. Most of the other stuff that DenyHosts does can be easily
done by checking one's logs.