Fail2ban for MariaDB

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

Fail2ban for MariaDB

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

Hello,
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

[mysqld-auth]
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.

BShT
Posts: 265
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

https://www.systutorials.com/docs/linux ... ban-regex/

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

Post Reply

Return to “CentOS 8 - Security Support”