Page 1 of 1

FTPS Problem: failed to retrieve directory listing

Posted: Tue May 31, 2011 2:48 pm
by frhey
Hello.

Server = wingFTPserver 3.8.7
Client = FileZilla 3.4.0
FTP and HTTPS works fine. No problems.

Connect and login to the server over FTPS (SSL/TSL) seems to be OK. But then comes a problem. After a few secounds of waiting the client disconnect the session: "failed to retrieve directory listing".

The Firewall has open ports on 990 tcp, 990 udp, 989 tcp and 989 udp and a NAT to the lokal adress 2.2.2.2.
(I change the IPs for this public board ;-) )

Here the domain-log from the server:
[02] Tue, 31 May 2011 16:12:49 (0000029) Connected from 111.111.111.111 (local address 2.2.2.2, port 990)
[04] Tue, 31 May 2011 16:12:49 (0000029) 220 Wing FTP Server 3.8.7 ready...
[03] Tue, 31 May 2011 16:12:50 (0000029) USER Administrator
[04] Tue, 31 May 2011 16:12:50 (0000029) 331 Password required for Administrator
[03] Tue, 31 May 2011 16:12:50 (0000029) PASS **********
[04] Tue, 31 May 2011 16:12:50 (0000029) 230 User Administrator logged in.
[03] Tue, 31 May 2011 16:12:50 (0000029) OPTS UTF8 ON
[04] Tue, 31 May 2011 16:12:50 (0000029) 200 UTF8 OPTS ON
[03] Tue, 31 May 2011 16:12:50 (0000029) PBSZ 0
[04] Tue, 31 May 2011 16:12:50 (0000029) 200 Command okay. PBSZ=0.
[03] Tue, 31 May 2011 16:12:50 (0000029) PROT P
[04] Tue, 31 May 2011 16:12:50 (0000029) 200 Encrypting Data Channel.
[03] Tue, 31 May 2011 16:12:50 (0000029) PWD
[04] Tue, 31 May 2011 16:12:50 (0000029) 257 "/" is current directory.
[03] Tue, 31 May 2011 16:12:50 (0000029) TYPE I
[04] Tue, 31 May 2011 16:12:50 (0000029) 200 Type set to I
[03] Tue, 31 May 2011 16:12:50 (0000029) PASV
[04] Tue, 31 May 2011 16:12:50 (0000029) 227 Entering Passive Mode (2,2,2,2,4,7)
[03] Tue, 31 May 2011 16:12:50 (0000029) MLSD
[02] Tue, 31 May 2011 16:13:11 (0000029) Closed session,disconnected from 111.111.111.111

Could you help me, please?

best regards
Frank

Re: FTPS Problem: failed to retrieve directory listing

Posted: Tue May 31, 2011 4:34 pm
by FTP
OK, If you tested with FTP correctly, but failed with FTPS, I think this problem is mostly due to Firewall/Router, so which firewall are you running? and do you use ISA?

Re: FTPS Problem: failed to retrieve directory listing

Posted: Wed Jun 01, 2011 1:03 pm
by frhey
This tip was enough :-)
Yes, it was the firewall. The problem is solved and FTPS is running now.

thank you.

best regards
Frank

Re: FTPS Problem: failed to retrieve directory listing

Posted: Wed Sep 28, 2011 3:21 pm
by mwaters31
Do we know what the fix was? Having same issue, different firewall.

Re: FTPS Problem: failed to retrieve directory listing

Posted: Wed Sep 28, 2011 5:16 pm
by FTP
Please have a look on this KB article: http://www.wftpserver.com/bbs/viewtopic.php?f=5&t=5" rel="nofollow

Re: FTPS Problem: failed to retrieve directory listing

Posted: Wed Sep 28, 2011 6:41 pm
by mwaters31
Hmm.. Still stuck at MLSD. Using fileZIlla as client. Have opened up ports 10000-10500 at firewall for both TCP and UDP to WING server. In Wireshark,WING server keeps responding on ports in the range of TCP >57340.

Re: FTPS Problem: failed to retrieve directory listing

Posted: Thu Sep 29, 2011 2:32 am
by FTP
I think your problem is not port, it is IP address, you must specify an internet IP address for the FTP Pasv Mode.

Re: FTPS Problem: failed to retrieve directory listing

Posted: Thu Sep 29, 2011 10:18 pm
by mwaters31
Please explain. I have entered the External FTP address in the correct box in the WING console. I have even static natted the internal FTP server address to its external address for outbound purposes.

Re: FTPS Problem: failed to retrieve directory listing

Posted: Mon Oct 03, 2011 8:38 am
by FTP
The passive reply message must contain an WAN IP address, then WAN user can connect to it.