Back to TIL
devops

Integrating UFW with Fail2Ban

I like using ufw, the uncomplicated firewall. I also love to use fail2ban to secure SSH, nginx etc.

Making them play together nicely is pretty easy. Here’s the config for an override like /etc/fail2ban/jail.d/custom.conf:

[DEFAULT]
banaction = ufw
banaction_allports = ufw