Home ยป Syslog in Debian 12

Syslog in Debian 12

0 comment 148 views

By default, syslog or rsyslog is not installed on Debian 12.

So I installed it by using apt command

apt install rsyslog

Then I can reconfigure fail2ban to get auth.log.

Actually, it can get log from journalctl. In fail2ban jail conf file, can configure as follow.

For Proxmox

[proxmox]
enabled = true
port = https,http,8006
filter = proxmox
backend   = systemd
maxretry  = 5
findtime  = 1d
bantime   = 1d

For SSH

[sshd]
enabled   = true
filter    = sshd
banaction = iptables
backend   = systemd
maxretry  = 3
findtime  = 1d
bantime   = 1d

Then, it should works now.

Refer – https://forum.proxmox.com/threads/pve-8-0-%E2%80%93-fail2ban-log-locations-missing.129338/#post-566464

Leave a Comment