Fail2ban Filter #4080

Closed
opened 2026-02-05 08:07:05 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @wforumw on GitHub (Sep 1, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have followed the guidance on Failed Access Logging. And add
LOG_FAILED_LOGIN_MESSAGE="Failed login for %u"
into .env

I tried several regex but nothing worked.
Anyone can help with setting up the required regex/config to get it working.

Many thanks
Kind Regards

Exact BookStack Version

v23.08

Log Content

[Fri Sep 01 12:33:04.054291 2023] [php:notice] [pid 445356] [client x.x.x.x:58222] Failed login for mail@domain.com, referer: https://bookstack.domain.com/login
[Fri Sep 01 12:33:29.970870 2023] [php:notice] [pid 445358] [client x.x.x.x:60366] Failed login for mail@domain.com, referer: https://boockstack.domain.com/login

PHP Version

8.1.22

Hosting Environment

Debian Bullseye

Originally created by @wforumw on GitHub (Sep 1, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I have followed the guidance on Failed Access Logging. And add `LOG_FAILED_LOGIN_MESSAGE="Failed login for %u"` into .env I tried several regex but nothing worked. Anyone can help with setting up the required regex/config to get it working. Many thanks Kind Regards ### Exact BookStack Version v23.08 ### Log Content [Fri Sep 01 12:33:04.054291 2023] [php:notice] [pid 445356] [client x.x.x.x:58222] Failed login for mail@domain.com, referer: https://bookstack.domain.com/login [Fri Sep 01 12:33:29.970870 2023] [php:notice] [pid 445358] [client x.x.x.x:60366] Failed login for mail@domain.com, referer: https://boockstack.domain.com/login ### PHP Version 8.1.22 ### Hosting Environment Debian Bullseye
OVERLORD added the 🐕 Support label 2026-02-05 08:07:05 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4080