So this fail2ban jail bans the server IP rather than the "x-real IP". This is not correct.
We want fail2ban to ban the person failing the roundcube login not the server itself. The regex is incorrect. You can fix this by making the changes posted below.
Find roundcube filter.d file and change the regex to look like below
We want fail2ban to ban the person failing the roundcube login not the server itself. The regex is incorrect. You can fix this by making the changes posted below.
Find roundcube filter.d file and change the regex to look like below
Code:
[Definition]
failregex = (.*) Error: Login failed for (.*) from (.*)\WX-Real-IP: <HOST>(.*)
ignoreregex =
Last edited: