Bug 1269226 - fail2ban does not work out of box in a minimal Fedora 22 install
fail2ban does not work out of box in a minimal Fedora 22 install
Product: Fedora
Classification: Fedora
Component: fail2ban (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Orion Poplawski
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-10-06 14:05 EDT by Marcos Mello
Modified: 2016-07-19 14:07 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-07-19 14:07:23 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marcos Mello 2015-10-06 14:05:12 EDT
Fedora does not install a traditional syslog daemon by default for some time now.

For things work, fail2ban needs to depend on fail2ban-systemd or on a syslog implementation that provides /var/log/secure et al. We have a virtual package 'syslog' for that.

RHEL 7 still uses rsyslogd by default and a 'Requires: syslog' for EPEL 7 is not urgent.

For Fedora I do not know. fail2ban stopped depending on fail2ban-systemd recently because some program did log to the journal. But adding 'Requires: syslog' may be overkill for folks that would be happy using the journal...

Comment 1 Marcos Mello 2015-10-06 14:15:15 EDT
The use case is a simple sshd jail.
Comment 2 Orion Poplawski 2015-10-06 23:20:03 EDT
I'm not sure there is a good solution to this situation.  Perhaps the default for those jails that work with the journal could be set to the journal, but not others.
Comment 3 Marcos Mello 2015-10-07 05:48:11 EDT
The offending program 'jaila' logs where? journald captures syslog messages too (as well as all stout/stderr from services).

About syslog virtual package, I realise now systemd also provides it...
Comment 4 Orion Poplawski 2015-10-07 21:30:20 EDT
I really don't understand what you mean by "offending program 'jaila'".

That seems a bit strange that systemd provides syslog.  But then again, only one thing seems to require it at this point.
Comment 5 Orion Poplawski 2015-10-07 21:53:50 EDT
Filed https://github.com/fail2ban/fail2ban/pull/1213 as an idea to fix this.
Comment 6 Marcos Mello 2015-10-08 05:32:40 EDT
I was referring to
Comment 7 Marcos Mello 2015-10-08 05:45:44 EDT
Doh, sorry, it is a typo.

But anyway it should work for any daemon that logs to journald directly (libsystemd's sd_journal_*() family), to glibc's syslog facility or to stdout/stderr if the service does not have StandardOutput=/StandardError= configured to null.

journald is a syslog implementation after all. Just not a "traditional" one.
Comment 8 Marcos Mello 2015-10-08 06:07:23 EDT
I remembered this bug we should be aware of:

If the lack of space suffixes can affect fail2ban regexes I have no idea.
Comment 9 Orion Poplawski 2015-10-08 10:02:12 EDT
(In reply to Marcos Mello from comment #6)
> I was referring to
> http://pkgs.fedoraproject.org/cgit/fail2ban.git/commit/?id=4fa088d4

The problem was that apache httpd in particular (which is a large part of what people use fail2ban to match on) does not log to the journal.  People expected that simply enabling the jails they wanted would activate them, but this silently failed since they were monitoring the journal and nothing was logged there.
Comment 10 Fedora Update System 2016-03-09 16:32:19 EST
fail2ban-0.9.4-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-10b5fefb0d
Comment 11 Fedora Update System 2016-03-10 11:51:20 EST
fail2ban-0.9.4-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-10b5fefb0d
Comment 12 Fedora End Of Life 2016-07-19 14:07:23 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.