none
FTP Passive mode issue - 425 Can't open data connection

    Question

  • Hi,

    On my MS FTP 6 (win 2003 server) i did the Passive FTP setup as per http://blog.bansheetechnologies.co.uk/2010/08/setup-passive-ftp-on-windows-2003-and.html 

    But when i connect thru Filezilla FTP client i get error:  425 Can't open data connection

    ...

    Status: Connected
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/tobaccot" is current directory.
    Command: TYPE I
    Response: 200 Type set to I.
    Command: PASV
    Response: 227 Entering Passive Mode (224,282,138,101,6,33).
    Command: LIST
    Response: 425 Can't open data connection.
    Error: Failed to retrieve directory listing


    But when i connect thru Command promt, it works fine..

    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    04-05-12  05:28AM       <DIR>          tobaonline.com
    226 Transfer complete.
    ftp: 63 bytes received in 0.00Seconds 63000.00Kbytes/sec.
    ftp> quote PASV
    227 Entering Passive Mode (224,282,138,101,6,12).
    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    04-05-12  05:28AM       <DIR>          tobaonline.com
    226 Transfer complete.
    ftp: 63 bytes received in 0.00Seconds 63000.00Kbytes/sec.
    ftp> cd tobaonline.com
    250 CWD command successful.
    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    04-05-12  05:28AM       <DIR>          data
    04-05-12  05:28AM       <DIR>          logs
    04-05-12  05:28AM       <DIR>          wwwroot
    226 Transfer complete.
    ftp: 138 bytes received in 0.00Seconds 138000.00Kbytes/sec.
    ftp> cd wwwroot
    250 CWD command successful.
    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls.
    04-05-12  05:28AM                  713 default.aspx
    226 Transfer complete.
    ftp: 53 bytes received in 0.00Seconds 53000.00Kbytes/sec.

    Any help?

    Thanks


    • Edited by Patsmk Friday, April 06, 2012 4:31 AM bold
    Thursday, April 05, 2012 10:10 PM

Answers

  • Well.. just a quick reply to MS FTP.. the biggest issue is or atleast WAS that your users can "run" out of their own directory ;)

    (even tho they enter in their personal directory.. if they go "up" one level they can actually see all user account maps etc.)

    as far as CMD goes.. from what i read it actually doesn't establish a passive connection untill it tries to display the files/maps in the directory (which is why i asked you to try and use that command.)

    I do suspect that your ports aren't fully open (which is why you gain this issue).

    PS: I will see if i can help out on your other issue too :)

    Regards,

    Marco


    Key4ce - IT professionals: www.key4ce.eu

    Sunday, April 08, 2012 3:51 PM

All replies

  • Hello,

    This isn't really my expertese (i dislike IIS FTP to start with) but since no one else is answering i figured i will give it a go.

    First of all.. i can see Filezilla is using LIST command (but cmd uses DIR.. what happens if you try list in cmd?)

    Secondary.. if you try it locally on the server (using filezilla)  is there any difference?

    Third.. is there any more information of the server side? some log? or anything like that?

    Regards,

    Marco


    Key4ce - IT professionals: www.key4ce.eu

    Saturday, April 07, 2012 6:12 PM
  • thanks for your reply, i searched and found a temporary solution of using CoreFTP LE FTP client which auto-connects in Active mode if fails Passive mode.

    actually i'm facing a more acute issue..  am held up in that...  but will open another thread for that..

    As you asked...  list in cmd ran into similar rough weather...

    ftp> dir
    200 PORT command successful.
    150 Opening ASCII mode data connection for /bin/ls
    04-06-12  06:27AM       <DIR>          tobacc..
    226 Transfer complete.
    ftp: 63 bytes received in 0.00Seconds 63000.00Kbyt
    ftp> list
    Invalid command.
    ftp> quote PASV
    227 Entering Passive Mode (184,82,138,101,12,224).
    ftp> quote LIST
    425 Can't open data connection.
    ftp> bye
    221

    I'll install Filezilla locally and try.

    I also don't like MS FTP but just thought it'd have smaller memory footprint than filezilla FTP server.

    thanks

    Sunday, April 08, 2012 1:59 PM
  • Well.. just a quick reply to MS FTP.. the biggest issue is or atleast WAS that your users can "run" out of their own directory ;)

    (even tho they enter in their personal directory.. if they go "up" one level they can actually see all user account maps etc.)

    as far as CMD goes.. from what i read it actually doesn't establish a passive connection untill it tries to display the files/maps in the directory (which is why i asked you to try and use that command.)

    I do suspect that your ports aren't fully open (which is why you gain this issue).

    PS: I will see if i can help out on your other issue too :)

    Regards,

    Marco


    Key4ce - IT professionals: www.key4ce.eu

    Sunday, April 08, 2012 3:51 PM