Jump to content


Photo

Timeout with Win98SE using SSL/TLS and encrypted data channel


  • Please log in to reply
6 replies to this topic

#1 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 February 2006 - 06:17 AM

Hi, using v1.5.7.19 on Windows 98SE I'm have a problem getting a directory listing when using SSL/TLS and data channel encryption is enabled. It times out retrieving the directory listing. If the data channel is not encrypted then it works without problem. The FTP server is Serv-U.

#2 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 February 2006 - 10:12 AM

I've just tested it on my Windows 98 SE installation. I'm able to sucessfully establish an encrypted data connection to Servu 6.x on localhost (127.0.0.1) and to remote FTP servers running Gene6 and Blackmoon FTP server.

Tested with SmartFTP Client which uses the latest FTP Library version.

+- System -----------------------------
Microsoft Windows 98 SE

ServU on local host
[03:06:32] SmartFTP v2.0.995.5
[03:06:32] Resolving host name "localhost"
[03:06:32] Connecting to 127.0.0.1 Port: 21
[03:06:32] Connected to localhost.
[03:06:32] 220 Serv-U FTP Server v6.0 for WinSock ready...
[03:06:32] AUTH TLS
[03:06:32] 234 AUTH command OK. Initializing SSL connection.
[03:06:32] Connected. Exchanging encryption keys...
[03:06:32] Session Cipher: 128 bit RC4
[03:06:33] TLS encrypted session established.
[03:06:33] PBSZ 0
[03:06:33] 200 PBSZ command OK. Protection buffer size set to 0.
[03:06:33] USER mb
[03:06:33] 331 User name okay, need password.
[03:06:33] PASS (hidden)
[03:06:33] 230 User logged in, proceed.
[03:06:33] SYST
[03:06:33] 215 UNIX Type: L8
[03:06:33] FEAT
[03:06:33] 211-Extension supported
[03:06:33] AUTH TLS
[03:06:33] SSCN
[03:06:33] PBSZ
[03:06:33] PROT
[03:06:33] CCC
[03:06:33] CLNT
[03:06:33] MDTM
[03:06:33] MDTM YYYYMMDDHHMMSS[+-TZ];filename
[03:06:33] SIZE
[03:06:33] SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
[03:06:33] REST STREAM
[03:06:33] XCRC filename;start;end
[03:06:33] MODE Z
[03:06:33] 211 End
[03:06:33] Detected Server Software: Serv-U 5.x/6.x
[03:06:33] CLNT SmartFTP 2.0.995
[03:06:33] 200 Noted.
[03:06:33] PWD
[03:06:33] 257 "/" is current directory.
[03:06:35] CWD /Debugger
[03:06:35] 250 Directory changed to /Debugger
[03:06:35] PWD
[03:06:35] 257 "/Debugger" is current directory.
[03:06:35] Compression disabled for private IP addresses.
[03:06:35] TYPE A
[03:06:35] 200 Type set to A.
[03:06:35] PROT P
[03:06:35] 200 PROT command OK. Using private data connection.
[03:06:35] PASV
[03:06:35] 227 Entering Passive Mode (127,0,0,1,4,29)
[03:06:35] Opening data connection to 127.0.0.1 Port: 1053
[03:06:35] LIST -aLT
[03:06:35] Connected. Exchanging encryption keys...
[03:06:35] 150 Opening ASCII mode data connection for /bin/ls.
[03:06:35] Session Cipher: 128 bit RC4
[03:06:35] TLS encrypted session established.
[03:06:35] 226 Transfer complete.
[03:06:35] 133 bytes transferred. (743 bytes/s) (179 ms)
[03:06:37] CWD /
[03:06:48] 250 Directory changed to /
[03:06:49] PWD
[03:06:49] 257 "/" is current directory.
[03:06:49] Compression disabled for private IP addresses.
[03:06:49] PASV
[03:06:49] 227 Entering Passive Mode (127,0,0,1,4,31)
[03:06:49] Opening data connection to 127.0.0.1 Port: 1055
[03:06:49] LIST -aLT
[03:06:49] Connected. Exchanging encryption keys...
[03:06:49] Session Cipher: 128 bit RC4
[03:06:49] TLS encrypted session established.
[03:06:49] 150 Opening ASCII mode data connection for /bin/ls.
[03:06:49] 662 bytes transferred. (8.18 KB/s) (79 ms)
[03:06:49] 226 Transfer complete.

Blackmoon on smartftp.com
[03:05:07] SmartFTP v2.0.995.5[quote]
[03:09:41] Resolving host name "213.144.155.6"
[03:09:41] Connecting to 213.144.155.6 Port: 21
[03:09:41] Connected to 213.144.155.6.
[03:09:42] 220-SmartFTP Server
[03:09:42] 220 service ready
[03:09:42] AUTH TLS
[03:09:42] 234 Negotiating secure session...
[03:09:42] Connected. Exchanging encryption keys...
[03:09:43] Session Cipher: 128 bit RC4
[03:09:43] TLS encrypted session established.
[03:09:43] PBSZ 0
[03:09:43] 200 Command okay.
[03:09:43] USER anonymous
[03:09:43] 331 User name okay, need password.
[03:09:43] PASS (hidden)
[03:09:44] 230 User logged in, proceed.
[03:09:44] SYST
[03:09:44] 215 UNIX Type: L8
[03:09:44] FEAT
[03:09:44] 211-Extensions supported:
[03:09:44] SIZE
[03:09:44] REST
[03:09:44] MDTM
[03:09:44] AUTH TLS
[03:09:44] AUTH SSL
[03:09:44] PBSZ
[03:09:44] PROT
[03:09:44] CLNT
[03:09:44] SSCN
[03:09:44] XCRC
[03:09:44] XMD5
[03:09:44] XSHA1
[03:09:44] EPRT
[03:09:44] EPSV
[03:09:44] MODE Z
[03:09:44] MLST type*;size*;modify*;create*;perm*;unix.owner;unix.group;windows.lastaccesstime;win32.ea;
[03:09:44] UTF8
[03:09:44] 211 END
[03:09:44] Detected Server Software: BlackMoon
[03:09:44] CLNT SmartFTP 2.0.995
[03:09:45] 200 Noted.
[03:09:45] OPTS UTF8 ON
[03:09:45] 200 Command Ok.
[03:09:45] PWD
[03:09:45] 257 "/" is the current directory
[03:09:45] CWD /Client
[03:09:45] 250 Requested file action okay, completed.
[03:09:45] PWD
[03:09:45] 257 "/Client" is the current directory
[03:09:45] TYPE A
[03:09:45] 200 Command okay.
[03:09:45] MODE Z
[03:09:46] 200 Command Ok.
[03:09:46] PROT P
[03:09:46] 200 Command okay.
[03:09:46] PASV
[03:09:46] 227 Entering Passive Mode (213,144,155,6,62,196)
[03:09:46] Opening data connection to 213.144.155.6 Port: 16068
[03:09:46] MLSD
[03:09:46] Connected. Exchanging encryption keys...
[03:09:46] 150 File status okay; about to open data connection.
[03:09:47] Session Cipher: 128 bit RC4
[03:09:47] TLS encrypted session established.
[03:09:47] 154 bytes transferred. (156 bytes/s) (987 ms)
[03:09:47] 226 Closing data connection. Transfer Complete (175 bytes)

#3 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 February 2006 - 11:06 AM

Hi, I can reproduce this problem using the latest FTP client on Win98SE. The initial folder is fine, but if I change to another folder there's a timeout:

[20060223 10:50:50] Log opened
[20060223 10:50:50] SmartFTP v2.0.995.3
[20060223 10:50:51] Resolving host name "xxx"
[20060223 10:50:51] Connecting to 192.168.1.201 Port: 21
[20060223 10:50:51] Connected to bigted.
[20060223 10:50:51] 220 xxx FTP server ready...
[20060223 10:50:51] AUTH TLS
[20060223 10:50:51] 234 AUTH command OK. Initializing SSL connection.
[20060223 10:50:51] Connected. Exchanging encryption keys...
[20060223 10:50:52] Session Cipher: 128 bit RC4
[20060223 10:50:52] TLS encrypted session established.
[20060223 10:50:52] PBSZ 0
[20060223 10:50:52] 200 PBSZ command OK. Protection buffer size set to 0.
[20060223 10:50:52] USER test
[20060223 10:50:52] 331 User name okay, need password.
[20060223 10:50:52] PASS (hidden)
[20060223 10:50:52] 230 User logged in, proceed.
[20060223 10:50:52] SYST
[20060223 10:50:52] 215 UNIX Type: L8
[20060223 10:50:52] FEAT
[20060223 10:50:52] 211-Extension supported
[20060223 10:50:52] AUTH TLS
[20060223 10:50:52] SSCN
[20060223 10:50:52] PBSZ
[20060223 10:50:52] PROT
[20060223 10:50:52] CCC
[20060223 10:50:52] CLNT
[20060223 10:50:52] MDTM
[20060223 10:50:52] MDTM YYYYMMDDHHMMSS[+-TZ];filename
[20060223 10:50:52] SIZE
[20060223 10:50:52] SITE PSWD;EXEC;SET;INDEX;ZONE;CHMOD;MSG
[20060223 10:50:52] REST STREAM
[20060223 10:50:52] XCRC filename;start;end
[20060223 10:50:52] MODE Z
[20060223 10:50:52] MLST Type*;Size*;Create;Modify*;Win32.ea*;
[20060223 10:50:52] 211 End
[20060223 10:50:52] Detected Server Software: Serv-U 5.x/6.x
[20060223 10:50:52] CLNT SmartFTP 2.0.995
[20060223 10:50:52] 200 Noted.
[20060223 10:50:52] PWD
[20060223 10:50:52] 257 "/" is current directory.
[20060223 10:50:52] CWD /Accessories
[20060223 10:50:52] 250 Directory changed to /Accessories
[20060223 10:50:52] PWD
[20060223 10:50:52] 257 "/Accessories" is current directory.
[20060223 10:50:52] Compression disabled for private IP addresses.
[20060223 10:50:52] TYPE A
[20060223 10:50:52] 200 Type set to A.
[20060223 10:50:52] PROT P
[20060223 10:50:52] 200 PROT command OK. Using private data connection.
[20060223 10:50:52] PASV
[20060223 10:50:52] 227 Entering Passive Mode (192,168,1,201,35,50)
[20060223 10:50:52] Opening data connection to 192.168.1.201 Port: 9010
[20060223 10:50:52] MLSD
[20060223 10:50:52] Connected. Exchanging encryption keys...
[20060223 10:50:53] 150 Opening BINARY mode data connection for MLSD.
[20060223 10:50:53] 226 Transfer complete.
[20060223 10:50:53] Session Cipher: 128 bit RC4
[20060223 10:50:53] TLS encrypted session established.
[20060223 10:50:53] 134 bytes transferred. (1.21 KB/s) (108 ms)
[20060223 10:50:54] CWD /Accessories/HyperTerminal
[20060223 10:50:54] 250 Directory changed to /Accessories/HyperTerminal
[20060223 10:50:54] PWD
[20060223 10:50:54] 257 "/Accessories/HyperTerminal" is current directory.
[20060223 10:50:54] Compression disabled for private IP addresses.
[20060223 10:50:54] PASV
[20060223 10:50:54] 227 Entering Passive Mode (192,168,1,201,35,40)
[20060223 10:50:54] Opening data connection to 192.168.1.201 Port: 9000
[20060223 10:50:54] MLSD
[20060223 10:50:54] Connected. Exchanging encryption keys...
[20060223 10:50:54] Session Cipher: 128 bit RC4
[20060223 10:50:54] TLS encrypted session established.
[20060223 10:50:54] 150 Opening BINARY mode data connection for MLSD.
[20060223 10:50:54] 226 Transfer complete.
[20060223 10:51:34] Transfer Timeout (40s). Closing data connection.
[20060223 10:51:34] 81 bytes transferred. (2 bytes/s) (00:00:39)
[20060223 10:51:54] CWD /
[20060223 10:51:54] 250 Directory changed to /
[20060223 10:51:54] PWD
[20060223 10:51:54] 257 "/" is current directory.
[20060223 10:51:54] Compression disabled for private IP addresses.
[20060223 10:51:54] PASV
[20060223 10:51:54] 227 Entering Passive Mode (192,168,1,201,35,41)
[20060223 10:51:54] Opening data connection to 192.168.1.201 Port: 9001
[20060223 10:51:54] MLSD
[20060223 10:51:54] Connected. Exchanging encryption keys...
[20060223 10:51:54] 150 Opening BINARY mode data connection for MLSD.
[20060223 10:51:54] Session Cipher: 128 bit RC4
[20060223 10:51:54] TLS encrypted session established.
[20060223 10:51:54] 226 Transfer complete.
[20060223 10:52:34] Transfer Timeout (40s). Closing data connection.
[20060223 10:52:34] 1132 bytes transferred. (28 bytes/s) (00:00:39)
[20060223 10:52:47] Log closed

Note there are two timeouts above. Is there any more info I can provide?

Thanks

#4 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 February 2006 - 11:11 AM

It looks like a timing problem.

Do you have such problems when connecting to remote servers (e.g. ftp.smartftp.com) as well?

It this problem limited to Windows 98SE?

Thanks
-Mat

#5 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 February 2006 - 11:15 AM

Hi, the problem is only on Win98SE. Unfortunately I cannot test with another remote FTP server (don't have access to one) that supports encryption, unless you can provide one (the one I'm using is on another computer, but the same LAN). The client is on a clean installation of Win98SE (with all updates applied) on VMWare.

#6 mb

mb

    Developer

  • Administrators
  • 11520 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 February 2006 - 01:40 PM

Hello ..

For some unknown reason Winsock 2.x lost the FD_CLOSE event on Windows 98.

The latest version of the FTP Library (.20) includes a workaround:
http://www.smartftp....ftplib/download

Thanks for reporting.

-Mat

#7 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 February 2006 - 01:56 PM

Thanks for the very quick fix. It's working fine now.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users