I just went through the process of setting up fail2ban for when I plan on opening up my pi to the outside world in the future. It took a bit of trial and error. I currently just have fail2ban set up, but I was wondering if anyone could tell me what is the benefit of using ufw in addition with fail2ban?
From what I understand, ufw acts as a firewall, blocking attempted logins from IPs. However, isn't this what fail2ban does as well? Or is it more like ufw blocks connection of any sort from an IP, while fail2ban simply blocks password login attempts? Thank you for any help.