linuxserver / docker-fail2ban

GNU General Public License v3.0
57 stars 7 forks source link

recidive jail not working with -vv #10

Closed xolom closed 1 year ago

xolom commented 1 year ago

Execution of fail2ban-client with argument -vv results in different log output formatting and therefore recidive jail doesn't work as expected.

My workaround was a custom Dockerfile:

FROM linuxserver/fail2ban:latest

RUN sed -i 's/ -vv//g' /etc/s6-overlay/s6-rc.d/svc-fail2ban/run
github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nemchik commented 1 year ago

Looking at https://github.com/linuxserver/fail2ban-confs/blob/master/filter.d/recidive.conf it seems its purpose is something similar to incremental banning.

I am a bit hesitant to remove the verbosity as it can be very useful when troubleshooting.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity

nemchik commented 1 year ago

I'll add something to adjust verbosity.

nemchik commented 1 year ago

This should be solved by https://github.com/linuxserver/docker-fail2ban/pull/17

We'll allow users to specify whatever verbosity they prefer for the container log output.