Instant, easy setup. Just 4 commands, and your server will be protected:

  1. dnf install epel-release
  2. dnf install fail2ban
  3. nano /etc/fail2ban/jail.local
    • Paste this:
      enabled = true
    • Save and quit
  4. systemctl enable --now fail2ban

To check if it's working:

fail2ban-client status sshd

Leave a Reply

Your email address will not be published. Required fields are marked *

Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.
If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.