Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.05 KB

File metadata and controls

44 lines (29 loc) · 1.05 KB

Fail2ban

This document is a shortened form of the original Fail2ban documentation.

Content

Installation

sudo apt install fail2ban -y

Configuration

Copy the jail configuration from this repository to the Fail2ban configuration directory.

SSH Jail

The ssh.local configuration enables SSH protection with the following settings:

Setting Value Description
banaction ufw Uses UFW firewall for banning
maxretry 5 Failed attempts before ban
findtime 10m Time window for counting attempts
bantime 1d Duration of the ban

Apply Configuration

sudo systemctl restart fail2ban

Unban IP

fail2ban-client set <jailname> unbanip <IP>