| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
A number of answers came in, for which many thanks.
The most common solution is to run sshd on a non-standard port. As Martin Maney noted, 'this offers no protection if someone is actually targeting you and "notices" the odd port(s), but against dumb, scripted shotgun attacks this should be highly effective'.
Many recommend disabling password-based authentication entirely, forcing the use of RSA/DSA keys instead.
Bjorn Tore Sund has an elegant solution using the "recent" modules in iptables. This module does appear to be in my kernel (2.4.29), so I'm in the process of recompiling and, if this works, I will post code fragments after testing.
Some use tcp_wrappers, others block netblocks that correspond to countries full of script kiddies, but those doesn't meet my requirements (still open to everyone, but less vulnerable to guessing attempts).
Mike Brodbelt recommends using the sshd configuration option "MaxStartups", although this won't allow me to limit by connecting host, only the total number of unauthenticated connections. This seems to me to make it quite easy for someone else to DoS me by SYN flooding, and individual password guessers seem to be more serial than parallel, so it probably won't stop them. Lance Levsen suggests an iptables "limit"-based solution which seems to have the same drawbacks.
Mike (and others) also recommends one-time passwords, which is an extremely good idea that I'm too lazy to implement (and one I don't think some of my users are quite ready for).
Greg Dick has a small daemon that adjusts iptables rules in real-time, based on grepping denies from the relevant logfile.
Specifically, many thanks to Franky Liedeke (I'm guessing the last name. I hope it's right), Mike Kercher, Wayne E Goodrich, Will H. Backman, David Boutcher, Mike Brodbelt, Greg Dick, Jeffrey L. Taylor, Martin Maney, Lance Levsen, Cary Penniman, Clif Smith, and especially to Bjorn Tore Sund, who did a fair amount of digging around for version numbers for me.
--
Tom Yates Cambridge, UK. _______________________________________________ LinuxManagers mailing list - http://www.linuxmanagers.org submissions: LinuxManagers@xxxxxxxxxxxxxxxxx subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
[Home] [Kernel List] [Linux SCSI] [Video 4 Linux] [Linux Admin] [Yosemite News] [Motherboards]