From ae85c0e4818f443cdae51319e9edda51985db753 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Sun, 19 May 2019 10:58:07 +0200 Subject: [PATCH] custom passive ports --- custom.conf | 1 - run.sh | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/custom.conf b/custom.conf index 4c37144..0d1ecb9 100644 --- a/custom.conf +++ b/custom.conf @@ -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 diff --git a/run.sh b/run.sh index ca6ecd7..d715fc0 100644 --- a/run.sh +++ b/run.sh @@ -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