Linux Harbour

Open Source Technology Media

Linux

Stay away from suspicious access with fail2ban

A number of suspicious access to Linux servers happens on the Internet every day. Fail2ban is software to protect Linux servers from brute-force attacks.

Installation on Ubuntu Linux server:

$ sudo apt update
$ sudo apt install fail2ban

Configuration of Fail2ban:

Configuration files are located in directory /etc/fail2ban.

An example checks the status & unban an IP address for SSH service.

$ fail2ban-client status
$ fail2ban-client status sshd
$ fail2ban-client set sshd unban <IP Address>

Founder of Linux Harbour