我们是 vsftpd 的忠实粉丝,由于它的健壮性我们已经使用它多年了。
然而,我们遇到了成本问题。我们的许多工作环境都位于“地球的尽头”,我们只能通过蜂窝或卫星连接进行通信。
这些地点的蜂窝费用平均为 1.00 美元/MB,卫星连接费用最高为 26.00 美元/MB。因此,我们节省的每个字节都很重要。
话虽如此,VSFTPD 响应中包含的字符串对于故障排除非常有用,但在每天有数千个活动 ftp 会话的环境中成本非常高。
我已经研究过并且无法找到关闭这些响应字符串的方法,除非进入源代码并在 VSFTPD 中编辑代码。
我觉得自己对 FTP 协议的“细节”还不够熟悉,不知道程序正确运行需要什么。因此,我犹豫着是否要编辑 VSFTPD 的源代码。
是否有任何基于 Linux 的 ftp 服务器,它们功能强大但具有最少响应模式?
例如,这是我现在看到的:
Status: Connecting to 66.xx.x.x:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to BLAHBLAHBLAH FTP service.
Command: USER ftpuser
Response: 331 Please specify the password.
Command: PASS *******
Response: 230 Login successful.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 Always in UTF8 mode.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (66,xx,x,x,129,120).
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD DLT-CONFIG
Response: 250 Directory successfully changed.
Command: PWD
Response: 257 "/DLT-CONFIG"
Command: PASV
Response: 227 Entering Passive Mode (66,11,7,2,66,146).
Command: LIST
Response: 150 Here comes the directory listing.
Response: 226 Directory send OK.
Status: Calculating timezone offset of server...
Command: MDTM L99999-CONFIG.TXT
Response: 213 20130129145139
Status: Timezone offsets: Server: 0 seconds. Local: -18000 seconds. Difference: -18000 seconds.
Status: Directory listing successful
如果可能的话,我们希望看到更多类似这样的情况:
Status: Connecting to 66.xx.x.x:21...
Status: Connection established, waiting for welcome message...
Response: 220
Command: USER ftpuser
Response: 331
Command: PASS *******
Response: 230
Command: SYST
Response: 215
Command: FEAT
Response: 211-Features:
Response: EPRT
Response: EPSV
Response: MDTM
Response: PASV
Response: REST STREAM
Response: SIZE
Response: TVFS
Response: UTF8
Response: 211
Command: OPTS UTF8 ON
Response: 200
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257
Command: TYPE I
Response: 200
Command: PASV
Response: 227
Command: LIST
Response: 150
Response: 226
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD DLT-CONFIG
Response: 250
Command: PWD
Response: 257
Command: PASV
Response: 227
Command: LIST
Response: 150
Response: 226
Status: Calculating timezone offset of server...
Command: MDTM L99999-CONFIG.TXT
Response: 213
Status: Timezone offsets: Server: 0 seconds. Local: -18000 seconds. Difference: -18000 seconds.
Status: Directory listing successful
感谢您的时间并期待您的答复。
答案1
我推荐 gadmin-proftp。高度可定制,可以使用自定义证书进行配置。您可能可以通过其 GUI 根据需要对其进行修改。它们可能不提供最小响应模式,但在某种程度上应该可以实现。