fail2ban

Scans log files and bans IPs showing malicious signs

brewmacoslinux
Try with needOr install directly
Source

About

Scan log files and ban IPs showing malicious signs

Commands

fail2ban-clientfail2ban-serverfail2ban-regex

Examples

Start the fail2ban service$ fail2ban-client start
Check status of all jails$ fail2ban-client status
Test a regex pattern against log files$ fail2ban-regex /var/log/auth.log 'failregex_pattern'