Skip to content

Instantly share code, notes, and snippets.

@MAFLO321
Created October 13, 2015 19:09
Show Gist options
  • Save MAFLO321/c4a2d4f1e3af2614c7d2 to your computer and use it in GitHub Desktop.
Save MAFLO321/c4a2d4f1e3af2614c7d2 to your computer and use it in GitHub Desktop.
Fail2Ban ajenti auth filter. To protect ajeti from spam and bruteforce attacks.
# Fail2Ban filter for ajenti
#
[INCLUDES]
before = common.conf
[Definition]
_daemon = ajenti
failregex = ^%(__prefix_line)sfailed login attempt for .* through .* from <HOST>\s*$
ignoreregex =
# DEV Notes:
# pattern : ajenti: failed login attempt for root ("pw") through AjentiSyncProvider from 80.187.103.9
#
# jail.conf Notes:
# [ajenti-auth]
# enabled = true
# port = 10000
# filter = ajenti-auth
# logpath = /var/log/auth.log
# maxretry = 6
#
# Rule Author: Matthias Freund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment