MAXCLIENTS configuration
This commit is contained in:
parent
ee03f1ed43
commit
0bfeed1515
@ -8,8 +8,6 @@ AllowRetrieveRestart On
|
|||||||
WtmpLog off
|
WtmpLog off
|
||||||
UseReverseDNS off
|
UseReverseDNS off
|
||||||
DefaultRoot ~
|
DefaultRoot ~
|
||||||
Maxclients 30
|
|
||||||
MaxClientsPerHost 5
|
|
||||||
|
|
||||||
<IfModule mod_tls.c>
|
<IfModule mod_tls.c>
|
||||||
TLSEngine on
|
TLSEngine on
|
||||||
|
8
run.sh
8
run.sh
@ -55,6 +55,14 @@ PASSIVEPORTS_END=${PASSIVEPORTS_END:-50050}
|
|||||||
|
|
||||||
echo "PassivePorts ${PASSIVEPORTS_START} ${PASSIVEPORTS_END}" > /etc/proftpd/conf.d/passive_ports.conf
|
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
|
############ START CRON
|
||||||
|
|
||||||
crond -b
|
crond -b
|
||||||
|
Loading…
Reference in New Issue
Block a user