I have installed a RStudio server which allows for online login and programming from within the browser. Someone, having experience on how to secure the server by fail2ban?
It showed up being quite complicated to solve the protection of RStudio by fail2ban as RStudio does not log client IP's of failed login attempts.
However, instead pam-abl is a similar solution that protects against brute force attacks by blacklisting users and IP's after specified number of failed login attempts. This library is faster than fail2ban but it does not by default integrate with firewall, which would be a customization.