From 0bfeed1515913d58762b4a4a5f354b069cd3b142 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Tue, 29 Mar 2022 10:14:11 +0200 Subject: [PATCH] MAXCLIENTS configuration --- custom.conf | 2 -- run.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/custom.conf b/custom.conf index 21e7618..5556c65 100644 --- a/custom.conf +++ b/custom.conf @@ -8,8 +8,6 @@ AllowRetrieveRestart On WtmpLog off UseReverseDNS off DefaultRoot ~ -Maxclients 30 -MaxClientsPerHost 5 TLSEngine on diff --git a/run.sh b/run.sh index b730842..0920887 100644 --- a/run.sh +++ b/run.sh @@ -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