Ban IP's after too many connections to a cowrie instance.
In its default config, point the jail to your cowrie.log and it will ban a source IP if it connected more than 40 times in the last 12 hours. The IP will be banned for 12 hours.
Clone the repo to your machine. if you're only using fail2ban for cowrie, you can just copy / clone the files to /etc/fail2ban/
.
Fail2ban needs to be installed