Intall Fail2ban di Centos/RHEL 8


Step by step :

  1. Install fail2ban package
    # dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
  2. Install fail2ban
    # dnf install fail2ban
  3. Konfigurasi fail2ban # vi /etc/fail2ban/jail.local
    [DEFAULT] 
    ignoreip = 192.168.56.2/24
    bantime  = 21600
    findtime  = 300
    maxretry = 3
    banaction = iptables-multiport
    backend = systemd
    
    [sshd] 
    enabled = true
  4. Start fail2ban
    # systemctl start fail2ban
    # systemctl enable fail2ban
    # systemctl status fail2ban

Di tulis oleh: