From 387874ecfd614769dd493d4c0a4a5aa3280508e0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 28 Sep 2022 16:36:51 -0700 Subject: [PATCH] fail2ban: Make fail2ban log to journald - Recommendation to use 'sysout' as log target in order to log to systemd journal comes from the fail2ban.service file. Tests: - Install the changes and restart fail2ban. Notice that journalctl shows new log lines. - Logged to /var/log/fail2ban.log has stopped. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- .../security/data/etc/fail2ban/fail2ban.d/freedombox.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 plinth/modules/security/data/etc/fail2ban/fail2ban.d/freedombox.conf diff --git a/plinth/modules/security/data/etc/fail2ban/fail2ban.d/freedombox.conf b/plinth/modules/security/data/etc/fail2ban/fail2ban.d/freedombox.conf new file mode 100644 index 000000000..277d4a0ad --- /dev/null +++ b/plinth/modules/security/data/etc/fail2ban/fail2ban.d/freedombox.conf @@ -0,0 +1,2 @@ +[DEFAULT] +logtarget = sysout