Automation of some error conditions

Your router has a dynamic firewall, if enabled it will block what is defined as suspicious.
Check sentilel and dynamic firewall for detailes.

If you want to auto ban specifics check out fail2ban package.
There is some writing about it here on the forum, e.g.