escape quotes in jail templates

tags/0.0.1
Daniel Berteaud 12 years ago
parent d33fe92435
commit 911db13c49
  1. 8
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd
  2. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo
  3. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG

@ -16,7 +16,7 @@ logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="Apache (overflows)",dest=$maildest]\n"
$OUT .= " sendmail[name=\"Apache (overflows)\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .=<<"EOF";
@ -28,7 +28,7 @@ logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="Apache (noscript)",dest=$maildest]\n"
$OUT .= " sendmail[name=\"Apache (noscript)\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .=<<"EOF";
@ -40,7 +40,7 @@ logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="Apache (scan)",dest=$maildest]\n"
$OUT .= " sendmail[name=\"Apache (scan)\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .=<<"EOF";
@ -52,6 +52,6 @@ logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="Apache (auth)",dest=$maildest]\n"
$OUT .= " sendmail[name=\"Apache (auth)\",dest=$maildest]\n"
if ($mail eq 'enabled');
}

@ -16,7 +16,7 @@ logpath = /var/log/sogo/sogo.log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="SOGo",dest=$maildest]\n"
$OUT .= " sendmail[name=\"SOGo\",dest=$maildest]\n"
if ($mail eq 'enabled');
}

@ -16,7 +16,7 @@ logpath = /var/log/messages
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " sendmail[name="LemonLDAP::NG",dest=$maildest]\n"
$OUT .= " sendmail[name=\"LemonLDAP::NG\",dest=$maildest]\n"
if ($mail eq 'enabled');
}

Loading…
Cancel
Save