add ssh-ddos jail

This commit is contained in:
Daniel Berteaud 2013-05-03 15:41:30 +02:00
parent 14170ae297
commit a04440c3b2
1 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,18 @@ logpath = /var/log/sshd/current
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=\"SSH\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .=<<"EOF";
[ssh-ddos]
enabled = true
filter = sshd-ddos
logpath = /var/log/sshd/current
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=\"SSH\",dest=$maildest]\n"
if ($mail eq 'enabled');