|
Post by sockertopp on Jun 16, 2009 19:39:24 GMT 7
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?
|
|
|
Post by peterfu on Jun 17, 2009 5:17:44 GMT 7
hmm, I assume thats because You are using TLS - please check how it works with clear text (without TLS). br Peter
|
|
|
Post by sockertopp on Jun 17, 2009 17:03:00 GMT 7
TLS is already set to: "Disable TLS [default]" in the control panel in the web interface.
|
|
|
Post by peterfu on Jun 18, 2009 4:39:55 GMT 7
Ah OK, have checked it now on my system.
If I login, then I have also a small delay ( 2 - 3 seconds) - then it proceeds normal. If I now disconnect and reconnect again the delay is gone.
That may be a build in security feature of the pureftpd server to prevent brute-force attacks of passwords This is common on many servers. The relase notes of pureftpd mentions something like that:
br Peter
|
|
|
Post by sockertopp on Jun 18, 2009 15:18:59 GMT 7
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
|
|
|
Post by peterfu on Jun 19, 2009 1:30:04 GMT 7
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
|
|
|
Post by sockertopp on Jun 19, 2009 15:58:12 GMT 7
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.
|
|
|
Post by peterfu on Jun 19, 2009 18:53:45 GMT 7
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
|
|
Gesus
Junior Member
N5200PRO 3.00.04.5
Posts: 53
|
Post by Gesus on Jun 20, 2009 19:58:51 GMT 7
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.
Thanks and good-luck.
|
|
|
Post by sockertopp on Jun 22, 2009 16:41:03 GMT 7
Hi guys! I am only using local users. I am using your module, the problem is there in both cases.
Gesus, I set my permissions directly under users so that doesn't seem to have anything to do with it.
It's interesting to note that im not the only one with the problem. I do find it odd that we're the only ones having the problem. Or is everyone else just ignoring it?
Peterfu, do you know of any ways to contact Thecus technical personel and have them look at this forum thread?
|
|
|
Post by peterfu on Jun 28, 2009 13:15:40 GMT 7
The only way to contact thecus support is via esupport.thecus.com and raise a ticket there. There is also a technical represantive of thecus reading the forum at hexus. br Peter
|
|
|
Post by n5200wner on Jun 28, 2009 20:44:40 GMT 7
Hai peeps,
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.
This helped for me anyway.
gr
|
|
|
Post by sockertopp on Jun 29, 2009 15:44:45 GMT 7
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!
|
|
|
Post by peterfu on Jun 29, 2009 21:27:30 GMT 7
Thats realy a great and easy solution, bĂșt I would also be interested how it came into Your mind to check this - great job br Peter
|
|
|
Post by lucullus on Nov 21, 2013 20:35:33 GMT 7
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.
|
|