custom passive ports
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing

This commit is contained in:
Paolo Asperti 2019-05-19 10:58:07 +02:00
parent 4eeec639b0
commit ae85c0e481
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,6 @@ AuthOrder mod_auth_file.c
AuthUserFile /auth/passwd
RequireValidShell off
ScoreBoardFile /run/proftpd/scoreboard
PassivePorts 50000 50500
AllowOverwrite on
WtmpLog off
UseReverseDNS off

7
run.sh
View File

@ -22,6 +22,13 @@ cat $TLS_CERT > /etc/proftpd/cert.pem
cat $TLS_KEY > /etc/proftpd/privkey.pem
cat $TLS_CHAIN > /etc/proftpd/chain.pem
############ PASSIVE PORTS
PASSIVEPORTS_START=${PASSIVEPORTS_START:-50000}
PASSIVEPORTS_END=${PASSIVEPORTS_END:-50050}
echo "PassivePorts ${PASSIVEPORTS_START} ${PASSIVEPORTS_END}" > /etc/proftpd/conf.d/passive_ports.conf
############ START
proftpd -n