Working Fail2ban WebAuth Config

Nov 27, 2020
13
4
8
48
There you go, there is a github repo but he forgot one line in the jail config

filter.d/pbs-web-aut.conf
----------
[INCLUDES]

before = common.conf

[Definition]

__suffix_failed_login = (AUTH_ERR|invalid credentials|user account disabled or expired).?

failregex = authentication failure; rhost=\[<HOST>\]:\d+ user=.* msg=%(__suffix_failed_login)s

ignoreregex =
----------------

jail.d/pbs-web-aut.conf

------------------
[pbs-web-aut]
enabled = true
port = https,http,8007
filter = pbs-web-aut
logpath = /var/log/proxmox-backup/api/auth.log
maxretry = 2
bantime = 3600
-------------------
 

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!