HAProxy for securing servers (SSH/RDP-Brute-Force-Attacks)

Hello everyone!

I hope I am at the right place for the question. :sweat_smile:

We have severall Ubuntu Server/Windows Server VMs on ESXi.
Every day there are several thousands of failed login tries. (we dont know who is behind it)
We want to put our servers behind a HAProxy for security reasons.

Now my question - is this the right solution for our requirement? We only need a security layer for this log-in-tries.

Im thankful for answers/questions/etc.
I remain with best regards