diff --git a/config/jail.conf b/config/jail.conf index 177db4c4..e7568fa7 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -365,6 +365,14 @@ action = iptables[name=mysql, port=3306, protocol=tcp] logpath = /var/log/mysqld.log maxretry = 5 +# If using mysql syslog [mysql_safe] has syslog in /etc/my.cnf +[mysqld-syslog-iptables] + +enabled = false +filter = mysqld-auth +action = iptables[name=mysql, port=3306, protocol=tcp] +logpath = /var/log/daemon.log +maxretry = 5 # Jail for more extended banning of persistent abusers # !!! WARNING !!!