Login  
Search All Forums
Dart Home | PowerTCP SSL for ActiveX | Custom Development Reply | PowerTCP SSL for ActiveX Topics | Forums   
AuthorForum: PowerTCP SSL for ActiveX
Topic: SSL Tool and Filezilla don't play well?
haagen_daz

From: Burnsville, MN USA
Posts: 13
Member Since: 07/06/05
posted July 19, 2006 4:50 PM

I'm having a problem which I've reproduced by:

I downloaded/installed the latest SSL Tool as of today.

I downloaded/installed the latest Filezilla client as of today at http://sourceforge.net/projects/filezilla/

I ran the sample code at C:\Program Files\PowerTCP\SSL Tool\Samples\Vb6\SecureFtp\Server with no changes.

Windows XP, Windows Firewall off. Norton worm protection off, auto-protect off. Filezilla set to passive mode.

I try to log onto the sample FTPS server with Filezilla, both running on the same machine.

Filezilla 2.2.9 used to work, but 2.2.22 and up fails at the file listing.

Could you verify that this doesn't work, or give me the proper settings to make it work? Having it fail at the file listing is usually a sign of firewall issues, but I've gone to great pains to try to make sure that isn't an issue for this test.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 20, 2006 10:00 AM

Thanks. I have verified this and have submitted a bug report (issue #4039). Please contact us directly (support@dart.com) for questions regarding resolution of the issue.

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 8, 2006 10:16 AM

I know why this is happening and I can give you a workaround if you are still interested. The problem is that FileZilla sends the PBSZ and PROT commands which we do not support by default. When we respond to the PROT P with a '500 Unknown command' error, I believe that FileZilla is assuming that our data connection will be in clear text and is therefore not establishing the connection properly.

To remedy this, all you have to do is handle the commands in the server's Command event like so:

Private Sub SecureFtpServer1_Command(ByVal Cmd As String, ByVal Request As DartSecureFtpServerCtl.IRequest, ByVal Response As DartSecureFtpServerCtl.IResponse)
  If Cmd = "PBSZ" Then
    If Request.Parameters(2) = "0" Then
      Response.Status = 200
      Response.StatusText = "PBSZ=0"
    End If
  ElseIf Cmd = "PROT" Then
    If Request.Parameters(2) = "P" Then
      Response.Status = 200
      Response.StatusText = "PROT command successful."
    End If
  End If
End Sub
Reply | PowerTCP SSL for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX