linux:fail2ban
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:fail2ban [2023/04/01 19:21] – [Installation] admin | linux:fail2ban [2024/11/14 00:04] (current) – [Installation] gsys | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== fail2ban ====== | ====== fail2ban ====== | ||
===== Installation ===== | ===== Installation ===== | ||
+ | |||
< | < | ||
sudo apt update | sudo apt update | ||
sudo apt install fail2ban | sudo apt install fail2ban | ||
sudo systemctl enable fail2ban | sudo systemctl enable fail2ban | ||
- | sudo cp / | + | sudo touch / |
- | sudo systemctl | + | </ |
+ | |||
+ | Debian 11 | ||
+ | < | ||
+ | sudo systemctl start fail2ban.service | ||
+ | sudo systemctl status fail2ban.service | ||
+ | </ | ||
+ | |||
+ | Debian 12 | ||
+ | |||
+ | < | ||
+ | sudo apt install python3-systemd | ||
+ | </ | ||
+ | |||
+ | '' | ||
+ | |||
+ | < | ||
+ | [DEFAULT] | ||
+ | sshd_backend = systemd | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo systemctl start fail2ban.service | ||
+ | sudo systemctl | ||
</ | </ | ||
===== Steuerung ===== | ===== Steuerung ===== | ||
+ | |||
< | < | ||
+ | sudo systemctl status fail2ban.service | ||
+ | sudo systemctl restart fail2ban.service | ||
sudo fail2ban-client status sshd | sudo fail2ban-client status sshd | ||
sudo fail2ban-client set < | sudo fail2ban-client set < |
linux/fail2ban.1680369670.txt.gz · Last modified: 2024/02/17 19:03 (external edit)