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/10/31 02:13] – 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 systemctl | + | 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 | ||
| </ | </ | ||
| ===== 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.1635639233.txt.gz · Last modified: (external edit)