Skip to content

Debian 8.6 fail2ban failregex incorrect for guacamole #1574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
coldfire84 opened this issue Oct 11, 2016 · 1 comment
Closed

Debian 8.6 fail2ban failregex incorrect for guacamole #1574

coldfire84 opened this issue Oct 11, 2016 · 1 comment

Comments

@coldfire84
Copy link

coldfire84 commented Oct 11, 2016

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.

@sebres
Copy link
Contributor

sebres commented Oct 13, 2016

Can you supply here a log-line resp. excerpt for the failure?
BTW in the original fail2ban configuration it is multi-line (2 lines), see https://github.com/fail2ban/fail2ban/blob/master/fail2ban/tests/files/logs/guacamole

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

No branches or pull requests

2 participants