From 8538747cacec13659f19456c643e328e8d16e85e Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sun, 18 Nov 2018 19:33:04 +0800 Subject: [PATCH] add Pasv min and max port support in vsftpd --- package/lean/vsftpd-alt/Makefile | 2 +- package/lean/vsftpd-alt/files/vsftpd_prepare | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/lean/vsftpd-alt/Makefile b/package/lean/vsftpd-alt/Makefile index d94026d85..26a5175e9 100644 --- a/package/lean/vsftpd-alt/Makefile +++ b/package/lean/vsftpd-alt/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vsftpd-alt PKG_VERSION:=3.0.3 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=vsftpd-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://security.appspot.com/downloads/ diff --git a/package/lean/vsftpd-alt/files/vsftpd_prepare b/package/lean/vsftpd-alt/files/vsftpd_prepare index 622671966..0cec00d1a 100755 --- a/package/lean/vsftpd-alt/files/vsftpd_prepare +++ b/package/lean/vsftpd-alt/files/vsftpd_prepare @@ -133,6 +133,8 @@ config_load vsftpd output_const "background" YES output_field listen port "listen_port" 21 output_field listen dataport "ftp_data_port" 20 +output_field listen pasv_min_port "pasv_min_port" 50000 +output_field listen pasv_max_port "pasv_max_port" 51000 # global output_bool global 'write' "write_enable" 1