From 77662adefdb43c2ec2e16c1a37505cd6f2fcc8e8 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 2 May 2013 04:06:04 +0200 Subject: [PATCH] quote the port in jails to allow multiple ports with a comma --- .../e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot | 2 +- .../etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 fe23700..ba5f433 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot @@ -14,7 +14,7 @@ $OUT .=<<"EOF"; [imap] enabled = true filter = dovecot -action = smeserver[port=$port, protocol=tcp] +action = smeserver[port="$port", protocol=tcp] logpath = /var/log/dovecot/current EOF 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 7cffbb0..014238c 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd @@ -12,25 +12,25 @@ $OUT .=<<"EOF"; [http-overflows] enabled = true filter = apache-overflows -action = smeserver[port=$port, protocol=tcp] +action = smeserver[port="$port", protocol=tcp] logpath = /var/log/httpd/error_log [http-noscript] enabled = true filter = apache-noscript -action = smeserver[port=$port, protocol=tcp] +action = smeserver[port="$port", protocol=tcp] logpath = /var/log/httpd/error_log [http-scan] enabled = true filter = apache-scan -action = smeserver[port=$port, protocol=tcp] +action = smeserver[port="$port", protocol=tcp] logpath = /var/log/httpd/error_log [http-auth] enabled = true filter = apache-auth -action = smeserver[port=$port, protocol=tcp] +action = smeserver[port="$port", protocol=tcp] logpath = /var/log/httpd/error_log EOF