d wrote:
> This web page might give you some ideas.
>
> http://www.itc.virginia.edu/unixsys/sec/hosts.html
>
Blocking with hosts.deny can be much too late if someone is exploiting a
security hole. (e.g. the SSH V1 exploit from a few years back.) My
personal take on this is
1) Only allow SSH through my hardware firewall. Nothing else. No
telnet, rlogin, ftp,...
2) Only allow SSH V2.
3) Use iptables to restrict access. (Before I did this, the number of
breakin attempts was scary.) Here is the relevant fragment:
-A INPUT -p tcp -m tcp --dport 22 --syn -j ssh-rules
# SSH rules.
-A ssh-rules -s 192.168.1.0/24 -j ACCEPT
-A ssh-rules -j DROP
Without a hardware firewall I would be much tougher on SYN packets.