parent
8131efc2ec
commit
5eb66234d7
4 changed files with 23 additions and 3 deletions
@ -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'); |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue