YunoHost-Apps / freshrss_ynh

FreshRSS package for YunoHost
https://freshrss.org
GNU Affero General Public License v3.0
28 stars 20 forks source link

Fail2ban #171

Closed OniriCorpe closed 8 months ago

OniriCorpe commented 8 months ago

Problem

this PR closes what I mentioned above

Solution

The regex: <HOST> .* \"GET /api/.*\" 401

It captures all failed API requests with wrong login/password, like this one: IP_ADRESS - - [01/Nov/2023:04:34:02 +0100] "GET /api/greader.php/accounts/ClientLogin?Email=user&Passwd=wrongpassword HTTP/2.0" 401 13 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0" This log is the same on v1.21.0 and on v1.22.1 (I verified), so everything should work regardless of version! :)

As a bonus:

PR Status

yunohost-bot commented 8 months ago

:v: Test Badge

yunohost-bot commented 8 months ago

Alrighty! Test Badge

yunohost-bot commented 8 months ago

May the CI gods be with you! Test Badge

yunohost-bot commented 8 months ago

Alrighty! Test Badge

lapineige commented 8 months ago

Thanks a lot ! :rocket: