Skip to content

Debian 8.6 fail2ban failregex incorrect for guacamole  #1574

Description

@coldfire84

Running Debian 8.6, fail2ban installed 10/10 as below - intended to front guacamole / apache2 HTTPS proxy on same client.

cd ~
git clone https://github.com/fail2ban/fail2ban
cd fail2ban
python setup.py install
cp files/debian-initd /etc/init.d/fail2ban
systemctl daemon-reload

jail.local file:

[guacamole]
enabled = true
port     = http,https,8080
logpath  = /var/log/tomcat*/catalina.out

Guacamole also installed from source (via git clone), as-per here.

With default configuration failed logins are not detected, with a revised failregex in the guacamole.conf failed logins are detected.

# This does not work (default)
# failregex = ^.*\nWARNING: Authentication attempt from <HOST> for user "[^"]*" failed\.$ to this:

# correct failregex
failregex = \bAuthentication attempt from \[<HOST>(?:,.*)?\] for user ".*" failed\.

I found the revised failregex here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions