quote the port in jails to allow multiple ports with a comma

tags/0.0.1
Daniel Berteaud 12 years ago
parent 05dd76c857
commit 77662adefd
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot
  2. 8
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd

@ -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

@ -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

Loading…
Cancel
Save