Skip to content

Instantly share code, notes, and snippets.

@wendelb
Created September 13, 2016 12:48
Show Gist options
  • Save wendelb/090f219dd151225d2c8e83763873d7a5 to your computer and use it in GitHub Desktop.
Save wendelb/090f219dd151225d2c8e83763873d7a5 to your computer and use it in GitHub Desktop.
sysPASS Fail2Ban Configuration

This is the needed fail2ban configuration to block offending clients for sysPass Password Manager. For this to work, you will need all the changes introduced in https://github.com/wendelb/sysPass .

Installation

  • Put the file filter.d-sysPass.local into /etc/fail2ban/filter.d
  • Put the file jail.d-sysPass.local into /etc/fail2ban/jail.d
  • Enable Fail2Ban-Logging in sysPass

You are good to go!

# Fail2Ban configuration file for sysPass
# http://syspass.org
#
#
[INCLUDES]
before = common.conf
[Definition]
failregex = sysPASS.+Authentication from \[<HOST>\] failed
ignoreregex =
# DEV Notes:
#
# Author: Bernhard Wendel
[sysPass]
enabled = true
port = https
filter = sysPass
logpath = /var/log/auth.log
maxretry = 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment