PVE 8 und fail2ban

achim22

Renowned Member
May 21, 2015
414
5
83
58
Dortmund
Hallo,
hatte hier wohl nicht wirklich etwas zu suchen aber eventuell kann mir jemand unter die Arme greifen.
Bis her bei PVE 7 lief die Installation von fail2ban immer easy ab mit :

Code:
apt install fail2ban


cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local


systemctl restart fail2ban.service

Die standard Vorgaben haben mir immer gereicht.

Jetzt erhalte ich einen Fehler:

root@pve:~# systemctl status fail2ban [B]×[/B] fail2ban.service - Fail2Ban Service Loaded: loaded (/lib/systemd/system/fail2ban.service; [B]enabled[/B]; preset: [B]enabled[/B]) Active: [B]failed[/B] (Result: exit-code) since Thu 2023-06-29 12:55:04 CEST; 26s ago Duration: 91ms Docs: man:fail2ban(1) Main PID: 10341 (code=exited, status=255/EXCEPTION) CPU: 83ms Jun 29 12:55:03 pve systemd[1]: Started fail2ban.service - Fail2Ban Service. Jun 29 12:55:04 pve fail2ban-server[10341]: 2023-06-29 12:55:04,005 fail2ban.configreader [10341]: WARNING 'allowipv6' not defined in 'Definition'. Using default one: 'auto' Jun 29 12:55:04 pve fail2ban-server[10341]: 2023-06-29 12:55:04,014 fail2ban [10341]: ERROR Failed during configuration: Have not found any log file for sshd jail Jun 29 12:55:04 pve fail2ban-server[10341]: 2023-06-29 12:55:04,019 fail2ban [10341]: ERROR Async configuration of server failed Jun 29 12:55:04 pve systemd[1]: [B]fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION[/B] Jun 29 12:55:04 pve systemd[1]: [B]fail2ban.service: Failed with result 'exit-code'.[/B] root@pve:~#
 
Ich habe keine Lösung, nur einen Hinweis: "früher" loggte ssh/syslog in Dateien. Heute verwendet man das systemd-Journal. Das passt nicht ohne weiter manuelle Anpassungen zusammen. Die Allwissende Müllhalde weiß vermutlich mehr...

Viel Erfolg!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!