At 1:48 PM +0100 11/29/05, Bruno Schaeffer wrote:
Hi,
I am running a Mac OS X Tiger Server and I am increasingly observing
attacks trying to log in via SSH and guessing user ids and passwords.
The server is only accessible via SSH from the Internet and only two
user ids whose passwords are well chosen can log in via SSH.
Nevertheless, I would like to limit those attacks since they also
consume quite some resources, esp. bandwidth. What are you practicing
or suggesting? I am using the firewall which is included with Mac OS X.
Turn your computer off and place it in a vault is the best security.
Given that this is generally deemed inacceptable, you deal.
People ring doorbells and call wrong numbers all the time? What on
earth are we to do? Panic? The might be calling us when we expect an
important call, heck that's DoS!
Use a firewall, a real one, and protect your network. ipfw is not a
firewall, it's a packet filter. There's a significant difference. Drop
traffic you don't want, don't deny it.
Configure sshd to only permit certain accounts and IP addresses to use
ssh inbound. This is highly preferable to doing this in ipfw. Conside
running ssh on a different port, though this is a bit silly if you're
already denying this using other methods.
Prohibit logins to root and other sensitive accounts like your admin
account from all sources other than localhost. Connect using an
unprivileged account and then su or ssh root@localhost once logged
into such an account instead.
Run snort.
Realize that these feeble attempts are rather primitive.