You are not logged in.
I recently installed fail2ban on a freshly updated arch. Followed instructions on the Wiki page but I am unable to run f2b correctly.
This is the f2b sshd config
[root@box e]# cat /etc/fail2ban/sshd.local
[sshd]
enabled = true
port = ssh
logpath = %(sshd_log)s
backend = %(sshd_backend)s
maxretry = 3
findtime = 1d
bantime = 2w
No rule in iptables
[root@box e]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
And f2b sshd status
[root@box e]# fail2ban-client status sshd
2020-04-28 00:23:32,084 fail2ban [1425]: ERROR NOK: ('sshd',)
Sorry but the jail 'sshd' does not exist
The result of this situation is that there's not a single jail on ssh login attempt.
I really can't find any useful information about that 'sshd' jail does not exist part.. Any idea what to check? Thanks for any advice.
Last edited by 5ulo (2020-04-28 14:04:18)
Offline
Unless I'm missing something, looks look the name/path of your .local file is wrong. I have mine in /etc/fail2ban/jail.local, and the wiki mentions /etc/fail2ban/jail.d/sshd.local, I think.
Offline
I am so ashamed :-D thanks @firecat53 that was it.. that little /jail.d/ dir. Now it is working as expected.
Offline
Please remember to mark your thread [SOLVED] (edit the title of your first post).
Offline