S
S
sprocker2014-07-03 15:25:42
FTP
sprocker, 2014-07-03 15:25:42

FAR and FTP: why doesn't it get past "Requesting folder name"?

Good day to all!
The situation is as follows: FTP server behind NAT (Filezilla 0.9.44)
Forwarded ports: 21, 35601-35650 (passive)
When connecting via Filezilla Client to an external IP and port, everything goes well, enters passive mode, retrieves the list of directories. Works in general.
It is worth trying to connect via FAR - it stops at "Requesting folder name"
Router Mikrotik rb2011-UiAS-2HnD
Here are the filezilla server logs:

(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> Connected, sending welcome message...
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> 220-FileZilla Server version 0.9.44 beta
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> 220-written by Tim Kosse ([email protected])
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> USER yuri
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> 331 Password required for yuri
(000803)03.07.2014 18:41:43 - (not logged in) (83.149.35.221)> PASS ****************
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 230 Logged on
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> SYST
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 215 UNIX emulated by FileZilla
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> PWD
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 257 "/" is current directory.
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> TYPE I
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 200 Type set to I
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> REST 0
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 350 Rest supported. Restarting at 0
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> PWD
(000803)03.07.2014 18:41:43 - yuri (83.149.35.221)> 257 "/" is current directory.
(000803)03.07.2014 18:41:44 - yuri (83.149.35.221)> PASV
(000803)03.07.2014 18:41:44 - yuri (83.149.35.221)> 227 Entering Passive Mode (10,10,2,12,139,35)
(000803)03.07.2014 18:41:44 - yuri (83.149.35.221)> TYPE A
(000803)03.07.2014 18:41:44 - yuri (83.149.35.221)> 200 Type set to A
(000803)03.07.2014 18:41:48 - yuri (83.149.35.221)> disconnected.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2014-07-03
@sprocker

Your server gives its internal (gray) IP in the PASV command (10.10.2.12). According to the standard, the client must understand that this is a gray IP and not connect, which is what other clients do. But Filezilla Client is smarter than other clients and upon finding such a PASV it tries to use the white address of the router instead of the gray address and everything works out for it (Connection / FTP / Passive mode / "Use the server's external IP address instead").
Either use smart versions of FTP clients
Or configure the server to give the white address of the router in the PASV command
Or (I don’t know if Mikrotik supports it) enable FTP protocol inspection (then the router will modify the PASV command and replace the gray address with its external white one).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question