Default to disabled for jails

tags/0.0.1
Daniel Berteaud 12 years ago
parent 5240cfb528
commit d33fe92435
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh
  2. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot
  3. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd

@ -1,7 +1,7 @@
{
my $port = $sshd{'TCPPort'} || '22';
my $status = $sshd{'status'} || 'enabled';
my $status = $sshd{'status'} || 'disabled';
return "" if ($status ne 'enabled');
$OUT .=<<"EOF";

@ -1,6 +1,6 @@
{
my $status = $dovecot{'status'} || 'enabled';
my $status = $dovecot{'status'} || 'disabled';
return "" if ($status ne 'enabled');
my @ports = ();
push @ports, ($imap{'TCPPort'} || '143')

@ -1,6 +1,6 @@
{
my $status = ${'httpd-e-smith'}{'status'} || 'enabled';
my $status = ${'httpd-e-smith'}{'status'} || 'disabled';
return "" if ($status ne 'enabled');
my @ports = ();
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80');

Loading…
Cancel
Save