Fail2ban dovecot
Version vom 13. Dezember 2022, 16:32 Uhr von Thomas.will (Diskussion | Beiträge) (→sshd in fail2ban aktivieren)
Hydra installieren
- apt install hydra
brute Force auf den Rechner
- hydra -S -v -l xinux -P bad-passwords -s 993 -f 10.88.201.21 imap
sshd in fail2ban aktivieren
- echo -e "[dovecote]\nenabled = true\n" >> /etc/fail2ban/jail.local
fail2ban neustarten
- systemctl restart fail2ban
Status checken
- fail2ban-client status dovecot
Status for the jail: dovecot |- Filter | |- Currently failed: 0 | |- Total failed: 45 | `- File list: /var/log/mail.log `- Actions |- Currently banned: 0 |- Total banned: 1 `- Banned IP list:
Alles unbannen
- fail2ban-client unban --all