EldoS | Feel safer!

Software components for data protection, secure storage and transfer

FTP Proxy

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#36245
Posted: 03/17/2016 06:56:36
by Markdata  (Standard support level)
Joined: 09/23/2010
Posts: 11

Hello

I'm having difficulties connecting to an FTP server via proxy.

With FileZilla I can connect (passive or active).

This is what I have in FileZilla (Passive):
Option : USER@HOST
With:
USER %s
PASS %w
USER %u@%h
PASS %p
ACCT %a

Host: xxx.xxx.xxx.xxx:2370 with no user and no paswword defined

This is the output of FileZilla:
Code
Status:   Using proxy xxx.xxx.xxx.xxx:2370
Status:   Connecting to xxx.xxx.xxx.xxx:2370...
Status:   Connection established, waiting for welcome message...
Response:   220 FTP proxy (v0.13.5) ready
Command:   USER username@yyy.yyy.yyy.yyy:1000
Response:   331-(vsFTPd 2.0.5)
Response:   331 Please specify the password.
Command:   PASS ******
Response:   230 Login successful.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/"
Status:   Directory listing successful


And this is what I get with SecureBlackBox v13:

SecureBlackbox library exception: EElFTPSUnacceptedReplyError(Message: 'Unaccepted server reply (error code is 530)', ErrorCode: 0x00000212)

This is the code:
Code
TElSimpleFTPSClient Client(NULL);

Client.set_Address("yyy.yyy.yyy.yyy");
Client.set_Port(1000);

Client.set_Username("username");
Client.set_Password("userpwd");

Client.set_UseSSL(false);
Client.set_PassiveMode(true);

TElFTPProxySettings settings;
settings.set_Username("");
settings.set_Password("");
settings.set_ProxyType(TSBFTPProxyType::ptUserPass);
settings.set_Port(2370);
settings.set_Host("xxx.xxx.xxx.xxx");
Client.set_ProxySettings(settings);

Client.Open();
std::string lastReply = "";
Client.Login(lastReply);


Can you tell me if something is missing?

thanks!
#36246
Posted: 03/17/2016 07:23:07
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Please try to set TElSimpleFTPSClient.UseProxySettingsForDataChannel to 'true' and check if it works for you.
#36247
Posted: 03/17/2016 07:47:51
by Markdata  (Standard support level)
Joined: 09/23/2010
Posts: 11

Still the same error message.
#36248
Posted: 03/18/2016 04:39:44
by Vsevolod Ievgiienko (EldoS Corp.)

One more thing to try is to pass your login and password to

Code
settings.set_Username("");
settings.set_Password("");
#36250
Posted: 03/18/2016 05:47:02
by Markdata  (Standard support level)
Joined: 09/23/2010
Posts: 11

I've already done that in the code I showed you here and with or without these two lines the error still occurs.

In Filezilla I use USER@HOST type.

What is the correspondent type in ssb? TSBFTPProxyType::ptUserPass?

with these options I get:

1) TSBFTPProxyType::ptTransparent
Unaccepted server reply (error code is 500)

2) TSBFTPProxyType::ptUserSite
Unaccepted server reply (error code is 530)

3) TSBFTPProxyType::ptUserPass
Unaccepted server reply (error code is 530)

4) TSBFTPProxyType::ptSite
Unaccepted server reply (error code is 530)

5) TSBFTPProxyType::ptOpen
Unaccepted server reply (error code is 530)
#36251
Posted: 03/18/2016 05:54:21
by Eugene Mayevski (EldoS Corp.)

To stop guessing it would be better if we could connect to your proxy and see what's going on. The reason is that the proxy-related code is quite old and this is not a very popular feature, so it could happen, that the proxy doesn't work like the client would expect (and vice versa).

I have created a HelpDesk ticket for you where you can provide the information about accessing the proxy.


Sincerely yours
Eugene Mayevski
#36254
Posted: 03/18/2016 07:27:25
by Markdata  (Standard support level)
Joined: 09/23/2010
Posts: 11

I've sent you some information about our server response.

It seems that the port number for the ftp server is being ignored, instead of 1000 the component set it to 21...
#36271
Posted: 03/22/2016 06:04:24
by Markdata  (Standard support level)
Joined: 09/23/2010
Posts: 11

Just to let people know, the new build (290) resolves this issue.

Thanks for the support!
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.

Reply

Statistics

Topic viewed 2538 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!