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] [imap]
enabled = true enabled = true
filter = dovecot filter = dovecot
action = smeserver[port=$port, protocol=tcp] action = smeserver[port="$port", protocol=tcp]
logpath = /var/log/dovecot/current logpath = /var/log/dovecot/current
EOF EOF

@ -12,25 +12,25 @@ $OUT .=<<"EOF";
[http-overflows] [http-overflows]
enabled = true enabled = true
filter = apache-overflows filter = apache-overflows
action = smeserver[port=$port, protocol=tcp] action = smeserver[port="$port", protocol=tcp]
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
[http-noscript] [http-noscript]
enabled = true enabled = true
filter = apache-noscript filter = apache-noscript
action = smeserver[port=$port, protocol=tcp] action = smeserver[port="$port", protocol=tcp]
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
[http-scan] [http-scan]
enabled = true enabled = true
filter = apache-scan filter = apache-scan
action = smeserver[port=$port, protocol=tcp] action = smeserver[port="$port", protocol=tcp]
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
[http-auth] [http-auth]
enabled = true enabled = true
filter = apache-auth filter = apache-auth
action = smeserver[port=$port, protocol=tcp] action = smeserver[port="$port", protocol=tcp]
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
EOF EOF

Loading…
Cancel
Save