VSFTPD - 基于 TLS 的 FTP - 恰好在 82k 后上传停止?

Red*_*dro 5 centos ftp tls vsftpd

我在 CentOS 服务器上安装了 VSFTP 守护程序,使用 RSA 证书使用显式 TLS 登录。现在,我不能上传超过 82k。

如果文件低于该限制,则没有问题。FTP 就像一个魅力。但是一旦 FileZilla 的文件达到 82k(准确地说是 81,952 字节),传输就会停止,并且 FTP 客户端挂起直到超时。

FTP客户端控制台:

15:10:21    Command:    STOR jquery-1.7.2.min.js  
15:10:21    Response:   150 Ok to send data.  
15:11:21    Error:  Connection timed out  
15:11:21    Error:  File transfer failed after transferring 82 KB in 60 seconds  
Run Code Online (Sandbox Code Playgroud)

/var/log/vsftpd.log

FTP command:  Client "x.x.x.x", "STOR jquery-1.7.2.min.js"
FTP response: Client "x.x.x.x", "150 Ok to send data."
OK UPLOAD:    Client "x.x.x.x", "jquery-1.7.2.min.js", 81952 bytes, 1.32Kbyte/sec
FTP response: Client "x.x.x.x", "226 File receive OK." // NOT okay, file is bigger
// No mention of error here
Run Code Online (Sandbox Code Playgroud)

除了trans_chunk_size(默认配置中未提及)可能存在的问题外,我找不到有关此问题的相关信息,但我尝试了不同的大小,但对问题没有影响。 trans_chunk_size=4096
trans_chunk_size=8192
trans_chunk_size=9999

当然,每次配置更改后,我都重新启动了服务器:
/etc/init.d/vsftpd restart

还有什么可能导致这种情况?

它不是最新版本,但它是存储库中被认为适合企业使用的最新更新:

包裹信息:

$ yum info vsftpd  
Loaded plugins: fastestmirror  
Installed Packages  
Name       : vsftpd  
Arch       : x86_64  
Version    : 2.0.5  
Release    : 24.el5_8.1  
Size       : 286 k  
Repo       : installed  
Summary    : vsftpd - Very Secure Ftp Daemon  
URL        : http://vsftpd.beasts.org/  
License    : GPL  
Description: vsftpd is a Very Secure FTP daemon. It was written completely from scratch.  
Run Code Online (Sandbox Code Playgroud)

qua*_*nta 2

听起来问题出在客户端。您是否尝试过另一个客户端程序:lftpTLSWrap、 ...?