Add a jail for proftpd
This commit is contained in:
parent
8131efc2ec
commit
5eb66234d7
|
@ -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');
|
||||
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
||||
}
|
|
@ -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 .= '';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue