Linux Harbour

Technology News of Linux & Open Source


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>

Sammy Fung

Sammy is the founder of the Linux Harbour.