diff --git a/config/jail.conf b/config/jail.conf index 07389f9c..84351360 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -599,7 +599,8 @@ logpath = /var/log/asterisk/messages maxretry = 10 -# To log wrong MySQL access attempts add to /etc/my.cnf: +# To log wrong MySQL access attempts add to /etc/my.cnf in [mysqld] or +# equivalent section: # log-error=/var/log/mysqld.log # log-warning = 2 [mysqld-auth] @@ -609,8 +610,12 @@ logpath = /var/log/mysqld.log maxretry = 5 -[mysqld-syslog-iptables] +# This requires my.cnf to contain (check the mysql version supports this) +# [mysqld_safe] +# syslog +[mysqld-syslog] +port = 3306 filter = mysqld-auth logpath = /var/log/daemon.log maxretry = 5