0 votes
by (270 points)

Hello!

I'm attempting to transfer data with Rebex Win Forms client but get the error: 500 I won't open a connection to 10.0.38.104 (only to 81.106.223.248)

The Verbose log:

12:38:21.334 Info Command: PROT P

12:38:21.342 Verbose TLS: Received TLS packet:

0000 |17-03-03-00-2C-32-30-30 20-44-61-74-61-20-70-72| ....,200 Data
pr

0010 |6F-74-65-63-74-69-6F-6E 20-6C-65-76-65-6C-20-73| otection level
s

0020 |65-74-20-74-6F-20-22-70 72-69-76-61-74-65-22-0D| et to
"private".

0030 |0A | .

12:38:21.342 Verbose Info: Received data over control connection:

0000 |32-30-30-20-44-61-74-61 20-70-72-6F-74-65-63-74| 200 Data
protect

0010 |69-6F-6E-20-6C-65-76-65 6C-20-73-65-74-20-74-6F| ion level set
to

0020 |20-22-70-72-69-76-61-74 65-22-0D-0A | "private"..

12:38:21.342 Info Response: 200 Data protection level set to "private"

12:38:21.343 Verbose TLS: Sent TLS packet:

0000 |17-03-03-00-08-54-59-50 45-20-41-0D-0A | .....TYPE A..

12:38:21.343 Verbose Info: Sent data over control connection:

0000 |54-59-50-45-20-41-0D-0A | TYPE A..

12:38:21.343 Info Command: TYPE A

12:38:21.350 Verbose TLS: Received TLS packet:

0000 |17-03-03-00-17-32-30-30 20-54-59-50-45-20-69-73| .....200 TYPE
is

0010 |20-6E-6F-77-20-41-53-43 49-49-0D-0A | now ASCII..

12:38:21.351 Verbose Info: Received data over control connection:

0000 |32-30-30-20-54-59-50-45 20-69-73-20-6E-6F-77-20| 200 TYPE is
now

0010 |41-53-43-49-49-0D-0A | ASCII..

12:38:21.351 Info Response: 200 TYPE is now ASCII

12:38:21.363 Debug Info: Listening for data connection at
10.0.38.104:60999.

12:38:21.365 Verbose TLS: Sent TLS packet:

0000 |17-03-03-00-19-50-4F-52 54-20-31-30-2C-30-2C-33| .....PORT
10,0,3

0010 |38-2C-31-30-34-2C-32-33 38-2C-37-31-0D-0A | 8,104,238,71..

12:38:21.365 Verbose Info: Sent data over control connection:

0000 |50-4F-52-54-20-31-30-2C 30-2C-33-38-2C-31-30-34| PORT
10,0,38,104

0010 |2C-32-33-38-2C-37-31-0D 0A | ,238,71..

12:38:21.365 Info Command: PORT 10,0,38,104,238,71

12:38:21.373 Verbose TLS: :

0000 |17-03-03-00-47-35-30-30 20-49-20-77-6F-6E-27-74| ....G500 I
won't

0010 |20-6F-70-65-6E-20-61-20 63-6F-6E-6E-65-63-74-69| open a
connecti

0020 |6F-6E-20-74-6F-20-31-30 2E-30-2E-33-38-2E-31-30| on to
10.0.38.10

0030 |34-20-28-6F-6E-6C-79-20 74-6F-20-38-31-2E-31-30| 4 (only to
81.10

0040 |36-2E-32-32-33-2E-32-34 38-29-0D-0A | 6.223.248)..

12:38:21.373 Verbose Info: Received data over control connection:

0000 |35-30-30-20-49-20-77-6F 6E-27-74-20-6F-70-65-6E| 500 I won't
open

0010 |20-61-20-63-6F-6E-6E-65 63-74-69-6F-6E-20-74-6F| a connection
to

0020 |20-31-30-2E-30-2E-33-38 2E-31-30-34-20-28-6F-6E| 10.0.38.104
(on

0030 |6C-79-20-74-6F-20-38-31 2E-31-30-36-2E-32-32-33| ly to
81.106.223

0040 |2E-32-34-38-29-0D-0A | .248)..

12:38:21.373 Info Response: 500 I won't open a connection to
10.0.38.104 (only to 81.106.223.248)

12:38:21.381 Debug Info: Error while starting data transfer:
Rebex.Net.FtpException: I won't open a connection to 10.0.38.104 (only
to 81.106.223.248) (500).

at Rebex.Net.Ftp.aujt(Int32 cw, Boolean cx)

at Rebex.Net.Ftp.aujy(EndPoint dc)

at Rebex.Net.Ftp.aukg(String dm, Boolean dn, ychh dp, snfi dq,
Int64 dr, FtpTransferState ds)

12:38:21.382 Debug Info: Error while initializing data connection.

12:38:21.383 Error Info: Rebex.Net.FtpException: I won't open a
connection to 10.0.38.104 (only to 81.106.223.248) (500).

at Rebex.Net.Ftp.aujt(Int32 cw, Boolean cx)

at Rebex.Net.Ftp.aujy(EndPoint dc)

at Rebex.Net.Ftp.aukg(String dm, Boolean dn, ychh dp, snfi dq,
Int64 dr, FtpTransferState ds)

at Rebex.Net.Ftp.aumh(String hi, Boolean hj, Stream hk, Int64 hl,
String hm, snfi hn)

12:38:21.383 Error Info: Rebex.Net.FtpException: I won't open a
connection to 10.0.38.104 (only to 81.106.223.248) (500).

at Rebex.Net.Ftp.aujt(Int32 cw, Boolean cx)

at Rebex.Net.Ftp.aujy(EndPoint dc)

at Rebex.Net.Ftp.aukg(String dm, Boolean dn, ychh dp, snfi dq,
Int64 dr, FtpTransferState ds)

at Rebex.Net.Ftp.aumh(String hi, Boolean hj, Stream hk, Int64 hl,
String hm, snfi hn)

Any thoughts or ideas?
Thanks in advance.

Applies to: Rebex FTP/SSL

1 Answer

0 votes
by (73.6k points)
edited by
 
Best answer

You are using FTP Active mode, which is problematic in your case: client behind firewall connects to a FTP server outside firewall.

The problem is, that the client reported to the FTP server its local address, which the FTP server cannot connect to.

Please, try to use FTP Pasive mode instead.

...