From d33fe92435a29298ce8241b024eac4938c588331 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 2 May 2013 16:19:53 +0200 Subject: [PATCH] Default to disabled for jails --- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh | 2 +- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot | 2 +- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh index 84f6df0..67c5192 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh @@ -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"; diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot index 453cb5b..499d478 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot @@ -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') diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd index f873be8..4803f47 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd @@ -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');