Skip to content

Commit

Permalink
fix(vsftpd): limit to 10 pasv ports
Browse files Browse the repository at this point in the history
  • Loading branch information
garethflowers committed Apr 12, 2021
1 parent 83a857a commit 4a8f312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ COPY [ "/src/docker-entrypoint.sh", "/" ]

CMD [ "/usr/sbin/vsftpd" ]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
EXPOSE 20/tcp 21/tcp 40000-50000/tcp
EXPOSE 20/tcp 21/tcp 40000-40009/tcp
HEALTHCHECK CMD netstat -lnt | grep :21 || exit 1
2 changes: 1 addition & 1 deletion src/vsftpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ max_clients=0
max_per_ip=0
pasv_enable=YES
pasv_address=0.0.0.0
pasv_max_port=50000
pasv_max_port=40009
pasv_min_port=40000
port_enable=YES
ftp_data_port=20
Expand Down

0 comments on commit 4a8f312

Please sign in to comment.