Browse Source

custom passive ports

master 1.1.0
Paolo Asperti 2 years ago
parent
commit
ae85c0e481
Signed by: paspo GPG Key ID: 06D46905D19D5182
  1. 1
      custom.conf
  2. 7
      run.sh

1
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

7
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

Loading…
Cancel
Save