From 04438cd1a198febe2aaf4eed7876bf7b0c22f4ba Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Sat, 30 Nov 2013 10:00:59 +1100 Subject: [PATCH] BF/ENH: mysql jail - rename to mysql-syslog to be consistent with 0.8.13. Add port to syslog defination. Document mysql configuration required for mysql jails --- config/jail.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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