fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:fail2ban

Table of Contents

fail2ban

Installation

sudo apt update
sudo apt install fail2ban
sudo systemctl enable fail2ban
sudo touch /etc/fail2ban/jail.local

Debian 11

sudo systemctl start fail2ban.service
sudo systemctl status fail2ban.service

Debian 12

sudo apt install python3-systemd

sudo nano /etc/fail2ban/jail.conf

[DEFAULT]
sshd_backend = systemd
sudo systemctl start fail2ban.service
sudo systemctl status fail2ban.service

Steuerung

sudo systemctl status fail2ban.service
sudo systemctl restart fail2ban.service
sudo fail2ban-client status sshd
sudo fail2ban-client set <jail-name> unbanip <ip>
sudo fail2ban-client set <jail-name> banip <ip>
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
linux/fail2ban.txt · Last modified: 2024/11/14 00:04 by gsys