Koozali.org: home of the SME Server

FTP slow connection (probably ident) ???

Offline mishoboss

  • *
  • 11
  • +0/-0
FTP slow connection (probably ident) ???
« on: March 07, 2007, 12:09:41 PM »
Hi, I have a strange problem. I want to connect via FTP to an ibay's files directory using non admin account. I created a user "office" and put it in a group "storage_group". Then on the ibay I selected write=group and read=group. Then I installed the Remote User Access contrib to put the user directly in the ibay's files directory. So far everything is OK... but when I try to connect with FilleZilla FTP client I recieve this:
Quote
Status:   Connecting to 84.238.147.180 ...
Status:   Connected with 84.238.***.***. Waiting for welcome message...
Response:   220 192.168.90.1 FTP server ready
Command:   USER office
Response:   331 Password required for office.
Command:   PASS ********
Response:   230 User office logged in.
Command:   SYST
Response:   215 UNIX Type: L8
Command:   FEAT
Response:   211-Features:
Response:    MDTM
Response:    REST STREAM
Response:    SIZE
Response:   211 End
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is current directory.
Command:   TYPE A
Response:   200 Type set to A
Command:   PASV
Response:   227 Entering Passive Mode (192,168,90,1,129,28).
Command:   LIST


This is OK, but I can't see any files, can't upload, can't download... nothing.

Then I tried with SmartFTP and it freezes about 30 seconds and then shows the files. This is the client's output:
Quote
[12:47:15] SmartFTP v2.0.1000.6
[12:47:15] Resolving host name "84.238.***.***"
[12:47:15] Connecting to 84.238.***.*** Port: 21
[12:47:15] Connected to 84.238.***.***.
[12:47:15] 220 192.168.90.1 FTP server ready
[12:47:15] USER office
[12:47:15] 331 Password required for office.
[12:47:15] PASS (hidden)
[12:47:15] 230 User office logged in.
[12:47:15] SYST
[12:47:15] 215 UNIX Type: L8
[12:47:15] Detected Server Type: UNIX
[12:47:15] FEAT
[12:47:15] 211-Features:
[12:47:15]  MDTM
[12:47:15]  REST STREAM
[12:47:15]  SIZE
[12:47:15] 211 End
[12:47:15] PWD
[12:47:15] 257 "/" is current directory.
[12:47:15] TYPE A
[12:47:15] 200 Type set to A
[12:47:15] PASV
[12:47:15] 227 Entering Passive Mode (192,168,90,1,129,33).
[12:47:15] Opening data connection to 192.168.90.1 Port: 33057
[12:47:15] LIST -aL
[12:47:15] 0 bytes transferred. (N/A/s) (0 ms)
[12:47:55] Timeout (40s).
[12:47:55] Active Help: http://www.smartftp.com/support/kb/index.php/74
[12:47:55] Client closed the connection.
[12:47:55] Automatic failover of data connection mode from "Passive Mode (PASV)" to "Active Mode (PORT)".
[12:47:55] Resolving host name "84.238.***.***"
[12:47:55] Connecting to 84.238.***.*** Port: 21
[12:47:55] Connected to 84.238.***.***.
[12:47:55] 220 192.168.90.1 FTP server ready
[12:47:55] USER office
[12:47:55] 331 Password required for office.
[12:47:55] PASS (hidden)
[12:47:55] 230 User office logged in.
[12:47:55] SYST
[12:47:55] 215 UNIX Type: L8
[12:47:55] Detected Server Type: UNIX
[12:47:55] FEAT
[12:47:55] 211-Features:
[12:47:55]  MDTM
[12:47:55]  REST STREAM
[12:47:55]  SIZE
[12:47:55] 211 End
[12:47:55] PWD
[12:47:55] 257 "/" is current directory.
[12:47:55] TYPE A
[12:47:55] 200 Type set to A
[12:47:55] PORT 192,168,90,8,10,215
[12:47:55] 200 PORT command successful
[12:47:55] LIST -aL
[12:47:55] 150 Opening ASCII mode data connection for file list
[12:47:55] 1995 bytes transferred. (N/A/s) (0 ms)
[12:47:55] 226 Transfer complete.


The question is WHY? Why the first client doesen't shows anything and the second waits about 30 seconds and then shows the remote files. I have searched this forum a lot. I read about the ident problem and I enabled the 113 port in my router. Still nothing. Then I tried this: http://forums.contribs.org/index.php?topic=4476.msg15540#msg15540 but either I did something wrong because the different versions, either this is not the solution for me.

Please, help. I need a fast and reliable FTP server.
Thanks in advance.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: FTP slow connection (probably ident) ???
« Reply #1 on: March 07, 2007, 12:23:45 PM »
mishoboss

Did you also forward ports 21 & 115 ?
...

Offline mishoboss

  • *
  • 11
  • +0/-0
FTP slow connection (probably ident) ???
« Reply #2 on: March 07, 2007, 12:46:42 PM »
only 21
what is 115?
Now I managed to connect using active mode.

Offline raem

  • *
  • 3,972
  • +4/-0
FTP slow connection (probably ident) ???
« Reply #3 on: March 07, 2007, 12:54:56 PM »
mishoboss

> what is 115?

sftp
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: FTP slow connection (probably ident) ???
« Reply #4 on: March 07, 2007, 04:01:28 PM »
Quote from: "mishoboss"

Quote

...
[12:47:15] 227 Entering Passive Mode (192,168,90,1,129,33).
[12:47:15] Opening data connection to 192.168.90.1 Port: 33057
[12:47:15] LIST -aL
[12:47:15] 0 bytes transferred. (N/A/s) (0 ms)
[12:47:55] Timeout (40s).
[12:47:55] Active Help: http://www.smartftp.com/support/kb/index.php/74
[12:47:55] Client closed the connection.
[12:47:55] Automatic failover of data connection mode from "Passive Mode (PASV)" to "Active Mode (PORT)".
...

The question is WHY? Why the first client doesen't shows anything and the second waits about 30 seconds and then shows the remote files.


You seem to be ignoring the evidence before your eyes.

Passive mode does not work tthrough your router.

Attempting to port forward ftp through a router is difficult. I'd advise you to get rid of the router, and use the server in server-gateway mode. And/or to avoid use of ftp.

Offline mishoboss

  • *
  • 11
  • +0/-0
FTP slow connection (probably ident) ???
« Reply #5 on: March 08, 2007, 07:57:44 AM »
Yep, I read that line and put the clients to active mode, but I already posted the topic. Thanks and sorry for the stupid question.