mirror of https://github.com/fail2ban/fail2ban
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
parent
3f4d179612
commit
04438cd1a1
|
@ -599,7 +599,8 @@ logpath = /var/log/asterisk/messages
|
||||||
maxretry = 10
|
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-error=/var/log/mysqld.log
|
||||||
# log-warning = 2
|
# log-warning = 2
|
||||||
[mysqld-auth]
|
[mysqld-auth]
|
||||||
|
@ -609,8 +610,12 @@ logpath = /var/log/mysqld.log
|
||||||
maxretry = 5
|
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
|
filter = mysqld-auth
|
||||||
logpath = /var/log/daemon.log
|
logpath = /var/log/daemon.log
|
||||||
maxretry = 5
|
maxretry = 5
|
||||||
|
|
Loading…
Reference in New Issue