Add a jail for SOGo

tags/0.0.1
Daniel Berteaud 12 years ago
parent 4b7d3586d5
commit 3f165421d4
  1. 21
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo
  2. 10
      root/etc/fail2ban/filter.d/sogo.conf

@ -0,0 +1,21 @@
{
my $status = $sogod{'status'} || 'enabled';
return "" if ($status ne 'enabled');
my @ports = ();
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80');
push @ports, ($modSSL{'TCPPort'} || '443');
my $port = join (",", @ports);
$OUT .=<<"EOF";
[sogo]
enabled = true
filter = sogo
port = $port
protocol = tcp
name = sogo
logpath = /var/log/sogo/sogo.log
EOF
}

@ -0,0 +1,10 @@
[INCLUDES]
before = common.conf
[Definition]
_daemon = sogod
failregex = %(__prefix_line)s\s*SOGoRootPage Login from '<HOST>' for user '.*' might not have worked \-.*
ignoreregex =
Loading…
Cancel
Save