Block globally reported hack attempts using your local iptables firewall rules

# curl -s https://gist.githubusercontent.com/klepsydra/ecf975984b32b1c8291a/raw > /etc/cron.daily/sync-fail2ban
# chmod a+x /etc/cron.daily/sync-fail2ban

Initial run manually:

# /etc/cron.daily/sync-fail2ban

The following day, check /tmp/iptables.fail2ban.log file to see who’s been blocked.
The lists are stored locally in /etc/fail2ban/blacklist.*