Fail2ban configs, your main configuration file that you should create and use is called jail.local
within your /etc/fail2ban
directory. We do use ipset
(iptables-ipset-proto6-allports
) instead of iptable for better performance.
We also use custom Fail2ban filters (should be put inside the filter.d
folder), see examples below...
Moreover, you can configure another action for each jail separately, like: action = %(action_)s
, which will stop sending emails to you.
You can also set the abuseipdb[abuseipdb_apikey=.., abuseipdb_category=...]
action for each jail, which is actually advised to report better stats to the abuse ip DB (assuming you report the correct category IDs, comma separated)!