I am experiencing some problems with my Thecus FTP server. Everything is working fine, the performance in transfers is excellent. But when I connect to the Thecus over FTP it takes approx. 20s to log in. This is the log file of the login and where it stops:
Status: Connecting to 192.168.1.149:21... Status: Connection established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd [TLS] ---------- Response: 220-You are user number 1 of 50 allowed. Response: 220-Local time is now 14:25. Server port: 21. Response: 220-This is a private system - No anonymous login Response: 220 You will be disconnected after 15 minutes of inactivity. Command: USER sebbe Response: 331 User sebbe OK. Password required Command: PASS *****
This is where the login attempt freezes. It just sits there doing nothing for 10-20 seconds until:
Response: 230-User sebbe has group access to: smbusers Response: 230 OK. Current restricted directory is / Command: OPTS UTF8 ON Response: 200 OK, UTF-8 enabled Status: Connected Status: Retrieving directory listing... Command: PWD Response: 257 "/" is your current location Status: Directory listing successful
Before and after the freeze, everything happens REALLY fast. I am connected to the Thecus via 1gbit so its not an issue of connection lag. Any Ideas? Peterfu?
Thank you for your research Peter! Do you know if it is possible to configure the server to lower the incremental delay? Right now its like 10-15 seconds which is waaay too long. People will call me and ask me why the ftp is broken before they get past the freeze part
No idea and I've found also nothing on the pureftpd website and also nothing using google. There is also nothing in the description of all the possible setting. Your described 10 - 15 seconds delay is much longer than my delay - can You check if the delay decrements after a first succesfull login (of course using the same user)? br Peter
The time does not decrement. I have now also tried from different FTP clients, different computers both Mac and PC. I have tried PASV and PORT. There are no differences. This is definitely a server problem. Could it have something to do with ACL or user accounts in any way?
UPDATE: I enabled anonymous login on the server and tried connection without a username or password. It instantly logged in, no delay whatsoever. The user cant enter any directories since it does not have the permissions. So theres something fishy with the user authentication process.
Last Edit: Jun 19, 2009 16:07:09 GMT 7 by sockertopp
Do You use local users or ADS Users ? I have only local users and notice only a small delay. Ahh. I never have asked - do YOu use the PUREFTPD module or the build in ftp server? (I use the module) br Peter
I experienced this problem with the build that is on the N5200. I installed the PureFTPd module instead, hoping it would correct the problem. It didn't.
I put it down to my NAS just getting slower with age because I didn't remember the delay being so significant (>30secs), but maybe it was.
Recently, I also noticed that enabling anonymous login and logging in as that user meant there was no delay. I don't think this removed the delay for my other ftp users though, but I didn't check that especially.
I'll be interested to see if you find a solution or the reason for the problem, though what peterfu says about it being a security measure seems most likely, particularly considering that it doesn't occur with anonymous login.
Also, to answer peterfu's question: delay doesn't decrease with multiple logins using the same account, nor does it when I disconnect and reconnect immediately using the same account.
My user accounts are setup in accounts>users and I've set their permissions using the ACL settings in storage>folders. Not sure if this is of any significance to your enquiries; but I've only set permissions for 'groups' as opposed to 'users' in my ACL settings, though I guess this is probably the norm.
I had the same problem. For some reason this had something to do with DNS Relay on my router. I have a D-Link router and wen I removed the V for "Enable DNS Relay" the FTP worked like a charm so I think you guys have to look at you DNS relaying and DNS settings.
How did you EVER think of that? It worked! The login process is now down to around a second which is definitely acceptable. I would never have thought of something like that. Thank you VERY MUCH. Also big thanks to the rest of you for trying to help me, especially you Peter!
I know this is a old thread but just in case it helps somebody -I spend a longtime trying to find info on the subject.
I had exactly the same behavior: slow log in to FTP. After that the read/write speed was normal. To log in I had to wait 40-50 sec before the FTP server responded back.
The only difference is that I don't know what PureFTPd is of if I have it on my Thecus N5200Pro.
In my case the issue started immediately after I upgrade the firmware to the latest version 2.00.18.4.
After lots of fiddling, it turn out that the problem was the invalid credentials of the domain account that was configured in the N5200 to enable the ADS/NT support (Accounts>Authentication). The password of that domain account was changed many times over since the N5200 was firts configured but the impact was only felt after the firmware upgrade. It probably needed to refresh some accounts lists or maybe the computer account of the Thecus device itself after the upgrade.
After updating the password in the Accounts>Authentication screen, the log in to FTP response was instantaneous.
Even though the N5200 is joined to a domain, the problem manifested itself when trying to connect to the FTP server using a local account.