Add a jail for proftpd

This commit is contained in:
Daniel Berteaud 2013-05-03 11:31:30 +02:00
parent 8131efc2ec
commit 5eb66234d7
4 changed files with 23 additions and 3 deletions

View File

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

View File

@ -18,7 +18,7 @@ logpath = /var/log/dovecot/current
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=Dovecot,dest=$maildest]\n"
$OUT .= " smeserver-sendmail[name=\"Dovecot\",dest=$maildest]\n"
if ($mail eq 'enabled');
}

View File

@ -0,0 +1,20 @@
{
my $port = $ftp{'TCPPort'} || '21';
my $status = $ftp{'status'} || 'disabled';
return "" if ($status ne 'enabled');
# add the data channel port
$port .= ',20';
$OUT .=<<"EOF";
[ftp]
enabled = true
filter = proftpd
logpath = /var/log/secure
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=\"FTP\",dest=$maildest]\n"
if ($mail eq 'enabled');
}

View File

@ -9,7 +9,7 @@ maxretry = 5
backend = polling
action = smeserver[bantime=604800]
{
$OUT .= " sendmail[name=Recidive,dest=$maildest]\n"
$OUT .= " sendmail[name=\"Recidive\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .= '';
}