Erro GnuTLS -15: Um pacote TLS inesperado foi recebido ao configurar o vsftpd com SSL

2

Eu tenho um Ubuntu 14.04 no EC2 com o vsftpd 3.0.2

Eu configurei o SSL certs e meu vsftpd.conf é:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
require_ssl_reuse=NO
debug_ssl=YES
validate_cert=NO
ssl_ciphers=HIGH
pasv_address=[***** public IP ******]
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048

Ao se conectar do FileZilla usando 'FTP com FTP explícito sobre TLS', recebo o seguinte:

Status: Resolving address of tcff-ftp.zuriar.net
Status: Connecting to [********]:21...
Status: Connection established, waiting for welcome message...
Response:   220 (vsFTPd 3.0.2)
Command:    AUTH TLS
Response:   234 Proceed with negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Command:    USER [******]
Status: TLS/SSL connection established.
Response:   331 Please specify the password.
Command:    PASS ************
Response:   230 Login successful.
Command:    OPTS UTF8 ON
Response:   200 Always in UTF8 mode.
Command:    PBSZ 0
Response:   200 PBSZ set to 0.
Command:    PROT P
Response:   200 PROT now Private.
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/"
Command:    TYPE I
Response:   200 Switching to Binary mode.
Command:    PASV
Error:  GnuTLS error -15: An unexpected TLS packet was received.
Error:  Disconnected from server: ECONNABORTED - Connection aborted
Error:  Failed to retrieve directory listing

O que é essa mensagem de erro e como corrigi-la? Tanto quanto eu posso dizer é algo a ver com a mudança para o modo passivo ... obrigado.

    
por Zuriar 24.09.2014 / 13:35

0 respostas

Tags