FTPS upload freeze at 16 Kb

Kernels & Hardware, configuring network, installing services

FTPS upload freeze at 16 Kb

Postby Ilix » 2020-02-01 19:36

I installed vsftp as FTP server on Debian 10.
I configured it to work like FTPS. Log in, I see the directories and files. Faster beyond my expectations.
However when uploading file it crashes at 16Kb, then it tries to upload two more times trying to overwrite the file but it closes without success.

Without SSL it works well.

I can't understand where the problem lies.

The configuration of the SSL part is as follows:

---------------------------------------------------------- /etc/vsftpd.conf -----------------------------------------------------------
# Turn on SSL
ssl_enable=YES

# Allow anonymous users to use secured SSL connections
#allow_anon_ssl=YES

# All non-anonymous logins are forced to use a secure SSL connection in order to
# send and receive data on data connections.
force_local_data_ssl=YES

# All non-anonymous logins are forced to use a secure SSL connection in order to send the password.
force_local_logins_ssl=YES

allow_writeable_chroot=YES

# Permit TLS v1 protocol connections. TLS v1 connections are preferred
ssl_tlsv1=YES

# Permit SSL v2 protocol connections. TLS v1 connections are preferred
ssl_sslv2=NO

# permit SSL v3 protocol connections. TLS v1 connections are preferred
ssl_sslv3=NO

# Disable SSL session reuse (required by WinSCP)
require_ssl_reuse=NO

# Select which SSL ciphers vsftpd will allow for encrypted SSL connections (required by FileZilla)
ssl_ciphers=HIGH

# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem
------------------------------------------------------------------------------------------------------------------------

Can anyone put me on the right path?

Ah, I tried with proFTP but the problem was the same. Could it depend on the firewall? If yes, why does the rest (login and download) work?

Where am I doing wrong?

P.S .: however, proFTP no longer works and can't understand why, since I only stopped the demon.

The log of a typical session:

Sat Feb 1 20:11:03 2020 [pid 12427] [pippo] OK LOGIN: Client "192.168.1.254"
Sat Feb 1 20:11:04 2020 [pid 12429] [pippo] FAIL UPLOAD: Client "192.168.1.254", "/effects.js", 16384 bytes, 990.34Kbyte/sec
Sat Feb 1 20:11:05 2020 [pid 12429] [pippo] FAIL UPLOAD: Client "192.168.1.254", "/effects.js", 16384 bytes, 987.41Kbyte/sec
Sat Feb 1 20:11:05 2020 [pid 12429] [pippo] FAIL UPLOAD: Client "192.168.1.254", "/effects.js", 16384 bytes, 1005.34Kbyte/sec
Ilix
 
Posts: 5
Joined: 2017-10-25 18:11

Re: FTPS upload freeze at 16 Kb

Postby p.H » 2020-02-03 10:00

Client or server logs ?
Can't you get more detailed logs ?
Which FTP client are you using ?

Ilix wrote:Could it depend on the firewall?

Yes, if the firewall relies on the FTP connection tracking helper to accept FTP data connections, it does not work with TLS/SSL. But it should behave the same for download, upload and directory listing.
p.H
 
Posts: 1260
Joined: 2017-09-17 07:12


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable