My Situation at the moment:
I'm setting up a mail server and just after getting it to work, the logs are flooded with authentication failed
messages from an suspicious iran network trying to login to random accounts.
After some googeling I found out that fail2ban
can stop those attacks, but there's one problem: how to use fail2ban in kubernetes?
My Ideas:
- I found this plugin for traefik, but it requres the traefik instance to be connected to thei SaaS managment service, what I don't need
- Installing
fail2ban
on the host: As kubernetes connects multiole nodes,fail2ban
on node 1 only gets the logs from this node and cannot block traffik coming in on node 2.
Is there a solution to run fail2ban In kubernetes, maybe linked to the ingress controller, as it is possible with traefik, but without any connection to a SaaS provider?