linux:fail2ban
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:fail2ban [2021/05/16 03:22] – [Installation] gsys | 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 cp / | + | sudo systemctl enable fail2ban |
+ | sudo touch / | ||
+ | </ | ||
+ | |||
+ | 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 status fail2ban.service | ||
+ | </ | ||
+ | |||
+ | ===== Steuerung ===== | ||
+ | |||
+ | < | ||
+ | sudo systemctl status fail2ban.service | ||
sudo systemctl restart fail2ban.service | sudo systemctl restart fail2ban.service | ||
+ | sudo fail2ban-client status sshd | ||
+ | sudo fail2ban-client set < | ||
+ | sudo fail2ban-client set < | ||
</ | </ | ||
- | ===== ===== | + | |
- | ===== ===== | + |
linux/fail2ban.1621128127.txt.gz · Last modified: (external edit)