smeserver-fail2ban/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service10ssh
2013-05-03 00:03:59 +02:00

19 lines
378 B
Plaintext

{
my $port = $sshd{'TCPPort'} || '22';
my $status = $sshd{'status'} || 'disabled';
return "" if ($status ne 'enabled');
$OUT .=<<"EOF";
[ssh]
enabled = true
filter = sshd
logpath = /var/log/sshd/current
action = smeserver[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=SSH,dest=$maildest]\n"
if ($mail eq 'enabled');
}