PDA

View Full Version : Transfert failed - Unable to change data channel protection to clear


TheDoctorII
06-13-2014, 05:01 AM
Hi,

So, first of all, basic informations :

FlashFXP 4.4.4 (build 2046) . Unregistered (trial version, planning on buying if it works :) )
OS : Windows 7 64 bits
FTP 1 : Dedicated server, FTP 2 : SYnology NAS behind a Freebox V6 (french ISP), W7 client : behind a arkoon firewall (or Freebox v6, depending on where I try to transfert the files)
W7 client runs a trend micro client/server antivirus (the other one has avast and the windows firewall)
Connection : FTP 1 : symetric opical fibre, FTP 2 : ADSL 10 mbps, W7 client : ADSL 10 mbps (or 5)

FTP 1 running on Debian 7 with ProFTPD, standalone mod (with allowforeignaddress on)
FTP 2 running on a synology NAS, FXP enabled and passive and FTP port rerouted through the Freebox

So, my issue is the following :

I'm unable to perform a file transfer.
I successfully connect the 2 FTP, but when it comes to tranfer the files, it doesn't work, though directory are created anyway.

Here is the log (sorry, i set language to english, but some of it is in french. If you can translate, just ask :))
[11:58:14] [L] TYPE I
[11:58:14] [L] 200 Type set to I.
[11:58:14] [L] SIZE Frank Herbert - Dune -1- Dune.epub
[11:58:15] [L] 550 Frank Herbert - Dune -1- Dune.epub: No such file or directory.
[11:58:15] [L] PROT C
[11:58:15] [L] 200 Protection level set to Clear.
[11:58:15] Unable to change data channel protection to clear.
[11:58:15] [L] Transfer Failed: /Téléchargements/Frank Herbert - Dune -1- Dune.epub
[11:58:15] [L] TYPE A
[11:58:15] [L] 200 Type set to A.
[11:58:15] [L] PROT P
[11:58:15] [L] 200 Protection level set to Private.
[11:58:15] [L] PASV
[11:58:15] [L] 227 Entering Passive Mode (192,168,0,10,216,243)
[11:58:15] [L] Opening data connection IP: x.x.x.x PORT: 55539
[11:58:15] [L] LIST -al
[11:58:15] [L] Connected. Negotiating SSL/TLS session
[11:58:15] [L] SSLv3 negotiation successful...
[11:58:15] [L] SSLv3 encrypted session using cipher AES256-SHA (256 bits)
[11:58:15] [L] 150 Opening ASCII mode SSL data connection for 'file list'.
[11:58:15] [L] 226 Transfer complete.
[11:58:15] [L] List Complete: 137 bytes in 0,38 second (0,1 KB/s)
[11:58:15] [R] PASV
[11:58:15] [R] 227 Entering Passive Mode (x,x,x,x,217,231).
[11:58:15] [R] Opening data connection IP: x.x.x.x PORT: 55783
[11:58:15] [R] MLSD
[11:58:15] [R] Connected. Negotiating SSL/TLS session
[11:58:15] [R] SSLv3 negotiation successful...
[11:58:15] [R] SSLv3 encrypted session using cipher DHE-RSA-AES256-SHA (256 bits)
[11:58:15] [R] 150 Ouverture d'une connexion de données en mode ASCII pour MLSD
[11:58:15] [R] 226 Téléchargement terminé
[11:58:15] [R] List Complete: 2 KB in 0,23 second (2,9 KB/s)
[11:58:15] Transfer queue completed
[11:58:15] Transferred 0 Files (0 bytes) in 0,79 second (0,0 KB/s)



Well, if you can (or try to) help me, thanks in advance :)


Best regards, TheDoctor

bigstar
06-13-2014, 06:54 AM
It looks like the reason for the failure is this line here

[11:58:15] Unable to change data channel protection to clear.

For SSL FXP transfers you need ProFTPD 1.3.5rc4 or newer.

To transfer the files without SSL both servers need to allow changing data channel to clear (unencrypted).

TheDoctorII
06-13-2014, 07:26 AM
It looks like the reason for the failure is this line here

[11:58:15] Unable to change data channel protection to clear.

For SSL FXP transfers you need ProFTPD 1.3.5rc4 or newer.

To transfer the files without SSL both servers need to allow changing data channel to clear (unencrypted).

Ok, thanks. I'm on 1.3.4a-5. Il will update and get back to you :)

BTW, I wish to keep the encryption.

Thanks a lot.

TheDoctorII
06-18-2014, 02:59 AM
Hello again :) Time for an update !

So, still having trouble, but not the same.

Indeed, I tried to update my version of ProFTPd via the sources (since I'm using Deb7, I do not have the latest version on the reps), but I got some errors trying to do it (and with the modules when reinstalling), and I spent a large amount of time trying to fix it, without success.

So, I deinstalled ProFTPd and installed Pure-FTPd 1.0.36-1.1(a lot easier, by the way).
Both FTPs use Explicit TLS and work fine (and Pure-FTPd is said to support FXP, and specifically FlashFXP).

But when it comes to files transfer, the connection with the dedicated server (PureFTPD) times out after 1 minute (exactly), leaving only a 0 kB file on the NAS instead of the full files.

Here's the log : [09:46:02] [L] TYPE I
[09:46:02] [L] 200 Type set to I.
[09:46:02] [L] SIZE 03. C2C - Someday.flac
[09:46:02] [L] 550 03. C2C - Someday.flac: No such file or directory.
[09:46:02] [L] PROT C
[09:46:02] [L] 200 Protection level set to Clear.
[09:46:02] [R] PROT C
[09:46:02] [R] 200 Data protection level set to "clear"
[09:46:02] [R] TYPE I
[09:46:02] [R] 200 TYPE is now 8-bit binary
[09:46:02] [R] PASV
[09:46:02] [R] 227 Entering Passive Mode (x,x,x,x,17,225)
[09:46:02] [L] PORT x,x,x,x,17,225
[09:46:02] [L] 200 PORT command successful.
[09:46:02] [L] STOR 03. C2C - Someday.flac
[09:46:02] [L] 150 Opening BINARY mode data connection for '03. C2C - Someday.flac'.
[09:46:02] [R] RETR 03. C2C - Someday.flac
[09:47:02] [R] Transfer Failed: 03. C2C - Someday.flac
[09:47:02] [R] Connection lost: Smell of napalm (Duration: 1 minute 12 seconds / Idle: 1 minute 0 second)
[09:47:02] [L] 226 Transfer complete.
[09:47:02] [L] TYPE A
[09:47:02] Transferred 0 Files (0 bytes) in 1 minute 0 second (0,0 KB/s)
[09:47:02] 1 File Failed
[09:47:03] [L] 200 Type set to A.
[09:47:03] [L] PROT P
[09:47:03] [L] 200 Protection level set to Private.
[09:47:03] [L] PASV
[09:47:03] [L] 227 Entering Passive Mode (192,168,0,10,216,241)
[09:47:03] [L] Opening data connection IP: x.x.x.x PORT: 55537
[09:47:03] [L] LIST -al
[09:47:03] [L] Connected. Negotiating SSL/TLS session
[09:47:03] [L] SSLv3 negotiation successful...
[09:47:03] [L] SSLv3 encrypted session using cipher AES256-SHA (256 bits)
[09:47:03] [L] 150 Opening ASCII mode SSL data connection for 'file list'.
[09:47:03] [L] 226 Transfer complete.
[09:47:03] [L] List Complete: 1*021 bytes in 0,36 second (1,0 KB/s)
[09:47:03] Transfer queue completed
[09:47:03] Transferred 0 Files (0 bytes) in 1 minute 0 second (0,0 KB/s)
[09:47:03] 1 File Failed

http://nsa33.casimages.com/img/2014/06/18/140618100540749355.png

PS : Pardon my english, I'm French :):)


Best regards,
TheDoctor

TheDoctorII
06-26-2014, 01:30 AM
Up :) Sorry if you were just busy.