Hi, i'm testing pve 9 and just install fail2ban. There's some differences from pve 8, like syslog that isn't installed by default anymore. So which is the best and "compliance" way for the latest version of debian and pve. Talking about where to send the log, how to set the filter... documentation isn't updated.
Can someone help?
Actual filter.d:
Actual jail.local:
Can someone help?
Actual filter.d:
Code:
[Definition]
failregex = ^.*pvedaemon\[.*\]: authentication failure; rhost=<HOST> user=.* msg=.*$
ignoreregex =
Actual jail.local:
Code:
[DEFAULT]
ignoreip = myip
bantime = 3600
findtime = 600
maxretry = 3
[proxmox]
enabled = true
port = https,http,8006
filter = proxmox
logpath = /var/log/syslog
maxretry = 3
# 1 hour
bantime = 3600
[sshd]
port = ssh
logpath = %(sshd_log)s
enabled = true
Last edited: