Score:0

Fail2ban sshd rule is active but not working!

it flag

I used ubuntu 22.04 TLS.

sshd_config:

Port 9401
SyslogFacility AUTH
LogLevel VERBOSE
MaxAuthTries 3

/etc/fail2ban/jail.local:

[ssh-9401]
enabled = true
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
bantime = 60m
action = iptables-multiport[port=9401]

/var/log/auth.log: empty

sudo tail -n 2 /var/log/fail2ban.log:

2023-09-01 05:35:10,038 fail2ban.actions        [5552]: HEAVY   Actions: check-unban 20, bancnt 0, max: 20
2023-09-01 05:35:10,038 fail2ban.actions        [5552]: HEAVY   Actions: wait for pending tickets 2 (default 2)

Why not block my brute force attack after 3 try!

Thanks

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.