19 lines
378 B
Plaintext
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');
|
|
|
|
}
|