rename smeserver action to smeserver-iptables

tags/0.0.1
Daniel Berteaud 12 years ago
parent b81e45174b
commit 6ffdca7501
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh
  2. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot
  3. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service20qpsmtpd
  4. 8
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd
  5. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service30pam
  6. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo
  7. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG
  8. 0
      root/etc/fail2ban/action.d/smeserver-iptables.conf

@ -9,7 +9,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = sshd filter = sshd
logpath = /var/log/sshd/current logpath = /var/log/sshd/current
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n"

@ -15,7 +15,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = dovecot filter = dovecot
logpath = /var/log/dovecot/current logpath = /var/log/dovecot/current
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=Dovecot,dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=Dovecot,dest=$maildest]\n"

@ -16,7 +16,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = qpsmtpd filter = qpsmtpd
logpath = /var/log/*qpsmtpd/current logpath = /var/log/*qpsmtpd/current
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
maxretry = $max maxretry = $max
EOF EOF

@ -13,7 +13,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = apache-overflows filter = apache-overflows
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"Apache (overflows)\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"Apache (overflows)\",dest=$maildest]\n"
@ -25,7 +25,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = apache-noscript filter = apache-noscript
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"Apache (noscript)\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"Apache (noscript)\",dest=$maildest]\n"
@ -37,7 +37,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = apache-scan filter = apache-scan
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"Apache (scan)\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"Apache (scan)\",dest=$maildest]\n"
@ -49,7 +49,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = apache-auth filter = apache-auth
logpath = /var/log/httpd/error_log logpath = /var/log/httpd/error_log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"Apache (auth)\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"Apache (auth)\",dest=$maildest]\n"

@ -3,7 +3,7 @@
enabled = true enabled = true
filter = pam-generic filter = pam-generic
logpath = /var/log/secure logpath = /var/log/secure
action = smeserver[bantime={"$bantime"}] action = smeserver-iptables[bantime={"$bantime"}]
{ {
$OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n"
if ($mail eq 'enabled'); if ($mail eq 'enabled');

@ -13,7 +13,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = sogo filter = sogo
logpath = /var/log/sogo/sogo.log logpath = /var/log/sogo/sogo.log
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"SOGo\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"SOGo\",dest=$maildest]\n"

@ -13,7 +13,7 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = lemonldap-ng filter = lemonldap-ng
logpath = /var/log/messages logpath = /var/log/messages
action = smeserver[port="$port",protocol=tcp,bantime=$bantime] action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"LemonLDAP::NG\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"LemonLDAP::NG\",dest=$maildest]\n"

Loading…
Cancel
Save