Can't open data connection.

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
MattM
500 Command not understood
Posts: 4
Joined: 2011-06-01 09:50

Can't open data connection.

#1 Post by MattM » 2011-06-01 09:58

Sorry for asking this common question yet again, but I can't seem to figure out the problem and am hoping for the help of the FTP-wizards here in the forum!

I set up a FileZilla server, forwarded all ports etc. pp. and I can connect from the outside using PASV. However, opening a data connection consistently fails. I've been using ftptest.net to test my connection.

I'm using a custom port for the initial FTP connection (not 21), but the standard port range for passive mode. Both are forwarded from my router to the machine on which the FTP server runs.

Thanks a lot for your help!

Here's an example server log:

Code: Select all

(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> Connected, sending welcome message...
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> 220 FileZilla Server version 0.9.37 beta
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> CLNT https://ftptest.net/ on behalf of XX.XX.XX.XX
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> 200 Don't care
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> USER Thinkpad
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> 331 Password required for thinkpad
(000003)01.06.2011 11:27:32 - (not logged in) (62.75.138.232)> PASS ********
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 230 Logged on
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> SYST
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 215 UNIX emulated by FileZilla
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> FEAT
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 211-Features:
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  MDTM
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  REST STREAM
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  SIZE
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  MLST type*;size*;modify*;
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  MLSD
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  AUTH SSL
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  AUTH TLS
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  PROT
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  PBSZ
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  UTF8
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  CLNT
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)>  MFMT
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 211 End
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> PWD
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 257 "/" is current directory.
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> TYPE I
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 200 Type set to I
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> PASV
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> 227 Entering Passive Mode (YY,YY,YY,YY,10,172)
(000003)01.06.2011 11:27:32 - thinkpad (62.75.138.232)> MLSD
(000003)01.06.2011 11:27:43 - thinkpad (62.75.138.232)> 425 Can't open data connection.
(000003)01.06.2011 11:27:43 - thinkpad (62.75.138.232)> disconnected.

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Can't open data connection.

#2 Post by boco » 2011-06-01 15:06

First, there is no standard port range for Passive mode. The port from the log is 2732, is that port in your configured range?
Both are forwarded from my router to the machine on which the FTP server runs.
And are both opened in the firewall?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

MattM
500 Command not understood
Posts: 4
Joined: 2011-06-01 09:50

Re: Can't open data connection.

#3 Post by MattM » 2011-06-01 16:47

Thanks for your suggestions.
boco wrote:First, there is no standard port range for Passive mode. The port from the log is 2732, is that port in your configured range?
I didn't know that, I thought I had read of a standard port range. Thanks for pointing that out! In any case, I just set a custom port range in FileZilla matching the forwarded range and it doesn't change the situation (a port within the forwarded range is now shown in the log). The range is above 30000.
boco wrote: And are both opened in the firewall?
I'm just using the Windows XP Firewall, and there doesn't seem to be a straight-forward way to open a port range. Anyway, switching off the firewall doesn't fix the problem....

A side question: I read that for passive mode, the firewall/router on the server side are relevant, but not the ones on the client side. Is that entirely true? Could it be that I'll be unable to connect from some restricitve environment such as a university network? It's not directly relevant to my current problem, because I'm using the Online FTP tester, but it would be good to know for the future.

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: Can't open data connection.

#4 Post by boco » 2011-06-01 19:43

Do you have any antivirus or other security programs? Many o' them come with firewall...
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

MattM
500 Command not understood
Posts: 4
Joined: 2011-06-01 09:50

Re: Can't open data connection.

#5 Post by MattM » 2011-06-07 08:33

boco wrote:Do you have any antivirus or other security programs? Many o' them come with firewall...
No, I don't have any other firewalls...I'm at a loss. Could it be that my router is simply incapable? It's a pretty standard, but a little dated Netgear WGT643...

EDIT: Partial success: FTP access works when I put the FTP server machine into the DMZ. I'm happy that it works, but obviously I'd rather not use a DMZ. What does it mean that it works in the DMZ but not with normal port forwarding? I.e. what do I have to change to make it work without DMZ? Is the forwarding set up incorrectly? Anything else?

Thanks again!

cpca
504 Command not implemented
Posts: 9
Joined: 2011-06-06 13:53
First name: Andrew
Last name: Owen-jones
Location: Cape Town South Africa

Re: Can't open data connection.

#6 Post by cpca » 2011-06-07 10:54

If it works in the DMZ then i would think that your NAT is not setup correctly make sure that you are forwarding to the correct ip of the server that has FileZilla on it. how is filezilla setup to obtain your external ip address? and are you using a DYNDNS account or fixed ip address?

MattM
500 Command not understood
Posts: 4
Joined: 2011-06-01 09:50

Re: Can't open data connection.

#7 Post by MattM » 2011-06-07 16:01

cpca wrote:If it works in the DMZ then i would think that your NAT is not setup correctly make sure that you are forwarding to the correct ip of the server that has FileZilla on it. how is filezilla setup to obtain your external ip address? and are you using a DYNDNS account or fixed ip address?
Filezilla gets the external IP from my dyndns address, which seems to work fine.

Regarding the NAT: I think the IP settings for the port forwarding are correct. The server computer has a static local IP within my home network, and the ports are forwarded to that IP. This seems to work fine for other applications. All forwards are set to TCP.

Maybe I'll try a hard reset of the router...I've read that sometimes, they start getting permanent problems after a while...

Post Reply