Fail2ban for MariaDB

Support for security such as Firewalls and securing linux
Post Reply
Posts: 663
Joined: 2014/11/24 11:04:37

Fail2ban for MariaDB

Post by hack3rcon » 2020/08/18 05:25:52

I want to configure the Fail2ban for the MariaDB. I created a "mariadb.conf" file under the "/etc/fail2ban/jail.d" directory with below content:

Code: Select all

enabled = true
filter   = mysqld-auth
port     = 3306
maxretry = 3
bantime = 600
logpath  = /var/log/mariadb/mariadb.log
Am I on a right track?

Thank you.

Posts: 278
Joined: 2019/10/09 12:31:40

Re: Fail2ban for MariaDB

Post by BShT » 2020/08/20 12:39:46

test your rule and regex ... ban-regex/

use complete path to log and regex, it will not guess

Post Reply

Return to “CentOS 8 - Security Support”