I have seen a lot of posts showing how to install fail2ban along with firewalld and wanted to know if fail2ban is really required for my set up.
My set up is as follows
- Cent OS 8 in a VPS
- Public facing IP
- Firewalld active and blocking everything except the below
- Port 80/443 open to the world
- Port 22 only open to 3 ip addresses
- No remote root ssh allowed
- No password ssh allowed - only ssh-key logins allowed
With this setup do I even need fail2ban and if so what purpose does it solve. I found a thread which claims things about CPU costs if not using fail2ban Does fail2ban offer any additional protection to SSH if password login is already turned off?
Is this true for my setup ? I can appreciate that fail2ban can be used for other log monitoring and alerting, but for ssh only will it be a waste