Introduction

This tutorial covers How to Configure Fail2ban on SLES 16 on SLES 16. SLES 16 (SUSE Linux Enterprise Server 16) is SUSE’s enterprise-grade Linux distribution. It uses the zypper package manager, AppArmor for mandatory access control, and systemctl for service management.

Step 1 — Install Fail2ban

zypper install -y fail2ban

Step 2 — Enable Fail2ban

systemctl enable --now fail2ban

Step 3 — Configure SSH Jail

cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
# Edit [sshd] section

AppArmor Considerations

Note: SLES 16 uses AppArmor for mandatory access control. Check AppArmor status with aa-status and enforce profiles with aa-enforce /etc/apparmor.d/<profile>.

Conclusion

You have successfully completed: How to Configure Fail2ban on SLES 16. For more SLES 16 tutorials, see our full SLES 16 series.