LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-30-2016, 10:02 PM   #1
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 56

Rep: Reputation: 1
vsftpd and explicit ssl (gnutls error)


I had an ftp configured through vsftpd limited to ssl (tls) connections on Slackware64 14.1. I decided to upgrade to 14.2, Connecting to the server still works but now I am getting disconnects when trying to LIST larger directories. The error is:
Code:
GnuTLS error -15: An unexpected TLS packet was received.
Things I have tried:

adding a line to my vsftp.conf file: enable_writeable_chroot=YES
reinstalling gnutls
downgrading to vsftpd 3.0.2 (same error), 2.3.4 (complains about a missing ssl.so file... ssl package too new?)
creating a new self-signed certificate
logging the protocol (stops at LIST)
increasing accept/connect timeouts

nothing seems to work.
Here is my config, if an option is missing, it is default:
Code:
background=YES
listen=YES
listen_address=<removed> (this is correct)
pasv_enable=YES
pasv_addr_resolve=YES
pasv_address=<removed> (this is correct)
#
# User to run daemon as
nopriv_user=vsftp
ftp_username=ftp
#
# Ftp ports (the following port options are correct and have the correct ports forwarded on the router)
connect_from_port_20=YES
ftp_data_port=20
listen_port=21
pasv_min_port=8001
pasv_max_port=8050
#
# SSL (force options for a SSL only server)
ssl_enable=YES
ssl_tlsv1=YES
ssl_ciphers=HIGH
rsa_cert_file=/etc/ssl/certs/server.crt
rsa_private_key_file=/etc/ssl/private/server.key
require_ssl_reuse=NO
#
# Timeouts
accept_timeout=10
connect_timeout=10
idle_session_timeout=3600
#
# Information messages
setproctitle_enable=YES
ftpd_banner=Welcome to the my ftp.
#
# Access limits and controls
write_enable=YES
max_clients=10
max_per_ip=3
#
# Preferences
hide_ids=YES
#
# Anonymous FTP options
anonymous_enable=NO
#
# Local user access
local_enable=YES
local_root=/ftp/
local_max_rate=500000
local_umask=0022
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list (This exists, is writeable by vsftpd:ftp and has one user in it.)
allow_writeable_chroot=YES
virtual_use_local_privs=YES
#
# Logging
vsftpd_log_file=/var/log/vsftpd.log
xferlog_enable=YES
Any help is appreciated, TIA.
 
Old 08-31-2016, 10:41 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Do you have a corresponding entry in /var/log/vsftp.log ?
Also, is the server set to active or passive mode or is the server sitting behind a proxy or NAT router?
 
Old 08-31-2016, 11:00 AM   #3
av2zeal
Member
 
Registered: Jul 2008
Distribution: Slackware64
Posts: 56

Original Poster
Rep: Reputation: 1
What do you mean by corresponding entry? vsftpd.log exists, it is being written to, but doesn't have error messages in it. vsftp.log does NOT exist.
The server is set to passive mode.
I am not behind a proxy, but I am behind a NAT Router that has all of the ports in the vsftpd.conf file forwarded to the correct ports on the correct internal ip.
I have no problem connecting to it from outside the network, the connection drops when i try to LIST a directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect to ftp explicit over tls/ssl mathewparet Linux - General 2 11-25-2012 08:31 AM
CentOS 6.2 and vsftpd issue w/ explicit FTP over TLS Kaiser Soze Linux - Server 1 07-27-2012 12:14 AM
[SOLVED] 13.37 vsftpd issue with Explicit FTP over TLS Kaiser Soze Slackware 1 05-28-2012 11:51 PM
GnuTLS error -53: Error in the push function | vsftpd and explicit FTP over TLS Kaiser Soze Linux - Server 0 09-05-2011 05:53 PM
why i can not install gnutls?(gaim,ssl,msn) lovelinux Linux - Software 1 04-02-2004 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration