dit document beschrijft hoe je de werking van fail2ban opvolgt.
fail2ban-client status sshd
Status for the jail: sshd |- Filter | |- Currently failed: 10 | |- Total failed: 1661 | `- File list: /var/log/auth.log `- Actions |- Currently banned: 6 |- Total banned: 358 `- Banned IP list: 65.108.213.31 103.250.10.186 137.184.41.13 24.69.190.84 208.109.13.144 94.101.178.121
view /var/log/fail2ban.log
)maxretry =
) binnen aangeduide tijd (findtime =
) voor de aangeduide duur (bantime =
)?grep Ban /var/log/fail2ban.log |awk '{print $8}'|sort|uniq -d -c|sort -k1 -n -r|head -10
grep invalid /var/log/auth.log|awk '{print $10}'|sort|uniq -d -c|sort -k1 -n -r|head -10
ufw deny from <ip> to any