Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BR]: basic setup fail #3736

Closed
fbifido opened this issue Apr 30, 2024 · 2 comments
Closed

[BR]: basic setup fail #3736

fbifido opened this issue Apr 30, 2024 · 2 comments

Comments

@fbifido
Copy link

fbifido commented Apr 30, 2024

debian 12.5 minimal with ssh

apt install fail2ban
nano /etc/fail2ban/jail.conf , find [sshd], add maxretry =3, enable = true
reboot now.

  • everything is working.

  • I was told not to modify any *.conf file, no i created an empty jail.local file, then paste this in:
    [sshd]
    port = ssh
    logpath = %(sshd_log)s
    backend = %(sshd_backend)s
    maxretry = 3
    enable = true

after reboot only getting this error message:
"[519]: ERROR Failed during configuration: Have not found any log file for sshd jail"
Apr 30 14:06:54 koha-01 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Apr 30 14:06:54 koha-01 systemd[1]: fail2ban.service: Failed with result 'exit-code'.

I know little about linux, but how hard is it to follow a simple tutorial and have it work:
https://www.howtogeek.com/675010/how-to-secure-your-linux-computer-with-fail2ban/

@fbifido fbifido added the bug label Apr 30, 2024
@mrkacg1
Copy link

mrkacg1 commented May 2, 2024

hi,
change in jail config: backend=systemd

@sebres
Copy link
Contributor

sebres commented May 6, 2024

Dup of #3292, already fixed in newest version.

@sebres sebres closed this as completed May 6, 2024
@sebres sebres closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants