Skip to content
Snippets Groups Projects

fail2ban: Use a managed firewalld ipset

All threads resolved!

The firewalld direct interface is deprecated and will be removed in a future release[1]. Recently IPv4 connectivity inside docker containers on our runners broke and after some troubleshooting, the issue was pinpointed to the start of the fail2ban service. We also had issues in the past where sometimes firewalld had to be restarted after boot before network connectivity worked in libvirt on our runners.

The issuse may be due to a bug in the way fail2ban use the direct interface, a bug in firewalld or a combination thereof. Let's just avoid the direct interface altogether and create a clean separation, with firewalld handling the blocking and fail2ban maintaining the ipset.

[1] https://firewalld.org/documentation/man-pages/firewalld.direct.html

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 95e19506 - fail2ban: Use a managed firewalld ipset

    Compare with previous version

  • Kristian Klausen reset approvals from @foutrelis by pushing to the branch

    reset approvals from @foutrelis by pushing to the branch

  • Kristian Klausen resolved all threads

    resolved all threads

  • Christian Heusel requested review from @gromit

    requested review from @gromit

  • Christian Heusel approved this merge request

    approved this merge request

  • Christian Heusel resolved all threads

    resolved all threads

  • mentioned in issue #571 (closed)

  • Deployed on every nodes with the fail2ban role.

  • Kristian Klausen mentioned in commit ee91fbe3

    mentioned in commit ee91fbe3

  • Please register or sign in to reply
    Loading