From 4a8f31228fc6775b85ebff90480acdf91f1f2c57 Mon Sep 17 00:00:00 2001 From: Gareth Flowers Date: Mon, 12 Apr 2021 20:16:46 +0100 Subject: [PATCH] fix(vsftpd): limit to 10 pasv ports --- Dockerfile | 2 +- src/vsftpd.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c9b037a..31a1265 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/src/vsftpd.conf b/src/vsftpd.conf index 230930f..8fd01d7 100644 --- a/src/vsftpd.conf +++ b/src/vsftpd.conf @@ -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