custom passive ports
This commit is contained in:
parent
4eeec639b0
commit
ae85c0e481
@ -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
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…
Reference in New Issue
Block a user