I wrote a rule for Hsphere BFD that will monitor several services in one
ssh
proftpd
pop/imap
tcpconnection
mailqueue
And also modification to use 2 level of setting
Low: Alert via email
High: Alert and Block with ipfw on specific port of that service with auto unblock in x minutes.
Sample of Alert
The 211.105.5.113 has exceeded High:30 at 155 attemps via FTP : Administrator on [servername].
Following actions have performed:
Blocked the attacker at firewall using: /sbin/ipfw add 21340 set 2 deny ip from 211.105.5.113 to any dst-port 21
Set auto unblock of attacker at firewall using: /sbin/ipfw delete 21340
Notified admin at: [emailaddress]
Relevant Logfile Information:
Nov 3 13:39:05 [srv] proftpd[27836]: [servername] (211.105.5.113[211.105.5.113]) - USER Administrator: no such user found from 211.105.5.113 [211.105.5.113] to [serverip]:21
.....