From 81a38a2e2f8ed5e7d839720b9975ab909d90cf36 Mon Sep 17 00:00:00 2001 From: JES <37674956+EmsTatay@users.noreply.github.com> Date: Mon, 2 Apr 2018 10:47:29 -0700 Subject: [PATCH] piwik2.conf sample jail configuration for fail2 ban --- piwik2.conf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 piwik2.conf diff --git a/piwik2.conf b/piwik2.conf new file mode 100644 index 0000000..93d8114 --- /dev/null +++ b/piwik2.conf @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------- +# Fail2Ban jail for piwik /etc/fail2ban/jail.d/piwik2.conf +# For use with filter /etc/fail2ban/filter.d/piwik-2018A.conf +# ------------------------------------------------------------------------- +# NOTE: The `logpath` parameter, provided below, is a common path, +# However, it *may* not be the correct path on YOUR server setup. +# Adjust accordingly! +# Common Paths: +# - Debian/Ubuntu/FreeBSD /var/log/auth.log +# - Fedora /var/log/secure +# - macOS/OS X /var/log/secure.log +# ------------------------------------------------------------------------- +# +[piwik-2018A] +enabled = true +filter = piwik-2018A +logpath = /full/path/to/your/piwik/installation/tmp/logs/piwik.log +maxretry = 3 +port = http,https