ENH+DOC: Add Guacamole filter, example log and jail

pull/176/head
Steven Hiscocks 2013-04-16 21:13:31 +01:00
parent c6bd8fc807
commit 4d80fad874
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Fail2Ban configuration file for guacamole
#
# Author: Steven Hiscocks
#
[Definition]
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile.
# Values: TEXT
#
failregex = ^.*\nWARNING: Authentication attempt from <HOST> for user "[^"]*" failed\.$
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =

View File

@ -357,6 +357,16 @@ action = iptables[name=mysql, port=3306, protocol=tcp]
logpath = /var/log/mysqld.log
maxretry = 5
[guacamole-iptables]
enabled = false
filter = guacamole
action = iptables-multiport[name=Guacmole, port="http,https"]
sendmail-whois[name=Guacamole, dest=root, sender=fail2ban@example.com]
logpath = /var/log/tomcat*/catalina.out
maxretry = 5
maxlines = 2
# Jail for more extended banning of persistent abusers
# !!! WARNING !!!

View File

@ -0,0 +1,6 @@
apr 15, 2013 8:34:08 PM org.slf4j.impl.JCLLoggerAdapter warn
WARNING: Authentication attempt from 192.0.2.0 for user "null" failed.
apr 16, 2013 8:32:13 AM org.slf4j.impl.JCLLoggerAdapter warn
WARNING: Authentication attempt from 192.0.2.0 for user "null" failed.
apr 16, 2013 8:32:28 AM org.slf4j.impl.JCLLoggerAdapter warn
WARNING: Authentication attempt from 192.0.2.0 for user "pippo" failed.