FTP SYST command

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

FTP SYST command

Postby vvlier2 » Jun 21 04 7:41 pm

Hello,

When the FTP client issue a SYST command before the authentication (USER command), the connection is closed with the message:
Code: Select all
421 Service not available, remote server has closed connection


Here is the extract of the FTP proxy server.log:
Code: Select all
06/21/04 08:36:03   127.0.0.1   Administrator   0000000009   Error:   Caught socket exception in CFTPSession::OnRead() GODDAM! {Thd 1576} [socket #FFFFFFFF] - terminating
06/21/04 08:36:03   127.0.0.1   Administrator   0000000009   Traffic    38   6   0   0   3s
06/21/04 08:36:03   127.0.0.1   Administrator   0000000009   Terminated exit code 1


My problem is that the ftp client of Solaris 9 always issue the SYST command when using the -n switch. It doesn't occur with ftp client of Solaris 8.

I tried this with Wingate 5.xx and the 6.0 beta, with the same result.

Could you help me?
vvlier2
 
Posts: 2
Joined: Jun 21 04 7:26 pm

Postby MattP » Jun 22 04 4:57 pm

Hi,

We tested this here using FTP from the command line and the syst command was successfully passed through the WinGate FTP proxy. We're not sure why this is not working with Solaris 9, was the command issued by Solaris 8?

Matt
MattP
Qbik Staff
 
Posts: 991
Joined: Sep 08 03 4:30 pm

Postby vvlier2 » Jun 24 04 10:18 pm

MattP wrote:Hi,

We tested this here using FTP from the command line and the syst command was successfully passed through the WinGate FTP proxy. We're not sure why this is not working with Solaris 9, was the command issued by Solaris 8?

Matt

You may reproduce the probmel with ftp in a dos prompt:
Code: Select all
C:\>ftp.exe
ftp> o 127.0.0.1
Connected to 127.0.0.1.
220 WinGate Engine FTP Gateway ready
User (127.0.0.1:(none)):
500 Bad username format - format is user@host:port
Login failed.
ftp> quote SYST
Connection closed by remote host.
ftp> o 127.0.0.1
Connected to 127.0.0.1.
220 WinGate Engine FTP Gateway ready
User (127.0.0.1:(none)): username@ip:port
331 User name okay, Need password.
Password:
230- ARES FTP Server - Log & Zipps Xloads
230- This site is IP protected - Be Carreful !
230 User logged in, proceed.
ftp> quote SYST
215 WIN32 (NT) (WAR-FTPD 1.65 Copyright (c) 1996, 1997 by jgaa)
ftp>


As you can see, if you are not connected to a distant site, the SYST command reset the connection to the gateway. If you are connected to some site, the command succeed.

This SYST command is only issued by the Solaris 9 ftp client when using the -n switch. It seems to be a new "feature" because with Solaris 8 the command was not used.
vvlier2
 
Posts: 2
Joined: Jun 21 04 7:26 pm

Postby buggzy » Jun 24 04 11:13 pm

C:\>ftp.exe
ftp> o 127.0.0.1
Connected to 127.0.0.1.
220 WinGate Engine FTP Gateway ready
User (127.0.0.1:(none)):
500 Bad username format - format is user@host:port
Login failed.
ftp> quote SYST
Connection closed by remote host


- Doctor, I'm doing like that and I'm hurt!
- Just don't do like that! ;-)

Do you really need answer to SYST command from the ftp proxy server while it isn't connected anywhere?
buggzy
 
Posts: 4
Joined: Jun 24 04 7:08 pm

Postby genie » Jun 25 04 12:21 pm

There was a bug in WG FTP handler - fixed now.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am


Return to WinGate

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron