#fail2ban #HomeLab #HomeServer
Finally got my act together and set up fail2ban for my reverse proxy.
The need for this became evident after I had gotten my act together and started ingesting the reverse proxy logs into #graylog and seen all the attempts to find something of value.
I had suspected something was up due to the increasing intermittent "incidents" as reported by betterstack.
Likely the bursts of 1200 requests in a second exhausted the resources available long enough to impact the status checks.
It's pretty cool to see the graph show the effect of when fail2ban was implemented and the ratio of valid requests invert from < 5% to > 95%
Edit to add a dashboard graph showing the effects:
First rise is fixing up the log parsing, then decreases as I progressively enable fail2ban jails. Later there is a large bump as I again capture more logs (error) and enable, then tweak, rate limiting, then the fail2ban rate-limit jail... this resulted in the precipitous drop in "bad faith" requests.