Randomly decided to check on my home server's logs and general status, I haven't been using it for much lately so its just been sitting there open to the world.. of-course with some basic security running on it.
694 ip addresses have been added to the blacklist since sometime last fall via customized portsentry and iptables, which is both awesome and a little crazy.
Essentially all traffic to my network hits this box first (Gentoo Linux built on an old dell server), and portsentry is running in paranoid mode with the following ports on alert:
TCP_PORTS="11,15,21,23,79,110,111,119,135,143,161,445,540,635,1080,1524,2000,2222,3306,3389,5742,6667,11698,12345,12346,20034,27665,31337,32771,32772,32773,32774,35175,40421,43966,48618,43548,49655,49724,50070,50344,54320"
UDP_PORTS="1,7,9,69,161,162,513,635,640,641,700,37444,34555,31335,32770,32771,32772,32773,32774,31337,54321"
and set to execute:
#iptables -A INPUT -s $1 -j BLACKLIST
Whenever an outside system hits any of those ports for any reason (portsentry actually calls a script called banhammer.sh that contains that command along with a few other minor details). That iptables script adds the source IP address to the blacklist chain (which all input other than ssh is sent to), which in turn logs and drops any matched IP address attempting to connect.
So, 694 attempted unauthorized connections or portscans in the last few months, not one successful intrusion, I suppose that's not a bad record to have for a development box sitting in my living-room thats not really being used for much right now.
-------
Note: I dont use this setup for any production boxes, just for fun security metrics. In production i recommend a little linux security daemon called "fail2ban"... but that's another story.