MAXCLIENTS configuration

This commit is contained in:
Paolo Asperti 2022-03-29 10:14:11 +02:00
parent ee03f1ed43
commit 0bfeed1515
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 8 additions and 2 deletions

View File

@ -8,8 +8,6 @@ AllowRetrieveRestart On
WtmpLog off
UseReverseDNS off
DefaultRoot ~
Maxclients 30
MaxClientsPerHost 5
<IfModule mod_tls.c>
TLSEngine on

8
run.sh
View File

@ -55,6 +55,14 @@ PASSIVEPORTS_END=${PASSIVEPORTS_END:-50050}
echo "PassivePorts ${PASSIVEPORTS_START} ${PASSIVEPORTS_END}" > /etc/proftpd/conf.d/passive_ports.conf
############ MAX CLIENTS
MAXCLIENTS=${MAXCLIENTS:-30}
MAXCLIENTSPERHOST=${MAXCLIENTSPERHOST:-5}
echo "Maxclients ${MAXCLIENTS}" > /etc/proftpd/conf.d/maxclients.conf
echo "MaxClientsPerHost ${MAXCLIENTSPERHOST}" >> /etc/proftpd/conf.d/maxclients.conf
############ START CRON
crond -b