sshd, security, and break-in attempts
Well, I finally got my games server up an running on it's own static IP address, outside the firewall and utterly clamped down. It only has two ports open, 5121 (for the Neverwinter Nights game server) and 22 for ssh.
The problem I'm experiencing is probably very common. sshd is configured to reject all connection attempts unless they're using my RSA2 key; all passwords are rejected, and root login is turned off.
In /var/log/secure, however, I get lots of this kind of rubbish:
Code:
Mar 21 20:01:11 nwn sshd[31846]: Illegal user ldap from ::ffff:61.141.52.33
Mar 21 20:01:12 nwn sshd[31846]: Illegal user netdump from ::ffff:61.141.52.33
Mar 21 20:30:08 nwn sshd[31846]: Illegal user test from ::ffff:82.79.186.248
Mar 21 20:30:08 nwn sshd[31846]: Illegal user test from ::ffff:82.79.186.248
and so on.
What (other than posting their IP addresses to a public forum such as this one) can be done?
Is it possible to intercept such attack lines with a script, route the IP through 'whois' and send an automated report to their 'abuse@...' address for their ISP?
Is it possible to clamp down on these by limiting connections in IPtables to known IP addresses (I only ever connect from my primary static IP address anyway...)? This is an FC4 box, and I used the firewall tool (system-config-security) to turn off all access except ssh and the above mentioned port.
Is it possible (and this is my fave) to intercept multiple connection attempts, and immediately fire-back a stream of packets that melts their hard disk, fries their processor and video card, and sets fire to their monitor?
A few pointers here would be much appreciated.