diff --git a/ChangeLog b/ChangeLog index 5aa24b51..4b1e5e61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,7 @@ releases. ### Enhancements * action.d/cloudflare.conf - Cloudflare API v4 implementation (gh-1651) * filter.d/kerio.conf - filter extended with new rules (see gh-1455) +* filter.d/phpmyadmin-syslog.conf - new filter for phpMyAdmin using syslog for auth logging ver. 0.9.7 (2017/05/11) - awaiting-victory diff --git a/config/filter.d/phpmyadmin-syslog.conf b/config/filter.d/phpmyadmin-syslog.conf new file mode 100644 index 00000000..79eac71a --- /dev/null +++ b/config/filter.d/phpmyadmin-syslog.conf @@ -0,0 +1,17 @@ +# Fail2Ban fitler for the phpMyAdmin-syslog +# + +[INCLUDES] + +before = common.conf + +[Definition] + +_daemon = phpMyAdmin + +failregex = ^%(__prefix_line)suser denied: .* \(mysql-denied\) from \s*$ + +ignoreregex = + + +# Author: Pavel Mihadyuk diff --git a/fail2ban/tests/files/logs/phpmyadmin-syslog.conf b/fail2ban/tests/files/logs/phpmyadmin-syslog.conf new file mode 100644 index 00000000..eef6e3b2 --- /dev/null +++ b/fail2ban/tests/files/logs/phpmyadmin-syslog.conf @@ -0,0 +1,2 @@ +# failJSON: { "time": "2017-08-22T14:50:22", "match": true , "host": "81.62.21.201" } +Aug 22 14:50:22 eurostream phpMyAdmin[16358]: user denied: root (mysql-denied) from 81.62.21.201