We are currently running a snort box and a cisco router. We have the snort box setup where if it sees more than 20 smtp or ssh connections from a single IP it will ssh to the Cisco and write an access list entry that blocks that ip. 15 minutes later it sshes back and removes the access list entry. This has cut down on spam and ssh attacks. Can anything like this be accomplished with Mikrotik?
You can set firewall rule that counts connection and when number is reached it can add that IP to address list. Another roule would block connections from IP’s in address list. When adding address record you can specify timeout.