FTP server MLSD timeout

Please post questions and issues pertaining to share access and file permission here.

FTP server MLSD timeout

Postby Esseci » Thu May 31, 2012 12:26 am

Hi,
I have an issue with a Duo,
I've activated the FTP service without any problem.
I can connect via a client (Filezilla) but I have a folder with a lot of files (pictures) and when I move in and I the client sends the MLSD command I receive the answer:
150 Opening ASCII mode data connection for MLSD
but then it goes in timeout.
I tried to increment the timeout without any results.
I tried with another client (Smart Ftp), the same.
I installed an ftp server in a pc client in the same network of the Nas and by that server I can list every folder.

Perhaps there some memory limit in my Readynas duo ?
Thanks
Esseci
ReadyNAS Newbie
 
Posts: 12
Joined: Thu May 31, 2012 12:08 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Thu May 31, 2012 3:49 am

What firmware is running on the Duo?

Is the client on the same network as the NAS?
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby Esseci » Thu May 31, 2012 8:21 am

Hi thanks for your quick replay,
I updated the firmware to the last one 4.1.8.
The problem is with a client outside of the LAN.

FTP on NAS is so configured:
Port: 40
Auth: User
Paasive ports: 5000 - 5004
Masq: IP Publlico
Obviously on the router ports 40, 5000, 5001,5002,5003,5004 are forwarded to the Nas.


I've tried transfering some files to and from the Nas, the only problem is MLSD on the big folders.

With a client on the local network there is no problem (but I had to remove the public IP from the masquerade field on the Nas), just a bit slow because of the many files.
Esseci
ReadyNAS Newbie
 
Posts: 12
Joined: Thu May 31, 2012 12:08 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Thu May 31, 2012 8:35 am

There is no need for the masquerade with FileZilla, since it will detect the private address and substitute the public address automatically.

How big is this folder?

If you try active mode, does that work around the problem?
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby Esseci » Thu May 31, 2012 9:15 am

I've made some more tests and I have to correct myself:
I've tried transfering some files to and from the Nas
I've tried transferring from outside to the Nas and it's working, but transfering from the Nas to a client ouside the LAN it's very difficult because it continuously falls in timeout and then retrieve of the file.

I've tried with an ftp server on a pc on the local network, and the transfer in and from outside it's perfect.
Esseci
ReadyNAS Newbie
 
Posts: 12
Joined: Thu May 31, 2012 12:08 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby pugilares » Sun Jun 03, 2012 6:02 am

StephenB wrote:There is no need for the masquerade with FileZilla, since it will detect the private address and substitute the public address automatically.


Is there any way to access FTP from outside and inside without the need to change the masquerade setting and without Filezilla at the same time?

Personally I use Filezilla on my laptop so it's no problem for me. But I would like to give an access to the limited part of my FTP to the guests. I do not have control over what FTP client will be used by guest(s). At the same time I want FTP access for me from both outside and from inside of my LAN. Please, any ideas how to configure my ReadyNAS Duo v1 or my LAN in this matter.
pugilares
Advanced ReadyNAS User
 
Posts: 125
Joined: Tue May 29, 2012 6:09 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Sun Jun 03, 2012 10:57 am

pugilares wrote:
StephenB wrote:There is no need for the masquerade with FileZilla, since it will detect the private address and substitute the public address automatically.


Is there any way to access FTP from outside and inside without the need to change the masquerade setting and without Filezilla at the same time?

Personally I use Filezilla on my laptop so it's no problem for me. But I would like to give an access to the limited part of my FTP to the guests. I do not have control over what FTP client will be used by guest(s). At the same time I want FTP access for me from both outside and from inside of my LAN. Please, any ideas how to configure my ReadyNAS Duo v1 or my LAN in this matter.
Getting it to work with any FTP client outside the LAN requires you to set the masquerade to be your external ddns name.

On my network, FileZilla will work inside the LAN even if the masquerade is set that way (and if I connect using the external ddns name). That behavior might be router dependent - it works because "inside" packets that are addressed to my router's external address are still forwarded according to my port forwarding rules.
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby pugilares » Sun Jun 03, 2012 11:20 am

In case I try to connect with Filezilla to my external domain name from inside of my LAN I can see that Filezilla tries to connect to my external IP address. After some time connection is timeouted. Any hint for router configuration? I already gave my LAN router a hostname, the same as my external domain name. I can see some settings within "advanced routing" tab. It will be something there, won't it?
pugilares
Advanced ReadyNAS User
 
Posts: 125
Joined: Tue May 29, 2012 6:09 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Sun Jun 03, 2012 12:54 pm

It just worked when I tried it, I guess it is router dependent.

What happens if you connect with FileZilla to the internal ReadyNAS address, but specify active FTP?
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby pugilares » Mon Jun 04, 2012 7:58 am

Yes, I also think this is a matter of the router. I believe that it's possible to configure the router not to go outside for specified connections. But I don't know how :-)

When I try to connect with Filezilla from inside of my LAN to my FTP using my external domain name, and I choose active FTP mode, then I can see that Filezilla goes to external IP of my router and then timeout.
pugilares
Advanced ReadyNAS User
 
Posts: 125
Joined: Tue May 29, 2012 6:09 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Mon Jun 04, 2012 12:48 pm

pugilares wrote:When I try to connect with Filezilla from inside of my LAN to my FTP using my external domain name, and I choose active FTP mode, then I can see that Filezilla goes to external IP of my router and then timeout.
And if you are ont the LAN and use active FTP mode to connect to the internal IP address of the NAS, what happens?
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby pugilares » Tue Jun 05, 2012 12:04 am

Then it seems to work fine! Strange :-)

Thank you very much for the tip!
pugilares
Advanced ReadyNAS User
 
Posts: 125
Joined: Tue May 29, 2012 6:09 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Tue Jun 05, 2012 3:02 am

It works because the masquerade is only used on the passive mode ports.
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Re: FTP server MLSD timeout

Postby Esseci » Tue Jun 05, 2012 7:59 am

StephenB wrote:There is no need for the masquerade with FileZilla, since it will detect the private address and substitute the public address automatically.

How big is this folder?

If you try active mode, does that work around the problem?


The folder contains more than 2500 files, but localy (Client in the LAN) it works perfectly with the NAS.

Outside, in active mode it just connects to the NAS but I cannot navigate in any folder, it goes in timeout but it should depend on some limit in my firewall , I'll have to check it better.

Moreover
1. outside I can connect to an ftp server running on a pc in the same LAN as the Nas and it works perfectly in every folder and I can any download files from the server.
2. If I try to download a file from the NAS (passive mode), it stops and restarts continuously.
Thanks
Esseci
ReadyNAS Newbie
 
Posts: 12
Joined: Thu May 31, 2012 12:08 am
ReadyNAS: Duo

Re: FTP server MLSD timeout

Postby StephenB » Tue Jun 05, 2012 10:16 am

Do you have jumbo frames turned on?

Also, does your PC server have a folder of similar size?
User avatar
StephenB
Incurable ReadyNAS Junkie
 
Posts: 5089
Joined: Mon Oct 05, 2009 5:08 pm
ReadyNAS: Pro

Next

Return to Share Access and File Permission



Who is online

Users browsing this forum: Google [Bot] and 4 guests