diff --git a/config/filter.d/mysqld.conf b/config/filter.d/mysqld-auth.conf similarity index 100% rename from config/filter.d/mysqld.conf rename to config/filter.d/mysqld-auth.conf diff --git a/config/jail.conf b/config/jail.conf index 4c1528f1..4399d0bd 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -345,13 +345,13 @@ action = iptables-multiport[name=asterisk-udp, port="5060,5061", protocol=udp] logpath = /var/log/asterisk/messages maxretry = 10 -# For log wrong MySQL access add to /etc/my.cnf: +# To log wrong MySQL access attempts add to /etc/my.cnf: # log-error=/var/log/mysqld.log # log-warning = 2 [mysqld-iptables] enabled = false -filter = mysqld +filter = mysqld-auth action = iptables[name=mysql, port=3306, protocol=tcp] sendmail-whois[name=MySQL, dest=root, sender=fail2ban@example.com] logpath = /var/log/mysqld.log