Bug 1262476

Summary: if firewalld is restarted (either manually, or due to a package update), fail2ban will stop working
Product: [Fedora] Fedora Reporter: Andy Wang <dopey>
Component: fail2banAssignee: Orion Poplawski <orion>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: athmanem, Axel.Thimm, jonathan.underwood, orion, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 17:51:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andy Wang 2015-09-11 20:19:06 UTC
Description of problem:
fail2ban creates this rule at startup when configured for firewalld:
REJECT     tcp  --  any    any     anywhere             anywhere             multiport dports ssh match-set fail2ban-default src reject-with icmp-port-unreachable

If firewalld is restarted (manually, or as a result of a package update), this rule is not recreated until the next time fail2ban is restarted.  fail2ban  will continue to detect and attempt to ban access by adding to the ipset based on the jail rules, but this will do nothing as iptables no longer has the match-set rule.

Unfortunately this "silently compromises its security" (borrowed that phrase from another bug report.

Comment 1 Orion Poplawski 2015-09-11 20:47:57 UTC
I'll just note that this needs to be dealt with upstream - https://github.com/fail2ban/fail2ban/issues

Comment 2 Fedora Update System 2016-03-09 21:38:19 UTC
fail2ban-0.9.4-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-10b5fefb0d

Comment 3 Fedora Update System 2016-03-10 16:51:24 UTC
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 4 Fedora End Of Life 2016-07-19 17:51:43 UTC
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
bug.

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