Bug#1037437: From fresh bookworm install default sshd jail in fail2ban won’t work without rsyslog installed
588 views
Skip to first unread message
Pèpié Trente Quatre
unread,
Jun 12, 2023, 5:10:04 PM6/12/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Package: fail2ban
Version: 1.0.2-2
From fresh bookworm installation, In fail2ban, the sshd jail which is enable by default won’t work without rsyslog installed. The fail2ban service then fails to start.
José Miguel Gonçalves
unread,
Jul 7, 2023, 5:20:04 AM7/7/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi,
As Debian opted by systemd journal as the default logging mechanism for
bookworm, maybe a better option would be to change the default
configuration in '/etc/fail2ban/jail.conf' to select journal as the
logging source, i.e., instead of setting 'backend = auto', set 'backend
= systemd'.
Best regards,
José Gonçalves
Jeremy Davis
unread,
Jul 13, 2023, 6:20:06 PM7/13/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
FWIW it appears that this bug is essentially a duplicate of #770171:
Can you confirm that the current default bookworm fail2ban config/regex
works with sshd with just this change (to 'backend' in
/etc/fail2ban/jail.conf)? Or are further adjustments required?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi Jeremy,
On 13/07/23 23:01, Jeremy Davis wrote:
> Can you confirm that the current default bookworm fail2ban
> config/regex works with sshd with just this change (to 'backend' in
> /etc/fail2ban/jail.conf)? Or are further adjustments required?
Yes, I can confirm that fail2ban sshd jail works fine using the default
config and just changing the 'backend' to 'systemd'.
Best regards,
José Gonçalves
Jeremy Davis
unread,
Jul 14, 2023, 4:31:27 PM7/14/23
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Thank you José,
I really appreciate you taking the time to confirm.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
As a follow up (in case anyone hits the same issue as me):
After setting 'backend = systemd' fail2ban refused to start!?
It turns out that when using 'backend = systemd', python3-systemd is a
hard requirement. It is a recommended package for fail2ban but I have
recommends disabled by default, so had to manually install it.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
i wonder if a missing python3-systemd is the only reason for this bug: fail2ban + sshd works fine with backend=auto for me, and i have recommends installed.
So rather than changing the default 'backend', debian should just promote python3-systemd to 'depends'.