You are not logged in.

#1 2018-08-14 18:13:58

Thirtykay
Member
Registered: 2018-08-14
Posts: 3

vsFTPd - gnuTLS: error 15 : An unexpected TLS packet was received.

Hello,

I'm trying to create a SFTP server since yesterday now, everything is ok except one thing.

I receive a : GnuTLS error -15: An unexpected TLS packet was received. after 5 minutes of connection to the server.

This is very weird, after digging through logs and the internet, i didn't find anybody that has the same problem.

If someone could help, it will be very appreciated, here's my vsftpd.conf and filezilla logs, just in case that somebody somebody ask, i've followed this tutorial : https://wiki.archlinux.org/index.php/Ve … FTP_Daemon

Before i forget, i don't know why, but while i'm uploading a file and the error occurs, the upload is not canceled, this is kinda weird.

vsftpd.conf

local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
listen=YES
chroot_local_user=YES
allow_writeable_chroot=YES
local_root=/srv/ftp/$USER
userlist_enable=YES
userlist_file=/etc/vsftpd.user_list
userlist_deny=NO
local_max_rate=10000000000
max_clients=50
max_per_ip=5
ssl_enable=YES
force_local_logins_ssl=YES
force_local_data_ssl=YES
ssl_tlsv1=YES
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
rsa_private_key_file=/etc/ssl/certs/vsftpd.pem
require_ssl_reuse=NO
pam_service_name=vsftpd
hide_ids=YES
guest_enable=YES
guest_username=virtual
virtual_use_local_privs=YES
user_sub_token=$USER
seccomp_sandbox=NO

filezilla logs

2018-08-14 18:38:49 20823 1 Status: Connecting to 192.168.1.150:21...
2018-08-14 18:38:49 20823 1 Status: Connection established, waiting for welcome message...
2018-08-14 18:38:49 20823 1 Response: 220 (vsFTPd 3.0.3)
2018-08-14 18:38:49 20823 1 Command: AUTH TLS
2018-08-14 18:38:49 20823 1 Response: 234 Proceed with negotiation.
2018-08-14 18:38:49 20823 1 Status: Initializing TLS...
2018-08-14 18:38:49 20823 1 Status: Verifying certificate...
2018-08-14 18:38:49 20823 1 Status: TLS connection established.
2018-08-14 18:38:49 20823 1 Command: USER thirtykayftp
2018-08-14 18:38:49 20823 1 Response: 331 Please specify the password.
2018-08-14 18:38:49 20823 1 Command: PASS ************
2018-08-14 18:38:49 20823 1 Response: 230 Login successful.
2018-08-14 18:38:49 20823 1 Command: SYST
2018-08-14 18:38:49 20823 1 Response: 215 UNIX Type: L8
2018-08-14 18:38:49 20823 1 Command: FEAT
2018-08-14 18:38:49 20823 1 Response: 211-Features:
2018-08-14 18:38:49 20823 1 Response:  AUTH TLS
2018-08-14 18:38:49 20823 1 Response:  EPRT
2018-08-14 18:38:49 20823 1 Response:  EPSV
2018-08-14 18:38:49 20823 1 Response:  MDTM
2018-08-14 18:38:49 20823 1 Response:  PASV
2018-08-14 18:38:49 20823 1 Response:  PBSZ
2018-08-14 18:38:49 20823 1 Response:  PROT
2018-08-14 18:38:49 20823 1 Response:  REST STREAM
2018-08-14 18:38:49 20823 1 Response:  SIZE
2018-08-14 18:38:49 20823 1 Response:  TVFS
2018-08-14 18:38:49 20823 1 Response:  UTF8
2018-08-14 18:38:49 20823 1 Response: 211 End
2018-08-14 18:38:49 20823 1 Command: OPTS UTF8 ON
2018-08-14 18:38:49 20823 1 Response: 200 Always in UTF8 mode.
2018-08-14 18:38:49 20823 1 Command: PBSZ 0
2018-08-14 18:38:49 20823 1 Response: 200 PBSZ set to 0.
2018-08-14 18:38:49 20823 1 Command: PROT P
2018-08-14 18:38:49 20823 1 Response: 200 PROT now Private.
2018-08-14 18:38:49 20823 1 Status: Logged in
2018-08-14 18:38:49 20823 1 Status: Retrieving directory listing...
2018-08-14 18:38:49 20823 1 Command: PWD
2018-08-14 18:38:49 20823 1 Response: 257 "/" is the current directory
2018-08-14 18:38:49 20823 1 Command: TYPE I
2018-08-14 18:38:49 20823 1 Response: 200 Switching to Binary mode.
2018-08-14 18:38:49 20823 1 Command: PASV
2018-08-14 18:38:49 20823 1 Response: 227 Entering Passive Mode (192,168,1,150,204,101).
2018-08-14 18:38:49 20823 1 Command: LIST
2018-08-14 18:38:49 20823 1 Response: 150 Here comes the directory listing.
2018-08-14 18:38:49 20823 1 Response: 226 Directory send OK.
2018-08-14 18:38:49 20823 1 Status: Directory listing of "/" successful
2018-08-14 18:43:49 20823 1 Error: GnuTLS error -15: An unexpected TLS packet was received.
2018-08-14 18:43:49 20823 1 Status: Disconnected from server: ECONNABORTED - Connection aborted
2018-08-14 19:00:27 20823 1 Status: Disconnected from server

Thanks in advance.

Offline

#2 2018-08-19 18:09:43

Thirtykay
Member
Registered: 2018-08-14
Posts: 3

Re: vsFTPd - gnuTLS: error 15 : An unexpected TLS packet was received.

So,

No idea ?, i've looked at the log of vsFTPd and i've just noticed this:

DEBUG: Client "127.0.0.1", "Control connection terminated without SSL shutdown

Any idea ?

Offline

#3 2018-08-25 18:14:31

Thirtykay
Member
Registered: 2018-08-14
Posts: 3

Re: vsFTPd - gnuTLS: error 15 : An unexpected TLS packet was received.

Up

Offline

Board footer

Powered by FluxBB